Web UI for ARGUS server
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.
 
 
 
 

22 lines
584 B

<?php
require_once('../ajax_asm.php');
if( $CUser->Data['id'] > 1 ){
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
if(isset( $_POST['PID'] )){
$PID = intval($_POST['PID']);
} else {
$PID = intval($_GET['PID']);
};
$QS = "SELECT * FROM pictures WHERE id={$PID}";
$Result = $DATABASE->Query( $QS, false );
if( count( $Result ) ){
loadPicture( $Result[0] );
} else {
loadNotPicture();
};
} else {
header('location: /');
};
?>