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.
27 lines
696 B
27 lines
696 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']);
|
|
};
|
|
if(isset( $_POST['AUX'] )){
|
|
$AUX = intval($_POST['AUX']);
|
|
} else {
|
|
$AUX = intval($_GET['AUX']);
|
|
};
|
|
$QS = "SELECT * FROM pictures WHERE id={$PID}";
|
|
$Result = $DATABASE->Query( $QS, false );
|
|
if( count( $Result ) ){
|
|
loadPicture( $Result[0] );
|
|
} else {
|
|
loadNotPicture();
|
|
};
|
|
} else {
|
|
header('location: /');
|
|
};
|
|
?>
|