Exemple #1
0
//	opcache_reset();
require_once "TinyAjax.php";
require_once "TinyAjaxBehavior.php";
require_once "vars.php";
require_once "includes/dvrui_hdhrbintools.php";
require_once "includes/dvrui_recordengine_loglist.php";
require_once "logfile.php";
require_once "statusmessage.php";
require_once "recordings.php";
require_once "server.php";
require_once "hdhr.php";
require_once "theme.php";
/* Prepare Ajax */
//	error_log( "Setting up Ajax" );
$ajax = new TinyAjax();
$ajax->setRequestType("POST");
// Change request-type from GET to POST
$ajax->showLoading();
// Show loading while callback is in progress
/* Export the PHP Interface */
//	error_log( "Setting up Ajax functions" );
$ajax->exportFunction("getLogFile", "filename");
$ajax->exportFunction("rmLogFile", "filename");
$ajax->exportFunction("updateRecordPath", "recordPath");
$ajax->exportFunction("updateServerPort", "serverPort");
$ajax->exportFunction("changeDvrState", "option");
$ajax->exportFunction("openLogPage", "");
$ajax->exportFunction("openRecordingsPage", "");
$ajax->exportFunction("openHDHRPage", "");
$ajax->exportFunction("openServerPage", "");
$ajax->exportFunction("deleteRecordingByID", "id, rerecord");