31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
|| #################################################################### ||
|
|
|| # ArrowChat # ||
|
|
|| # ---------------------------------------------------------------- # ||
|
|
|| # Copyright ©2010-2020 ArrowSuites LLC. All Rights Reserved. # ||
|
|
|| # This file may not be redistributed in whole or significant part. # ||
|
|
|| # ---------------- ARROWCHAT IS NOT FREE SOFTWARE ---------------- # ||
|
|
|| # http://www.arrowchat.com | http://www.arrowchat.com/license/ # ||
|
|
|| #################################################################### ||
|
|
*/
|
|
|
|
// Redirect to install if the installation hasn't been completed or admin if it has
|
|
if (!file_exists("includes" . DIRECTORY_SEPARATOR . "config.php"))
|
|
{
|
|
if (file_exists("install" . DIRECTORY_SEPARATOR . "index.php"))
|
|
{
|
|
header("Location: " . "install" . DIRECTORY_SEPARATOR);
|
|
}
|
|
else
|
|
{
|
|
echo "We have detected that ArrowChat installer has not been run, but there is no install directory";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
header("Location: " . "admin" . DIRECTORY_SEPARATOR);
|
|
}
|
|
|
|
?>
|