Added extractDominantColor() JS function that picks the dominant color from uploaded logo and suggests it as theme color. Updated gdcheck.php to show all needed extensions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
695 B
PHP
16 lines
695 B
PHP
<?php
|
|
echo "PHP " . PHP_VERSION . " (" . php_sapi_name() . ")\n";
|
|
echo "php.ini: " . php_ini_loaded_file() . "\n\n";
|
|
|
|
$check = ['pdo', 'pdo_mysql', 'gd', 'imagick', 'fileinfo', 'mbstring', 'curl', 'openssl', 'json', 'session', 'mysqli', 'imap', 'zip', 'xml', 'dom', 'simplexml'];
|
|
echo "=== Tarvittavat laajennukset ===\n";
|
|
foreach ($check as $ext) {
|
|
echo ($ext . ': ' . str_pad('', 15 - strlen($ext)) . (extension_loaded($ext) ? '✅ KYLLÄ' : '❌ EI')) . "\n";
|
|
}
|
|
echo "\n=== Kaikki ladatut ===\n";
|
|
echo implode(', ', get_loaded_extensions()) . "\n";
|
|
|
|
echo "\n=== Lisätietojen ini-polut ===\n";
|
|
$scanDir = php_ini_scanned_files();
|
|
echo $scanDir ?: "(ei skannattu lisä-ini-tiedostoja)\n";
|