7) { $ENABLED = true; } $editor_name = "weathermap-plugin-editor.php"; $observium_base = $config["base_path"]; $observium_url = '/'; //$config['url_path']; $cacti_found = true; $ignore_observium = FALSE; } else { $FROM_OBSERVIUM = false; $editor_name = "/wmap/"; $observium_base = '../../'; $observium_url = '/'; $cacti_found = false; } // sensible defaults $mapdir='configs'; $configerror = ''; // 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 = explode(":",$_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]); } } chdir(dirname(__FILE__)); $action = ''; $mapname = ''; $selected = ''; $newaction = ''; $param = ''; $param2 = ''; $log = ''; if(!wm_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 ">check.php to help make sure that there are no problems.