- minor comments changes
[plcapi.git] / demo / server / server.php
index 3a42ad3..cdf2051 100644 (file)
@@ -27,7 +27,7 @@ if ($_SERVER['REQUEST_METHOD'] != 'POST' && isset($_GET['showSource']))
        */
        class xmlrpc_server_methods_container
        {
-               /*
+               /**
                * Method used to test logging of php warnings generated by user functions.
                */
                function phpwarninggenerator($m)
@@ -40,7 +40,7 @@ if ($_SERVER['REQUEST_METHOD'] != 'POST' && isset($_GET['showSource']))
                * a PHP version of the state-number server. Send me an integer and i'll sell you a state
                * @param integer $s
                * @return string
-               * */
+               */
                static function findstate($s)
                {
                        return inner_findstate($s);
@@ -227,8 +227,8 @@ in an alphabetic order.';
 
                // don't even ask me _why_ these come padded with
                // hyphens, I couldn't tell you :p
-               $a=ereg_replace("-", "", $a);
-               $b=ereg_replace("-", "", $b);
+               $a=str_replace("-", "", $a);
+               $b=str_replace("-", "", $b);
 
                if ($agesorter_arr[$a]==$agesorter[$b])
                {