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