Variable DEPTH must be deleted before ADD_POINTS_REFSYSTEM() is being called :(
[mailer.git] / inc / mysql-manager.php
index 15618193a419148db85057fd77c93ccccd0b921a..1def31192837709bc8214be54562fc4295a8229e 100644 (file)
@@ -198,7 +198,7 @@ function ADD_DESCR($ACC_LVL, $file, $return = false, $output = true) {
        $LINK_ADD = ""; $OUT = ""; $AND = "";
 
        // First we have to do some analysis...
-       if (ereg("action-", $file)) {
+       if (substr($file, 0, 7) == "action-") {
                // This is an action file!
                $type = "action";
                $search = substr($file, 7);
@@ -215,7 +215,7 @@ function ADD_DESCR($ACC_LVL, $file, $return = false, $output = true) {
                        break;
                }
                $AND = " AND (what='' OR what IS NULL)";
-       } elseif (ereg("what-", $file)) {
+       } elseif (substr($file, 0, 5) == "what-") {
                // This is an admin what file!
                $type = "what";
                $search = substr($file, 5);