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 "resources/require.php"; require_once "resources/check_auth.php"; include "app_languages.php"; if (permission_exists('extension_active_view')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support foreach($text as $key => $value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //http get and set variables $event_type = $_GET['event_type']; //open_window //iframe if ($event_type=="iframe") { $iframe_width = $_GET['iframe_width']; $iframe_height = $_GET['iframe_height']; $iframe_postition = $_GET['iframe_postition']; if (strlen($iframe_postition) > 0) { $iframe_postition = 'right'; } if (strlen($iframe_width) > 0) { $iframe_width = '25%'; } if (strlen($iframe_height) > 0) { $iframe_height = '100%'; } } if (strlen($_GET['url']) > 0) { $url = $_GET['url']; } if (strlen($_GET['rows']) > 0) { $rows = $_GET['rows']; } else { $rows = 0; } $conference_name = trim($_REQUEST["c"]); $tmp_conference_name = str_replace("_", " ", $conference_name); require_once "resources/header.php"; ?> "; echo "\n"; echo " \n"; echo " \n"; //get the user status when the page loads $sql = ""; $sql .= "select * from v_users "; $sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "and username = '".$_SESSION['username']."' "; $sql .= "and user_enabled = 'true' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); foreach ($result as &$row) { $user_status = $row["user_status"]; break; //limit to 1 row } if ($_SESSION['user_status_display'] == "false") { //hide the user_status when it is set to false } else { echo " \n"; echo " \n"; } echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " ".$text['title-2']."
\n"; echo "
\n"; echo "  "; echo " \n"; //status list echo "  "; echo " ".$text['label-status']." \n"; $cmd = "'calls_exec.php?action=user_status&data='+this.value+'"; $cmd .= "&cmd=callcenter_config+agent+set+status+".$_SESSION['username']."@".$_SESSION['domain_name']."+'+this.value"; echo " \n"; echo " \n"; echo "  "; echo " ".$text['label-transfer']."\n"; echo " \n"; echo "
\n"; echo " ".$text['description-2']."\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "\n"; echo " \n"; if ($event_type=="iframe") { echo " \n"; if ($event_type=="iframe") { echo "\n"; echo "\n"; } echo " "; echo "
\n"; } else { echo " \n"; } echo "
\n"; echo "
".date('Y-m-d-s')."
\n"; echo "
\n"; echo " \n"; echo "
"; echo "\n"; echo "\n"; require_once "resources/footer.php"; ?>