]> andersk Git - sql-web.git/blobdiff - tpl/head.php
move chars_encode to display library
[sql-web.git] / tpl / head.php
index 8b17dae7293c88f7385ba6cd8c8bc18a2fdb33ed..bf2ea39bb77a00d73382da8d7623b1bf2e536c73 100644 (file)
@@ -1,16 +1,5 @@
 <?php\r
 \r
-function chars_encode($string) {\r
-   $chars = array();\r
-   $ent = null;\r
-   $chars = preg_split("//", $string, -1, PREG_SPLIT_NO_EMPTY);\r
-   for ($i = 0; $i < count($chars); $i++)\r
-               $ent[$i] = "&#" . ord($chars[$i]) . ";";\r
-   if (sizeof($ent) < 1)\r
-     return "";\r
-   return implode("",$ent);\r
-}\r
-\r
 if (isOffline()) {\r
        switch(THIS_PAGE) {\r
                case 'do/contact':\r
This page took 0.038117 seconds and 4 git commands to generate.