Web Interface For Lite Argus Control modules
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php require_once('../ajax_asm.php'); if( $CUser->Data['id'] > 1 && $CUser->Data['access'] > 5 ){ $Data = array(); $Data['success'] = false; if( isset( $_POST['OPID'] ) ){ $CMD = intval( $_POST['OPID'] ); } else { $CMD = 0; }; if( $CMD > 0 ){ switch( $CMD ){ case 1:{//Debug Mode
$PARAM = intval( $_POST['OPCODE'] ); $QS = "UPDATE `system_props` SET `working_mode`={$PARAM}"; $DATABASE->Query( $QS ); $Data['q'] = $QS; $Data['success'] = true; break; }; case 2:{//Layout
$PARAM = intval( $_POST['OPCODE'] ); $QS = "UPDATE `system_props` SET `app_layout`={$PARAM}"; $DATABASE->Query( $QS ); $Data['q'] = $QS; $Data['success'] = true; break; }; }; } else { $Data['msg']='Wrong Parameters!'; }; echo json_encode( $Data ); exit(); }; header('location: /');?>
|