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/check_auth.php"; load_extensions(); //disable login message if ($_GET['msg'] == 'dismiss') { unset($_SESSION['login']['message']['text']); $sql = "update v_default_settings "; $sql .= "set default_setting_enabled = 'false' "; $sql .= "where "; $sql .= "default_setting_category = 'login' "; $sql .= "and default_setting_subcategory = 'message' "; $sql .= "and default_setting_name = 'text' "; $db->exec(check_sql($sql)); unset($sql); } //add multi-lingual support require_once "app_languages.php"; foreach($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } // load header require_once "resources/header.php"; $page["title"] = $text['title-user_dashboard']; echo "
".$text['header-user_dashboard']."
"; echo $text['description-user_dashboard']; //display login message if (if_group("superadmin") && $_SESSION['login']['message']['text'] != '') { echo "


"; echo "
".$text['login-message_attention']."  ".$_SESSION['login']['message']['text']."  (".$text['login-message_dismiss'].")
"; } //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")) { if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) { $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")) { if (permission_exists('ring_group_forward')) { //ring_group_forward $is_included = "true"; require_once "app/ring_groups/ring_group_forward.php"; } } //show the footer require_once "resources/footer.php"; ?>