12 lines
322 B
PHP
12 lines
322 B
PHP
|
<?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;
|
|||
|
}
|
|||
|
|
|||
|
?>
|