Use ACL instead of AXE for utilities
[gnucomo.git] / src / gcm_daemon / gcm_daemon.php
index d4292e1..17338a0 100755 (executable)
@@ -99,9 +99,6 @@ ini_set('html_errors', 'false');
 
 define("BATCHSIZE", 50000);
 
-//Tell the log that we're up.
-define_syslog_variables();
-
 require_once "gnucomo_config.php";
 require_once "db.class.php";
 
@@ -110,7 +107,7 @@ require_once "db.class.php";
 $project_name   = "gnucomo";    // name of the entire project
 $app_name       = "gcm_daemon"; // name of the application running
 $developrelease = "FALSE";      // Indicates if special debug settings are needed
-$db_version     = 53;           // The db_version indicates what the level of
+$db_version     = 54;           // The db_version indicates what the level of
                                 // the database should be. If the database is
                                 // old an update will be generated.
 $gcmd_version   = 5;            // This value indicates the active version of
@@ -327,7 +324,7 @@ function process_log ()
        $local_sql = "UPDATE db_value SET setting_value = '"
                    . $local_upper_row ."' where setting = 'log_processing'";
        $dbms->query($local_sql);
-
+   
 
        // Update the statistics for the object-table
 
@@ -756,5 +753,19 @@ function expand_arguments($command, $args)
    return $command;
 }
 
+// ereg function are removed from PHP since version 7.0
+// These wrappers use the alternative preg functions.
+
+function ereg($pattern, $string, &$matches)
+{
+   $pattern = "#" . $pattern . "#";
+   return preg_match($pattern, $string, $matches);
+}
+
+function ereg_replace($pattern, $replacement, $string)
+{
+   $pattern = "#" . $pattern . "#";
+   return preg_replace($pattern, $replacement, $string);
+}
 ?>