Redirect properly if not config.inc.php file
This commit is contained in:
parent
01d8f1786e
commit
79e603b700
1 changed files with 2 additions and 5 deletions
|
|
@ -134,8 +134,8 @@
|
||||||
* </ul>
|
* </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') )
|
if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php') )
|
||||||
{
|
{
|
||||||
echo <<<EOF
|
echo <<<EOF
|
||||||
|
|
||||||
|
|
@ -143,9 +143,6 @@ if (! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config
|
||||||
window.location="install.php";
|
window.location="install.php";
|
||||||
</script>
|
</script>
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
header("Location: install.php");
|
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue