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
+18
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;