From e227df8ef2d7c0b8ba15f5892cabad28ed3032ee Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sat, 20 Feb 2010 17:37:42 +0000 Subject: [PATCH] rename some gui include files git-svn-id: http://www.observium.org/svn/observer/trunk@891 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/ajax/list_interfaces.php | 2 +- html/billing-graph.php | 2 +- html/collectd-graph.php | 2 +- html/graph.php | 2 +- html/includes/{authenticate.inc => authenticate.inc.php} | 0 html/includes/{edit-host.inc => device-edit.inc.php} | 0 html/includes/{device-header.inc => device-header.inc.php} | 0 html/includes/{add-srv.inc => service-add.inc.php} | 0 html/includes/{del-srv.inc => service-delete.inc.php} | 0 html/index.php | 2 +- html/map.php | 2 +- html/netcmd.php | 2 +- html/pages/addsrv.php | 2 +- html/pages/delsrv.php | 2 +- html/pages/device.php | 2 +- html/pages/device/edit.inc.php | 2 +- html/pages/vrf.php | 2 +- html/percentage.php | 2 +- 18 files changed, 13 insertions(+), 13 deletions(-) rename html/includes/{authenticate.inc => authenticate.inc.php} (100%) rename html/includes/{edit-host.inc => device-edit.inc.php} (100%) rename html/includes/{device-header.inc => device-header.inc.php} (100%) rename html/includes/{add-srv.inc => service-add.inc.php} (100%) rename html/includes/{del-srv.inc => service-delete.inc.php} (100%) diff --git a/html/ajax/list_interfaces.php b/html/ajax/list_interfaces.php index 9ba835713d..232ba02b67 100755 --- a/html/ajax/list_interfaces.php +++ b/html/ajax/list_interfaces.php @@ -2,7 +2,7 @@ include("../../config.php"); include("../../includes/functions.php"); - include("../includes/authenticate.inc"); + include("../includes/authenticate.inc.php"); if(!$_SESSION['authenticated']) { echo("unauthenticated"); exit; } if(isset($_GET['device_id'])){ diff --git a/html/billing-graph.php b/html/billing-graph.php index a1d10584b3..096157b7b0 100644 --- a/html/billing-graph.php +++ b/html/billing-graph.php @@ -7,7 +7,7 @@ include("../config.php"); include("../includes/functions.php"); -include("includes/authenticate.inc"); +include("includes/authenticate.inc.php"); if(!$_SESSION['authenticated']) { echo("unauthenticated"); exit; } require("includes/jpgraph/src/jpgraph.php"); include("includes/jpgraph/src/jpgraph_line.php"); diff --git a/html/collectd-graph.php b/html/collectd-graph.php index 022d3d9359..1e63079a57 100755 --- a/html/collectd-graph.php +++ b/html/collectd-graph.php @@ -26,7 +26,7 @@ if($_GET['debug']) { include("../config.php"); include("../includes/functions.php"); -include("includes/authenticate.inc"); +include("includes/authenticate.inc.php"); if(!$_SESSION['authenticated']) { echo("not authenticated"); exit; } function makeTextBlock($text, $fontfile, $fontsize, $width) { diff --git a/html/graph.php b/html/graph.php index 64e4428dd1..7c3768aac2 100644 --- a/html/graph.php +++ b/html/graph.php @@ -13,7 +13,7 @@ if($_GET['debug']) { include("../includes/common.php"); include("../includes/graphing.php"); include("../includes/rewrites.php"); - include("includes/authenticate.inc"); + include("includes/authenticate.inc.php"); # if(!$_SESSION['authenticated']) { echo("not authenticated"); exit; } diff --git a/html/includes/authenticate.inc b/html/includes/authenticate.inc.php similarity index 100% rename from html/includes/authenticate.inc rename to html/includes/authenticate.inc.php diff --git a/html/includes/edit-host.inc b/html/includes/device-edit.inc.php similarity index 100% rename from html/includes/edit-host.inc rename to html/includes/device-edit.inc.php diff --git a/html/includes/device-header.inc b/html/includes/device-header.inc.php similarity index 100% rename from html/includes/device-header.inc rename to html/includes/device-header.inc.php diff --git a/html/includes/add-srv.inc b/html/includes/service-add.inc.php similarity index 100% rename from html/includes/add-srv.inc rename to html/includes/service-add.inc.php diff --git a/html/includes/del-srv.inc b/html/includes/service-delete.inc.php similarity index 100% rename from html/includes/del-srv.inc rename to html/includes/service-delete.inc.php diff --git a/html/index.php b/html/index.php index a5efea74fd..1d4de97050 100755 --- a/html/index.php +++ b/html/index.php @@ -15,7 +15,7 @@ if($debug) { include("../config.php"); include("../includes/functions.php"); include("includes/functions.inc.php"); - include("includes/authenticate.inc"); + include("includes/authenticate.inc.php"); $start = utime(); $now = time(); diff --git a/html/map.php b/html/map.php index 554ecd3250..c046a2ae57 100755 --- a/html/map.php +++ b/html/map.php @@ -2,7 +2,7 @@ include("../config.php"); include("../includes/functions.php"); -include("includes/authenticate.inc"); +include("includes/authenticate.inc.php"); if (isset($_GET['device'])) { $where = "WHERE device_id = ".$_GET['device']; } else { $where = ""; } $deviceresult = mysql_query("SELECT * from devices $where"); diff --git a/html/netcmd.php b/html/netcmd.php index a5060a493e..9255411ed4 100644 --- a/html/netcmd.php +++ b/html/netcmd.php @@ -12,7 +12,7 @@ if($_GET[debug]) { include("../config.php"); include("../includes/functions.php"); -include("includes/authenticate.inc"); +include("includes/authenticate.inc.php"); if(!$_SESSION['authenticated']) { echo("unauthenticated"); exit; } diff --git a/html/pages/addsrv.php b/html/pages/addsrv.php index fa878dfc40..5d20695e5a 100644 --- a/html/pages/addsrv.php +++ b/html/pages/addsrv.php @@ -6,7 +6,7 @@ if($_SESSION['userlevel'] < '10') { if($_POST['addsrv']) { if($_SESSION['userlevel'] == '10') { - include("includes/add-srv.inc"); + include("includes/service-add.inc.php"); } } diff --git a/html/pages/delsrv.php b/html/pages/delsrv.php index ad6e5899f4..f063e0c457 100644 --- a/html/pages/delsrv.php +++ b/html/pages/delsrv.php @@ -6,7 +6,7 @@ if($_SESSION['userlevel'] < '5') { if($_POST['delsrv']) { if($_SESSION['userlevel'] > "5") { - include("includes/del-srv.inc"); + include("includes/service-delete.inc.php"); } } diff --git a/html/pages/device.php b/html/pages/device.php index 2e477e052c..480b7f817d 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -17,7 +17,7 @@ $select[$section] = "selected"; $device_query = mysql_query("SELECT * FROM `devices` WHERE `device_id` = '" . $_GET['id'] . "'"); while($device = mysql_fetch_array($device_query)) { echo(''); - include("includes/device-header.inc"); + include("includes/device-header.inc.php"); echo("
"); echo("
"); diff --git a/html/pages/device/edit.inc.php b/html/pages/device/edit.inc.php index 48d01e6126..f23108274b 100644 --- a/html/pages/device/edit.inc.php +++ b/html/pages/device/edit.inc.php @@ -6,7 +6,7 @@ if($_SESSION['userlevel'] < '5') { if($_POST['editing']) { if($_SESSION['userlevel'] > "5") { - include("includes/edit-host.inc"); + include("includes/device-edit.inc.php"); } } diff --git a/html/pages/vrf.php b/html/pages/vrf.php index 6bfbac9170..44efc93cb6 100644 --- a/html/pages/vrf.php +++ b/html/pages/vrf.php @@ -39,7 +39,7 @@ if($_GET['opta'] == "details" ) { $hostname = $device['hostname']; #if(!is_integer($x/2)) { $device_colour = $list_colour_a; } else { $device_colour = $list_colour_b; } echo(""); - include("includes/device-header.inc"); + include("includes/device-header.inc.php"); echo("
"); $ports = mysql_query("SELECT * FROM `ports` WHERE `ifVrf` = '".$device['vrf_id']."' and device_id = '".$device['device_id']."'"); unset($seperator); diff --git a/html/percentage.php b/html/percentage.php index b8527baf00..2cab795242 100644 --- a/html/percentage.php +++ b/html/percentage.php @@ -2,7 +2,7 @@ include("../config.php"); include("../includes/functions.php"); -include("includes/authenticate.inc"); +include("includes/authenticate.inc.php"); if (isset($_GET["dir"])) { $dir = $_GET["dir"];