Fixes and patches.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2641 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan
2008-09-30 08:41:23 +00:00
parent 323338b661
commit 8af774a98c
6 changed files with 8 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ TABLES="Config Filters Groups Monitors States TriggersX10 Users Zones"
OUTFILE="$BACKUP_PATH/$BACKUP_FILE"
echo "--
--- Created by zm_db_backup for ZoneMinder Version $ZM_VERSION
-- Created by zm_db_backup for ZoneMinder Version $ZM_VERSION
--" > $OUTFILE
$MYSQLDUMP $DUMPOPTS zm $TABLES >> $OUTFILE

View File

@@ -40,7 +40,7 @@ MYDUMPOPTS="--user=$ZM_DB_USER --password=$ZM_DB_PASS --skip-opt --compact --qui
# Dump the sql statements needed to reload the Events, Frames and Stats tables
echo "--- ZM_DB_VERSION=$ZM_VERSION
echo "-- ZM_DB_VERSION=$ZM_VERSION
" > $EVENT_PATH/.sql
$MYSQLDUMP $MYDUMPOPTS --where="Id=$EVENT_ID" zm Events >> $EVENT_PATH/.sql

View File

@@ -7,7 +7,7 @@
missingok
}
Now the weekly db backup
# Now the weekly db backup
/var/lib/zm/zm_backup.sql {
weekly

View File

@@ -46,6 +46,7 @@ if ( !empty($_REQUEST['group']) )
else
{
$group = '';
$groupSql = '';
}
$sql = "select * from Monitors where Function != 'None'$groupSql order by Sequence";

View File

@@ -1,10 +1,10 @@
function submitForm( element )
{
var form = element.form;
if ( option.selectedIndex == 0 )
view.value = currentView;
if ( form.option.selectedIndex == 0 )
form.view.value = currentView;
else
view.value = 'none';
form.view.value = 'none';
form.submit();
}

View File

@@ -1,4 +1,4 @@
function checkState( form )
function checkState( element )
{
var form = element.form;