virt2/api/code/ajax/page_all.php

12 lines
322 B
PHP
Raw Normal View History

<?php
if ( $_SESSION['dostup'] !=='a' && $_SESSION['dostup'] !== 'e' ) header( 'Location: /403/' );
switch(@$_POST['act']) {
case 'del_page':
if ($_SESSION['dostup']==='a' ||$_SESSION['dostup']==='e' ){
$db -> del_id ( 'pages', $_POST['id'] ); //исполняем функцию с параметрами
}
break;
}
?>