Viewing file: diag.php (974 B) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
error_reporting(E_ALL); ini_set('display_errors', 1);
header('Content-Type: text/plain');
echo "Diagnostics\n\n";
echo "HTTPS: " . (($_SERVER['HTTPS'] ?? '') ? 'on' : 'off') . "\n";
echo "curl_init: " . (function_exists('curl_init') ? 'yes' : 'no (enable php-curl)') . "\n";
echo "DOMDocument: " . (class_exists('DOMDocument') ? 'yes' : 'no (enable php-xml)') . "\n";
$dir = __DIR__ . '/storage';
if (!is_dir($dir)) {
$mk = @mkdir($dir, 0775, true);
echo "mkdir(storage): " . ($mk ? 'created' : 'failed (permissions)') . "\n";
} else {
echo "storage dir: exists\n";
}
$test = @file_put_contents($dir.'/writetest.txt', 'ok');
echo "write test: " . ($test !== false ? 'ok' : 'failed (permissions)') . "\n";
echo "\nFiles present:\n";
foreach (['auth_token.php','cookie_utils.php','login_flow.php','index.html','setup_env.php','config.php'] as $f) {
echo str_pad($f, 18) . ': ' . (is_file(__DIR__.'/'.$f) ? 'yes' : 'no') . "\n";
}
|