Browse Source

New Upgrade Package Script

Evgeny Gagua 2 months ago
parent
commit
86289039e1
  1. 5356
      files.list
  2. 2
      lib/ajax_asm.php
  3. 2
      lib/controller/getHistoryEvents.php
  4. 2
      lib/controller/importMojoReport.php
  5. 7
      lib/defines.php
  6. 2
      lib/js_asm.php
  7. 2
      lib/settings.php

5356
files.list
File diff suppressed because it is too large
View File

2
lib/ajax_asm.php

@ -16,7 +16,7 @@ if( $TT_123[0] == '4' ){
};
require_once( 'php/db/internal.php' );
require_once( 'php/db/SQLite_Class.php');
//$DATABASE = new SQLite_DB( '/srv/www/web/lib/controller/data/mysqlitedb.db');
//$DATABASE = new SQLite_DB( $SYSPath . '/lib/controller/data/mysqlitedb.db');
//$DATABASE->SetCacheDir( $DBCacheDir );

2
lib/controller/getHistoryEvents.php

@ -16,7 +16,7 @@
$DS = date("Y/m/d", $DTS );
//$QS = "SELECT `events`.*, `events_2_videos`.* FROM `events` LEFT JOIN `events_2_videos` ON( `events`.`id` = `events_2_videos`.`evt_id` ) WHERE `events`.`id` >= {$BID} AND `events`.`id`<={$EID} ORDER BY `ts` ASC, `ts_ms` ASC";
$QS = "SELECT `events`.*, `events_2_videos`.`video_id`, `events_2_pictures`.`picture_id` FROM `events` LEFT JOIN `events_2_videos` ON( `events`.`id` = `events_2_videos`.`evt_id` ) LEFT JOIN `events_2_pictures` ON( `events`.`id` = `events_2_pictures`.`evt_id` ) WHERE `events`.`id`>={$BID} AND `events`.`id`<={$EID} ORDER BY `events`.`ts` ASC, `events`.`ts_ms` ASC";
$ZIZI = new SQLite_DB( '/srv/www/web/lib/controller/data/reports/'.$DS.'/report.db');
$ZIZI = new SQLite_DB( $SYSPath . '/lib/controller/data/reports/'.$DS.'/report.db');
//$LREC = array_reverse( $ZIZI->Query( $QS ) );
$LREC = $ZIZI->Query( $QS );
$Data['log'] = array();

2
lib/controller/importMojoReport.php

@ -314,7 +314,7 @@
}
};
};
//$REPORT = new SQLite_DB( '/srv/www/web/lib/controller/data/mysqlitedb.db');
//$REPORT = new SQLite_DB( $SYSPath . '/lib/controller/data/mysqlitedb.db');
function analyseReportDB( $DBF ){

7
lib/defines.php

@ -1,6 +1,8 @@
<?php
$ARGUS_WEB_VERSION = trim( file_get_contents( '/srv/www/srv/lib/version.var' ) );
$SYSPath = '/srv/www/server';
$ARGUS_WEB_VERSION = trim( file_get_contents( $SYSPath . '/lib/version.var' ) );
$SSL_INSTALLLED = false;
if( isset( $_SERVER['SERVER_PORT'] ) ){
@ -15,7 +17,7 @@ if( isset( $_SERVER['SERVER_PORT'] ) ){
};
};
$SYSPath = '/srv/www/srv/';
$ShowImagesLocal=false;
$ShowThumbnailsLocal=true;
$ShowAdw=true;
@ -23,7 +25,6 @@ $SaveLocal=false;
$MailAgent='SENDMAIL';
$CGP_SubmitPath='../Submitted/';
$DBCacheDir=$SYSPath . 'cache';
$MinimalSize=640000;
function microtime_float(){

2
lib/js_asm.php

@ -16,7 +16,7 @@ if( $TT_123[0] == '4' ){
};
//require_once( 'php/db/SQLite_Class.php');
//$DATABASE = new SQLite_DB( '/srv/www/web/lib/controller/data/mysqlitedb.db');
//$DATABASE = new SQLite_DB( $SYSPath . '/lib/controller/data/mysqlitedb.db');
$QS="SELECT * FROM system_props LIMIT 1";
$RV = $DATABASE->Query( $QS );

2
lib/settings.php

@ -3,7 +3,7 @@
$DBName="argus";
$DBUser="argus";
$DBPassword="Jc8zYWEhqGAGGYJRum92tm";
$SYSPath="/srv/www/web";
$SYSPath="/srv/www/server";
$WEBUser="www-data";
$WEBGroup="www-data";
Loading…
Cancel
Save