<?php
echo "<h3>Server Environment Check</h3>";

// exec available?
$disabled = explode(',', ini_get('disable_functions'));
$disabled = array_map('trim', $disabled);

echo "exec(): " . (in_array('exec', $disabled) ? '❌ Disabled' : '✅ Available') . "<br>";
echo "shell_exec(): " . (in_array('shell_exec', $disabled) ? '❌ Disabled' : '✅ Available') . "<br>";
echo "system(): " . (in_array('system', $disabled) ? '❌ Disabled' : '✅ Available') . "<br>";

// mysqldump available?
$mysqldump = shell_exec('which mysqldump 2>/dev/null');
echo "mysqldump: " . ($mysqldump ? '✅ ' . trim($mysqldump) : '❌ Not found') . "<br>";

// PHP version
echo "PHP Version: " . phpversion() . "<br>";

// ZipArchive?
echo "ZipArchive: " . (class_exists('ZipArchive') ? '✅ Available' : '❌ Not available') . "<br>";

// cURL?
echo "cURL: " . (function_exists('curl_init') ? '✅ Available' : '❌ Not available') . "<br>";

echo "<br><b>এই file টা check এর পর delete করে দিও!</b>";
?>
