22 lines
No EOL
485 B
PHP
Executable file
22 lines
No EOL
485 B
PHP
Executable file
<?php
|
|
include("config/config.php");
|
|
session_destroy();
|
|
function rrmdir($dir)
|
|
{
|
|
if (is_dir($dir)) {
|
|
$objects = scandir($dir);
|
|
foreach ($objects as $object) {
|
|
if ($object != "." && $object != "..") {
|
|
if (filetype($dir."/".$object) == "dir")
|
|
rrmdir($dir."/".$object);
|
|
else unlink ($dir."/".$object);
|
|
}
|
|
}
|
|
reset($objects);
|
|
rmdir($dir);
|
|
}
|
|
}
|
|
rrmdir('admin');
|
|
$url = SITE_URL;
|
|
header("Location:$url");
|
|
?>
|