mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more title sets
git-svn-id: http://www.observium.org/svn/observer/trunk@2691 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -32,6 +32,8 @@ if ($_POST['hostname'])
|
||||
}
|
||||
}
|
||||
|
||||
$pagetitle[] = "Add host";
|
||||
|
||||
?>
|
||||
|
||||
<form name="form1" method="post" action="">
|
||||
|
@@ -33,6 +33,8 @@ else
|
||||
|
||||
if ($updated) { print_message("Device Settings Saved"); }
|
||||
|
||||
$pagetitle[] = "Add service";
|
||||
|
||||
echo("
|
||||
<h4>Add Service</h4>
|
||||
<form id='addsrv' name='addsrv' method='post' action=''>
|
||||
|
@@ -9,6 +9,8 @@ if ($_SESSION['userlevel'] < '10')
|
||||
else
|
||||
{
|
||||
echo("<h3>Add User</h3>");
|
||||
|
||||
$pagetitle[] = "Add user";
|
||||
|
||||
if (auth_usermanagement())
|
||||
{
|
||||
|
@@ -25,7 +25,13 @@ if ($_SESSION['userlevel'] == '10')
|
||||
");
|
||||
}
|
||||
|
||||
$pagetitle[] = "Authlog";
|
||||
|
||||
echo("</table>");
|
||||
}
|
||||
else
|
||||
{
|
||||
include("includes/error-no-perm.inc.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -13,6 +13,8 @@ if ($_POST['addbill'] == "yes")
|
||||
$message_break .= "<br />";
|
||||
}
|
||||
|
||||
$pagetitle[] = "Billing";
|
||||
|
||||
echo("<meta http-equiv='refresh' content='10000'>");
|
||||
|
||||
if ($_GET['opta'] == "add")
|
||||
|
@@ -16,6 +16,8 @@ echo("
|
||||
|
||||
$i = 1;
|
||||
|
||||
$pagetitle[] = "Customers";
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `port_descr_type` = 'cust' GROUP BY `port_descr_descr` ORDER BY `port_descr_descr`") as $customer)
|
||||
{
|
||||
$i++;
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Deleted ports";
|
||||
|
||||
if ($vars['purge'] == "all")
|
||||
{
|
||||
foreach (dbFetchRows("SELECT * FROM `ports` AS P, `devices` as D WHERE P.`deleted` = '1' AND D.device_id = P.device_id") as $interface)
|
||||
|
@@ -8,6 +8,8 @@ if ($_SESSION['userlevel'] < 10)
|
||||
exit;
|
||||
}
|
||||
|
||||
$pagetitle[] = "Delete device";
|
||||
|
||||
if (is_numeric($_REQUEST['id']))
|
||||
{
|
||||
if ($_REQUEST['confirm'])
|
||||
|
@@ -4,6 +4,9 @@ if ($_SESSION['userlevel'] < '5')
|
||||
{
|
||||
include("includes/error-no-perm.inc.php");
|
||||
} else {
|
||||
|
||||
$pagetitle[] = "Delete service";
|
||||
|
||||
if ($_POST['delsrv'])
|
||||
{
|
||||
if ($_SESSION['userlevel'] > "5")
|
||||
|
@@ -6,6 +6,8 @@ if ($_SESSION['userlevel'] < '10') { include("includes/error-no-perm.inc.php");
|
||||
{
|
||||
echo("<h3>Delete User</h3>");
|
||||
|
||||
$pagetitle[] = "Delete user";
|
||||
|
||||
if (auth_usermanagement())
|
||||
{
|
||||
if ($vars['action'] == "del")
|
||||
|
@@ -16,6 +16,8 @@ if ($vars['type']) { $where .= " AND type = ?"; $sql_param[] = $vars[
|
||||
if ($vars['location'] == "Unset") { $location_filter = ''; }
|
||||
if ($vars['location']) { $location_filter = $vars['location']; }
|
||||
|
||||
$pagetitle[] = "Devices";
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
if($vars['searchbar'] != "hide")
|
||||
|
@@ -4,6 +4,8 @@ include("includes/javascript-interfacepicker.inc.php");
|
||||
|
||||
echo("<div style='margin: 10px;'>");
|
||||
|
||||
$pagetitle[] = "Edit user";
|
||||
|
||||
if ($_SESSION['userlevel'] != '10') { include("includes/error-no-perm.inc.php"); } else
|
||||
{
|
||||
if ($vars['user_id'])
|
||||
|
@@ -10,6 +10,8 @@ if ($vars['action'] == "expunge" && $_SESSION['userlevel'] >= '10')
|
||||
|
||||
$numresults = 250;
|
||||
|
||||
$pagetitle[] = "Eventlog";
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
if (is_numeric($vars['page']))
|
||||
|
@@ -29,6 +29,8 @@ if (!$vars['view']) { $vars['view'] = "detail"; }
|
||||
|
||||
$link_array = array('page' => 'health');
|
||||
|
||||
$pagetitle[] = "Health";
|
||||
|
||||
print_optionbar_start('', '');
|
||||
|
||||
echo('<span style="font-weight: bold;">Health</span> » ');
|
||||
|
@@ -43,6 +43,8 @@
|
||||
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Inventory";
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
$param = array();
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Locations";
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
echo('<span style="font-weight: bold;">Locations</span> » ');
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Ports";
|
||||
|
||||
### Set Defaults here
|
||||
|
||||
if(!isset($vars['format'])) { $vars['format'] = "list_basic"; }
|
||||
|
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Preferences";
|
||||
|
||||
echo("<div style='margin: 10px'>");
|
||||
echo("<h3>User Preferences</h3>");
|
||||
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Pseudowires";
|
||||
|
||||
if(!isset($vars['view'])) { $vars['view'] = 'detail'; }
|
||||
|
||||
$link_array = array('page' => 'pseudowires');
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Routing";
|
||||
|
||||
if ($_GET['optb'] == "graphs" || $_GET['optc'] == "graphs") { $graphs = "graphs"; } else { $graphs = "nographs"; }
|
||||
|
||||
#$datas[] = 'overview';
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Search";
|
||||
|
||||
$sections = array('ipv4' => 'IPv4 Address', 'ipv6' => 'IPv6 Address', 'mac' => 'MAC Address');
|
||||
|
||||
if (!isset($vars['search'])) { $vars['search'] = "ipv4"; }
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
$pagetitle[] = "Services";
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
echo('<span style="font-weight: bold;">Services</span> » ');
|
||||
|
@@ -1,6 +1,12 @@
|
||||
<?php if ($_GET['opta'] == "expunge" && $_SESSION['userlevel'] >= '10') { dbFetchCell("TRUNCATE TABLE `syslog`"); } ?>
|
||||
<?php
|
||||
|
||||
<?php print_optionbar_start('25'); ?>
|
||||
if ($_vars['action'] == "expunge" && $_SESSION['userlevel'] >= '10') { dbFetchCell("TRUNCATE TABLE `syslog`"); }
|
||||
|
||||
print_optionbar_start('25');
|
||||
|
||||
$pagetitle[] = "Syslog";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" action="">
|
||||
<span style="font-weight: bold;">Syslog</span> »
|
||||
|
Reference in New Issue
Block a user