virt2/api/code/ajax/fm.php

12 lines
341 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
if ($_SESSION['dostup']!=='a' && $_SESSION['dostup']!=='e')header( 'Location: /403/' );
/* Новый модуль */
switch ($_POST['act']) {
case 'del':
unlink (MYDIR . $_POST['f']);
echo 1;//сообщаем браузеру что все хорошо
break;
default:
die( 'Не верный запрос' );
}
?>