Error
This installation is already up-to-date. Click here to use cacti."; exit; }elseif (ereg("^0\.6", $old_cacti_version)) { print "Error
You are attempting to install cacti " . $config["cacti_version"] . " onto a 0.6.x database. To continue, you must create a new database, import 'cacti.sql' into it, and update 'include/config.php' to point to the new database.
"; exit; }elseif (empty($old_cacti_version)) { print "Error
You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:
mysql -u $database_username -p $database_default < cacti.sql
This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.
"; exit; } function db_install_execute($cacti_version, $sql) { $sql_install_cache = (isset($_SESSION["sess_sql_install_cache"]) ? $_SESSION["sess_sql_install_cache"] : array()); if (db_execute($sql)) { $sql_install_cache{sizeof($sql_install_cache)}[$cacti_version][1] = $sql; }else{ $sql_install_cache{sizeof($sql_install_cache)}[$cacti_version][0] = $sql; } $_SESSION["sess_sql_install_cache"] = $sql_install_cache; } function find_best_path($binary_name) { global $config; if ($config["cacti_server_os"] == "win32") { $search_paths = array("c:/usr/bin", "c:/cacti", "c:/rrdtool", "c:/cactid", "c:/php", "c:/progra~1/php", "c:/net-snmp/bin", "c:/progra~1/net-snmp/bin", "d:/usr/bin", "d:/net-snmp/bin", "d:/progra~1/net-snmp/bin", "d:/cacti", "d:/rrdtool", "d:/cactid", "d:/php", "d:/progra~1/php"); }else{ $search_paths = array("/bin", "/sbin", "/usr/bin", "/usr/sbin", "/usr/local/bin", "/usr/local/sbin"); } for ($i=0; $iError
Invalid Cacti version $old_cacti_version, cannot upgrade to " . $config["cacti_version"] . "
"; exit; } /* loop from the old version to the current, performing updates for each version in between */ for ($i=($old_version_index+1); $i