function page_requires_no_config()
{
if (str_ends_with($_SERVER['SCRIPT_FILENAME'],"install.php") ||
- str_ends_with($_SERVER['SCRIPT_FILENAME'],"test_connection.php"))
+ str_ends_with($_SERVER['SCRIPT_FILENAME'],"installation.php"))
{
return TRUE;
}
{
/* Allow empty conf */
} else
+if (!file_exists(UPATH."/config/config.php") && !file_exists(UPATH."/config.php"))
+{
+ header("Location: settings/install.php");
+ die();
+} else
{
require_once UPATH . "/config/config.php";
}