ports/net-mgmt/phpweathermap/files/patch-editor.php
Martin Wilke 2cbcc5d099 Weathermap is a network visualisation tool, to take data you already
have and show you an overview of your network in map form.

WWW:	http://www.network-weathermap.com/

PR:		ports/153835
Submitted by:	Hsin-Han You <hhyou at cs.nctu.edu.tw>
Feature safe:	yes
2011-01-28 17:19:37 +00:00

24 lines
580 B
PHP

--- editor.php.orig 2011-01-06 16:39:40.000000000 +0800
+++ editor.php 2011-01-07 21:38:39.000000000 +0800
@@ -1,10 +1,10 @@
<?php
require_once 'editor.inc.php';
-require_once 'Weathermap.class.php';
+require_once '%%DATADIR%%/Weathermap.class.php';
// so that you can't have the editor active, and not know about it.
-$ENABLED=false;
+$ENABLED=true;
if(! $ENABLED)
{
@@ -17,7 +17,7 @@
$mapdir='configs';
$cacti_base = '../../';
$cacti_url = '/';
-$ignore_cacti=FALSE;
+$ignore_cacti=true;
$configerror = '';
$config_loaded = @include_once 'editor-config.php';