mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Fixes and patches.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2641 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
missingok
|
||||
}
|
||||
|
||||
Now the weekly db backup
|
||||
# Now the weekly db backup
|
||||
|
||||
/var/lib/zm/zm_backup.sql {
|
||||
weekly
|
||||
|
||||
@@ -46,6 +46,7 @@ if ( !empty($_REQUEST['group']) )
|
||||
else
|
||||
{
|
||||
$group = '';
|
||||
$groupSql = '';
|
||||
}
|
||||
|
||||
$sql = "select * from Monitors where Function != 'None'$groupSql order by Sequence";
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function checkState( form )
|
||||
function checkState( element )
|
||||
{
|
||||
var form = element.form;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user