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:
Tom Laermans
2012-02-16 23:18:49 +00:00
parent 5dbfd5c855
commit 6494b0603b
2 changed files with 19 additions and 1 deletions

View File

@@ -439,7 +439,7 @@ if ($_SESSION['userlevel'] >= '5' && ($routing_count['bgp']+$routing_count['ospf
## Do Alerts at the bottom
if ($bgp_alerts)
{ ## FIXME link below broken!
{
echo('
<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>

View File

@@ -11,6 +11,24 @@
* 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
{
$db_rev = 0;