The editor has not been enabled yet. You need to set ENABLED=true at the top of editor.php
"; print "Before you do that, you should consider using FilesMatch (in Apache) or similar to limit who can access the editor. There is more information in the install guide section of the manual.
"; exit(); } // sensible defaults $mapdir='configs'; $cacti_base = '../../'; $cacti_url = '/'; $ignore_cacti=FALSE; $configerror = ''; $config_loaded = @include_once 'editor-config.php'; // these are all set via the Editor Settings dialog, in the editor, now. $use_overlay = FALSE; // set to TRUE to enable experimental overlay showing VIAs $use_relative_overlay = FALSE; // set to TRUE to enable experimental overlay showing relative-positioning $grid_snap_value = 0; // set non-zero to snap to a grid of that spacing if( isset($_COOKIE['wmeditor'])) { $parts = split(":",$_COOKIE['wmeditor']); if( (isset($parts[0])) && (intval($parts[0]) == 1) ) { $use_overlay = TRUE; } if( (isset($parts[1])) && (intval($parts[1]) == 1) ) { $use_relative_overlay = TRUE; } if( (isset($parts[2])) && (intval($parts[2]) != 0) ) { $grid_snap_value = intval($parts[2]); } } if( isset($config) ) { $configerror = 'OLD editor config file format. The format of this file changed in version 0.92 - please check the new editor-config.php-dist and update your editor-config.php file. [WMEDIT02]'; } // check if the goalposts have moved if( is_dir($cacti_base) && file_exists($cacti_base."/include/global.php") ) { // include the cacti-config, so we know about the database include_once($cacti_base."/include/global.php"); $config['base_url'] = $cacti_url; $cacti_found = TRUE; } elseif( is_dir($cacti_base) && file_exists($cacti_base."/include/config.php") ) { // include the cacti-config, so we know about the database include_once($cacti_base."/include/config.php"); $config['base_url'] = $cacti_url; $cacti_found = TRUE; } else { $cacti_found = FALSE; } if($cacti_found && isset($plugins)) { # here, we know we're part of a plugin - do auth stuff } if(! is_writable($mapdir)) { $configerror = "The map config directory is not writable by the web server user. You will not be able to edit any files until this is corrected. [WMEDIT01]"; } chdir(dirname(__FILE__)); $action = ''; $mapname = ''; $selected = ''; $newaction = ''; $param = ''; $param2 = ''; $log = ''; if(!module_checks()) { print "Required PHP extensions are not present in your mod_php/ISAPI PHP module. Please check your PHP setup to ensure you have the GD extension installed and enabled."; print "If you find that the weathermap tool itself is working, from the command-line or Cacti poller, then it is possible that you have two different PHP installations. The Editor uses the same PHP that webpages on your server use, but the main weathermap tool uses the command-line PHP interpreter.
"; print "
You should also run check.php to help make sure that there are no problems.
Before you do that, you should consider using FilesMatch (in Apache) or similar to limit who can access the editor. There is more information in the install guide section of the manual.
"; exit(); } // sensible defaults $mapdir='configs'; $cacti_base = '../../'; $cacti_url = '/'; $ignore_cacti=FALSE; $configerror = ''; $config_loaded = @include_once 'editor-config.php'; // these are all set via the Editor Settings dialog, in the editor, now. $use_overlay = FALSE; // set to TRUE to enable experimental overlay showing VIAs $use_relative_overlay = FALSE; // set to TRUE to enable experimental overlay showing relative-positioning $grid_snap_value = 0; // set non-zero to snap to a grid of that spacing if( isset($_COOKIE['wmeditor'])) { $parts = split(":",$_COOKIE['wmeditor']); if( (isset($parts[0])) && (intval($parts[0]) == 1) ) { $use_overlay = TRUE; } if( (isset($parts[1])) && (intval($parts[1]) == 1) ) { $use_relative_overlay = TRUE; } if( (isset($parts[2])) && (intval($parts[2]) != 0) ) { $grid_snap_value = intval($parts[2]); } } if( isset($config) ) { $configerror = 'OLD editor config file format. The format of this file changed in version 0.92 - please check the new editor-config.php-dist and update your editor-config.php file. [WMEDIT02]'; } // check if the goalposts have moved if( is_dir($cacti_base) && file_exists($cacti_base."/include/global.php") ) { // include the cacti-config, so we know about the database include_once($cacti_base."/include/global.php"); $config['base_url'] = $cacti_url; $cacti_found = TRUE; } elseif( is_dir($cacti_base) && file_exists($cacti_base."/include/config.php") ) { // include the cacti-config, so we know about the database include_once($cacti_base."/include/config.php"); $config['base_url'] = $cacti_url; $cacti_found = TRUE; } else { $cacti_found = FALSE; } if($cacti_found && isset($plugins)) { # here, we know we're part of a plugin - do auth stuff } if(! is_writable($mapdir)) { $configerror = "The map config directory is not writable by the web server user. You will not be able to edit any files until this is corrected. [WMEDIT01]"; } chdir(dirname(__FILE__)); $action = ''; $mapname = ''; $selected = ''; $newaction = ''; $param = ''; $param2 = ''; $log = ''; if(!module_checks()) { print "Required PHP extensions are not present in your mod_php/ISAPI PHP module. Please check your PHP setup to ensure you have the GD extension installed and enabled."; print "If you find that the weathermap tool itself is working, from the command-line or Cacti poller, then it is possible that you have two different PHP installations. The Editor uses the same PHP that webpages on your server use, but the main weathermap tool uses the command-line PHP interpreter.
"; print "
You should also run check.php to help make sure that there are no problems.
weathermap |
Subversion Repositories: |
Rev 88 | Rev 90 |
---|