This repository was archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathfunctions.php
More file actions
35 lines (27 loc) · 1.25 KB
/
Copy pathfunctions.php
File metadata and controls
35 lines (27 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
//////////////////////////
//PHP Functions List //
//////////////////////////
//Deus //
//////////////////////////
/*function smartquoteset($smartstring) {
replace = array("\\" => "\\\\", "'" => "\\'", '"' => '\"');
$smartstring = str_replace(array_keys($replace), array_values($replace), $smartstring);
return $smartstring;
}
function smartquoteread($smartstring) {
replace = array("'" => "\'", "\\\\" => "\\");
$smartstring = str_replace(array_keys($replace), array_values($replace), $smartstring);
return $smartstring;
}*/
function carriage($smartstring) {
$replace = array("\r\n" => "[br]", "\r" => "[br]", "\n" => "[br]");
$smartstring = str_replace(array_keys($replace), array_values($replace), $smartstring);
return $smartstring;
}
function smartcode($smartstring) {
$replace = array("<" => "<", ">" => ">", "\r\n" => "<br />", "\r" => "<br />", "\n" => "<br />", "[br]" => "<br />", "[center]" => "<center>", "[/center]" => "</center>", "[b]" => "<strong>", "[/b]" => "</strong>", "[i]" => "<em>", "[/i]" => "</em>", "[u]" => "<u>", "[/u]" => "</u>", "[colour]" => "<font color=\'#", "[/colour]" => "</font>", "]" => "\'>");
$smartstring = str_replace(array_keys($replace), array_values($replace), $smartstring);
return $smartstring;
}
?>