mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
allow sql update to be run from commandline, remove now-bogus comment from menubar
git-svn-id: http://www.observium.org/svn/observer/trunk@2873 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -439,7 +439,7 @@ if ($_SESSION['userlevel'] >= '5' && ($routing_count['bgp']+$routing_count['ospf
|
|||||||
|
|
||||||
## Do Alerts at the bottom
|
## Do Alerts at the bottom
|
||||||
if ($bgp_alerts)
|
if ($bgp_alerts)
|
||||||
{ ## FIXME link below broken!
|
{
|
||||||
echo('
|
echo('
|
||||||
<li><hr width=140></li>
|
<li><hr width=140></li>
|
||||||
<li><a href="routing/protocol=bgp/adminstatus=start/state=down/"><img src="images/16/link_error.png" border="0" align="absmiddle" /> Alerted BGP (' . $bgp_alerts . ')</a></li>
|
<li><a href="routing/protocol=bgp/adminstatus=start/state=down/"><img src="images/16/link_error.png" border="0" align="absmiddle" /> Alerted BGP (' . $bgp_alerts . ')</a></li>
|
||||||
|
|||||||
@@ -11,6 +11,24 @@
|
|||||||
* See COPYING for more details.
|
* See COPYING for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!isset($debug))
|
||||||
|
{
|
||||||
|
# Not called from within discovery, let's load up the necessary stuff.
|
||||||
|
|
||||||
|
include("config.php");
|
||||||
|
include("includes/functions.php");
|
||||||
|
|
||||||
|
$options = getopt("d");
|
||||||
|
if (isset($options['d']))
|
||||||
|
{
|
||||||
|
$debug = TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$debug = FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($db_rev = @dbFetchCell("SELECT version FROM `dbSchema`")) {} else
|
if ($db_rev = @dbFetchCell("SELECT version FROM `dbSchema`")) {} else
|
||||||
{
|
{
|
||||||
$db_rev = 0;
|
$db_rev = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user