Redirect properly if not config.inc.php file

This commit is contained in:
sparkyx 2026-04-28 11:13:13 +02:00
parent 01d8f1786e
commit 79e603b700

View file

@ -134,7 +134,7 @@
* </ul>
*/
// -- if there is not config.inc.php file then redirect to install.php
if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php') )
{
echo <<<EOF
@ -143,9 +143,6 @@ if (! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config
window.location="install.php";
</script>
EOF;
header("Location: install.php");
exit(0);
}