Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ //include the root directory include "root.php"; //if config.php file does not exist then redirect to the install page if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) { //do nothing } elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) { //original directory } elseif (file_exists("/etc/fusionpbx/config.php")){ //linux } elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){ //bsd } else { header("Location: ".PROJECT_PATH."/resources/install.php"); exit; } //additional includes require_once "resources/require.php"; require_once "resources/check_auth.php"; require_once "resources/header.php"; //add multi-lingual support echo "\n"; foreach($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //information //echo "\n"; //echo " \n"; //echo " \n"; //echo " \n"; //echo "
Information
\n"; //echo " The following links are for convenience access to the user account settings, and voicemail.
\n"; //echo "
\n"; //echo "
\n"; //start the user table echo "
"; echo "
"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; //voicemail if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/voicemails/voicemail_messages.php")) { echo "\n"; echo " \n"; echo " \n"; echo "\n"; } //end the table echo "
".$text['title-user-settings']."  
\n"; echo " ".$text['label-username'].": \n"; echo " \n"; echo " ".$_SESSION["username"]." \n"; echo "
\n"; echo " ".$text['label-voicemail'].": \n"; echo " \n"; echo " ".$text['label-view-messages']." \n"; echo "
\n"; echo "
\n"; echo "
\n"; //call forward, follow me and dnd if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/calls/calls.php")) { $is_included = "true"; require_once "app/calls/calls.php"; } //ring group forward if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/ring_groups/ring_group_forward.php")) { $is_included = "true"; require_once "app/ring_groups/ring_group_forward.php"; } //show the footer require_once "resources/footer.php"; ?>