Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ include "root.php"; require_once "includes/require.php"; //if config.php does not exist then redirect to the install.php. if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){ header("Location: ".PROJECT_PATH."/resources/install.php"); exit; } //add multi-lingual support echo "\n"; foreach($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //get the http values and set as variables $path = check_str($_GET["path"]); $msg = check_str($_GET["msg"]); //set a default login destination if (strlen($_SESSION['login']['destination']['url']) == 0) { $_SESSION['login']['destination']['url'] = PROJECT_PATH."/core/user_settings/user_dashboard.php"; } //add the header include "includes/header.php"; //show the message if (strlen($msg) > 0) { echo "

"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Message
\n"; switch ($msg) { case "username required": echo "Please provide a username."; break; case "incorrect account information": echo "The username or password was incorrect. Please try again."; break; case "install complete": echo "
\n"; echo "Installation is complete.
"; echo "
"; echo "Getting Started:
"; echo "
  • There are two levels of admins 1. superadmin 2. admin.
    "; echo "
    \n"; echo "username: superadmin
    password: fusionpbx
    \n"; echo "
    \n"; echo "username: admin
    password: fusionpbx

    \n"; echo "
  • \n"; echo "
  • \n"; echo "The database connection settings have been saved to ".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/includes/config.php.
    \n"; echo "
  • \n"; echo "
\n"; echo "\n"; break; } echo "
\n"; echo "
\n"; echo "

\n\n"; } //show the content echo "

"; echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if ($_SESSION['login']['domain_name.visible']['boolean'] == "true") { echo "\n"; echo "\n"; echo "\n"; echo "\n"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo " ".$text['label-username'].":\n"; echo "\n"; echo " \n"; echo "
\n"; echo " ".$text['label-password'].":\n"; echo "\n"; echo " \n"; echo "
\n"; echo " ".$text['label-domain'].":\n"; echo "\n"; if (count($_SESSION['login']['domain_name']) > 0) { echo " \n"; } else { echo " \n"; } echo "
\n"; echo "\n"; echo " \n"; echo "
\n"; echo "
"; echo "
"; //add the footer include "includes/footer.php"; ?>