Ver código fonte

Active extensions has its own repo

FusionPBX 10 meses atrás
pai
commit
bf146ef91f

+ 0 - 234
active_extensions/active_extension_assigned_inc.php

@@ -1,234 +0,0 @@
-<?php
-/*
-	FusionPBX
-	Version: MPL 1.1
-
-	The contents of this file are subject to the Mozilla Public License Version
-	1.1 (the "License"); you may not use this file except in compliance with
-	the License. You may obtain a copy of the License at
-	http://www.mozilla.org/MPL/
-
-	Software distributed under the License is distributed on an "AS IS" basis,
-	WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-	for the specific language governing rights and limitations under the
-	License.
-
-	The Original Code is FusionPBX
-
-	The Initial Developer of the Original Code is
-	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2023
-	the Initial Developer. All Rights Reserved.
-
-	Contributor(s):
-	Mark J Crane <[email protected]>
-*/
-
-//includes files
-	require_once dirname(__DIR__, 2) . "/resources/require.php";
-	require_once "resources/check_auth.php";
-
-//check permissions
-	if (permission_exists('active_extension_assigned_view')) {
-	
-		//http get and set variables
-			if (strlen($_GET['url']) > 0) {
-				$url = $_GET['url'];
-			}
-	
-			echo "<table width='100%' border='0' cellpadding='5' cellspacing='0'>\n";
-			echo "<tr>\n";
-			echo "<td valign='top'>\n";
-	
-			echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
-			echo "<tr>\n";
-			echo "<th width='50px;'>Ext</th>\n";
-			if ($_SESSION['user_status_display'] == "false") {
-				//hide the user_status when it is set to false
-			}
-			else {
-				echo "<th>".$text['label-status']."</th>\n";
-			}
-			echo "<th>".$text['label-time']."</th>\n";
-			//echo "<th>Direction</th>\n";
-			//echo "<th>Profile</th>\n";
-			echo "<th>".$text['label-cid-name']."</th>\n";
-			echo "<th>".$text['label-cid-number']."</th>\n";
-			echo "<th>".$text['label-destination']."</th>\n";
-			echo "<th>".$text['label-app']."</th>\n";
-			echo "<th>".$text['label-secure']."</th>\n";
-			echo "<th>".$text['label-name']."</th>\n";
-			echo "<th>".$text['label-opt']."</th>\n";
-			echo "</tr>\n";
-			foreach ($_SESSION['extension_array'] as $row) {
-				$domain_uuid = $row['domain_uuid'];
-				$extension = $row['extension'];
-				$enabled = $row['enabled'];
-				$effective_caller_id_name = $row['effective_caller_id_name'];
-	
-				foreach ($_SESSION['user']['extension'] as &$user_row) {
-					if ($extension == $user_row['user']) {
-						$found_extension = false;
-						$x = 1;
-	
-						foreach ($channels_array as $row) {
-							//set the php variables
-								foreach ($row as $key => $value) {
-									$$key = $value;
-								}
-							//find the matching extensions
-								if ($number == $extension) {
-									//set the found extension to true
-										$found_extension = true;
-										break;
-								}
-						} //end foreach
-	
-						if ($number == $extension) {
-							if ($application == "conference") { 
-								$alt_color = "background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif";
-							}
-							switch ($application) {
-							case "conference":
-								$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_conference.gif');\"";
-								break;
-							case "fifo":
-								$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_fifo.gif');\"";
-								break;
-							case "valet_park":
-								$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_fifo.gif');\"";
-								break;
-							default:
-								$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif');\"";
-							}
-							echo "<tr>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>".escape($extension)."</td>\n";
-							if ($_SESSION['user_status_display'] == "false") {
-								//hide the user_status when it is set to false
-							}
-							else {
-								echo "<td class='".$row_style[$c]."' $style_alternate>".escape($user_array[$extension]['user_status'])."&nbsp;</td>\n";
-							}
-							echo "<td class='".$row_style[$c]."' $style_alternate width='20px;'>".$call_length."</td>\n";
-	
-							if (strlen($url) == 0) {
-								$url = PROJECT_PATH."/app/contacts/contacts.php?search_all={cid_num}";
-							}
-							$url = str_replace ("{cid_num}", $cid_num, $url);
-							$url = str_replace ("{cid_name}", $cid_name, $url);
-							echo "<td class='".$row_style[$c]."' $style_alternate><a href='".escape($url)."' style='color: #444444;' target='_blank'>".escape($cid_name)."</a></td>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate><a href='".escape($url)."' style='color: #444444;' target='_blank'>".escape($cid_num)."</a></td>\n";
-	
-							//get the active uuid list
-								if (strlen($uuid) > 1) {
-									if (strlen($uuid_1) == 0) {
-										$uuid_1 = $uuid;
-										//$direction_1 = $direction;
-										$cid_name_1 = $cid_name;
-										$cid_num_1 = $cid_num;
-									}
-									if (strlen($uuid_1) > 0 && $uuid != $uuid_1) {
-										$uuid_2 = $uuid;
-										//$direction_2 = $direction;
-										$cid_name_2 = $cid_name;
-										$cid_num_2 = $cid_num;
-									}
-								}
-	
-							echo "<td class='".$row_style[$c]."' $style_alternate>\n";
-							if ($application == "valet_park") {
-								echo $valet_array[trim($uuid)]['extension']."\n";
-							}
-							else {
-								echo $dest."&nbsp;\n";
-							}
-							echo "</td>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>\n";
-							if ($application == "fifo") {
-								echo "queue &nbsp;\n";
-							}
-							else {
-								echo $application."&nbsp;\n";
-							}
-							echo "</td>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>\n";
-							echo "".$secure."&nbsp;\n";
-							echo "</td>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>\n";
-							echo "".$effective_caller_id_name."&nbsp;\n";
-							echo "</td>\n";
-							echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-								//transfer
-									echo "	<a href='javascript:void(0);' style='color: #444444;' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$text['label-transfer']."</strong>';\" onclick=\"send_cmd('calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$text['label-transfer']."</a>&nbsp;\n";
-								//park
-									echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$text['label-park']."</a>&nbsp;\n";
-								//hangup
-									echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$text['confirm-hangup']."');if (confirm_response){send_cmd('calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$text['label-hangup']."</a>&nbsp;\n";
-								//record start/stop
-									$tmp_file = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/".$uuid.".wav";
-									if (file_exists($tmp_file)) {
-										//stop
-										echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$text['label-stop']."</a>&nbsp;\n";
-									}
-									else {
-										//start
-										echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$text['label-start']."</a>&nbsp;\n";
-									}
-								echo "	&nbsp;";
-							echo "</td>\n";
-							echo "</tr>\n";
-						}
-						else {
-							$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_light.gif');\"";
-							echo "<tr>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n";
-							if ($_SESSION['user_status_display'] == "false") {
-								//hide the user_status when it is set to false
-							}
-							else {
-								echo "<td class='".$row_style[$c]."' $style_alternate>".escape($user_array[$extension]['user_status'])."&nbsp;</td>\n";
-							}
-							echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-							echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-							echo "	&nbsp;";
-							echo "</td>\n";
-							echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-							echo "	&nbsp;";
-							echo "</td>\n";
-							echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-							echo "	&nbsp;";
-							echo "</td>\n";
-							echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-							echo "	&nbsp;";
-							echo "</td>\n";
-							echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-							echo "	&nbsp;";
-							echo "</td>\n";
-							echo "</tr>\n";
-						}
-						if ($c==0) { $c=1; } else { $c=0; }
-					} //end if
-				} //end foreach
-			}
-			echo "</table>\n";
-	
-			echo "</td>\n";
-			echo "</tr>\n";
-			echo "</table>\n";
-	
-			echo "<span id='uuid_1' style='visibility:hidden;'>$uuid_1</span>\n";
-			//echo "<span id='direction_1' style='visibility:hidden;'>$direction_1</span>\n";
-			echo "<span id='cid_name_1' style='visibility:hidden;'>$cid_name_1</span>\n";
-			echo "<span id='cid_num_1' style='visibility:hidden;'>$cid_num_1</span>\n";
-	
-			echo "<span id='uuid_2' style='visibility:hidden;'>$uuid_2</span>\n";
-			//echo "<span id='direction_2' style='visibility:hidden;'>$direction_2</span>\n";
-			echo "<span id='cid_name_2' style='visibility:hidden;'>$cid_name_2</span>\n";
-			echo "<span id='cid_num_2' style='visibility:hidden;'>$cid_num_2</span>\n";
-	
-			echo "<br />\n";
-	}
-
-?>

+ 0 - 347
active_extensions/active_extensions.php

@@ -1,347 +0,0 @@
-<?php
-/*
-	FusionPBX
-	Version: MPL 1.1
-
-	The contents of this file are subject to the Mozilla Public License Version
-	1.1 (the "License"); you may not use this file except in compliance with
-	the License. You may obtain a copy of the License at
-	http://www.mozilla.org/MPL/
-
-	Software distributed under the License is distributed on an "AS IS" basis,
-	WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-	for the specific language governing rights and limitations under the
-	License.
-
-	The Original Code is FusionPBX
-
-	The Initial Developer of the Original Code is
-	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2023
-	the Initial Developer. All Rights Reserved.
-
-	Contributor(s):
-	Mark J Crane <[email protected]>
-*/
-
-//includes files
-	require_once dirname(__DIR__, 2) . "/resources/require.php";
-	require_once "resources/check_auth.php";
-
-//check permissions
-	if (permission_exists('active_extension_view')) {
-		//access granted
-	}
-	else {
-		echo "access denied";
-		exit;
-	}
-
-//add multi-lingual support
-	$language = new text;
-	$text = $language->get();
-
-//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";
-?><script type="text/javascript">
-<!--
-
-//declare variables
-	var previous_uuid_1 = '';
-	var previous_uuid_2 = '';
-	var url = '<?php echo $url; ?>';
-
-//define the ajax function
-	function loadXmlHttp(url, id) {
-		var f = this;
-		f.xmlHttp = null;
-		/*@cc_on @*/ // used here and below, limits try/catch to those IE browsers that both benefit from and support it
-		/*@if(@_jscript_version >= 5) // prevents errors in old browsers that barf on try/catch & problems in IE if Active X disabled
-		try {f.ie = window.ActiveXObject}catch(e){f.ie = false;}
-		@end @*/
-		if (window.XMLHttpRequest&&!f.ie||/^http/.test(window.location.href))
-			f.xmlHttp = new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari, others, IE 7+ when live - this is the standard method
-		else if (/(object)|(function)/.test(typeof createRequest))
-			f.xmlHttp = createRequest(); // ICEBrowser, perhaps others
-		else {
-			f.xmlHttp = null;
-			 // Internet Explorer 5 to 6, includes IE 7+ when local //
-			/*@cc_on @*/
-			/*@if(@_jscript_version >= 5)
-			try{f.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
-			catch (e){try{f.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){f.xmlHttp=null;}}
-			@end @*/
-		}
-		if(f.xmlHttp != null){
-			f.el = document.getElementById(id);
-			f.xmlHttp.open("GET",url,true);
-			f.xmlHttp.onreadystatechange = function(){f.stateChanged();};
-			f.xmlHttp.send(null);
-		}
-	}
-
-loadXmlHttp.prototype.stateChanged=function () {
-if (this.xmlHttp.readyState == 4 && (this.xmlHttp.status == 200 || !/^http/.test(window.location.href)))
-
-	document.getElementById('ajax_reponse').innerHTML = this.xmlHttp.responseText;
-
-	if (document.getElementById('uuid_1')) {
-		uuid_1 = document.getElementById('uuid_1').innerHTML;
-	}
-	else {
-		uuid_1 = "";
-	}
-
-	if (document.getElementById('direction_1')) {
-		direction_1 = document.getElementById('direction_1').innerHTML;
-	}
-	else {
-		direction_1 = "";
-	}
-
-	if (document.getElementById('cid_name_1')) {
-		cid_name_1 = document.getElementById('cid_name_1').innerHTML;
-	}
-	else {
-		cid_name_1 = "";
-	}
-
-	if (document.getElementById('cid_num_1')) {
-		cid_num_1 = document.getElementById('cid_num_1').innerHTML;
-	}
-	else {
-		cid_num_1 = "";
-	}
-
-	//get the user_status from the database
-		if (document.getElementById('db_user_status')) {
-			db_user_status = document.getElementById('db_user_status').innerHTML;
-		}
-
-	if (previous_uuid_1 != uuid_1) {
-		if (cid_num_1.length > 6) {
-				var new_url = url;
-				new_url = new_url.replace("{cid_name}", cid_name_1);
-				new_url = new_url.replace("{cid_num}", cid_num_1);
-				new_url = new_url.replace("{uuid}", uuid_1);
-				previous_uuid_1 = uuid_1;
-<?php
-				if ($event_type=="open_window") {
-					echo "open_window = window.open(new_url,'width='+window.innerWidth+',height='+window.innerHeight+',left=0px;toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes');";
-					echo "if (window.focus) {open_window.focus()}\n";
-				}
-				if ($event_type=="iframe") {
-					echo "document.getElementById('iframe1').src = new_url;\n";
-					//iframe_postition
-					//iframe_width
-					//iframe_height
-				}
-?>
-		}
-		else {
-			//hangup or initial page load detected
-		}
-		previous_uuid_1 = uuid_1;
-	}
-}
-
-var requestTime = function() {
-	<?php
-	echo "var url = 'active_extensions_inc.php?". $_SERVER["QUERY_STRING"]."';\n";
-	echo "new loadXmlHttp(url, 'ajax_reponse');\n";
-	if (strlen($_SESSION["ajax_refresh_rate"]) == 0) { $_SESSION["ajax_refresh_rate"] = "900"; }
-	echo "setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, ".$_SESSION["ajax_refresh_rate"].");";
-	?>
-}
-
-if (window.addEventListener) {
-	window.addEventListener('load', requestTime, false);
-}
-else if (window.attachEvent) {
-	window.attachEvent('onload', requestTime);
-}
-
-function send_cmd(url) {
-	if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
-		xmlhttp=new XMLHttpRequest();
-	}
-	else {// code for IE6, IE5
-		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
-	}
-	xmlhttp.open("GET",url,false);
-	xmlhttp.send(null);
-	document.getElementById('cmd_reponse').innerHTML=xmlhttp.responseText;
-}
-
-var record_count = 0;
-var cmd;
-var destination;
-// -->
-</script>
-
-<?php
-
-echo "<div align='center'>";
-
-echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
-echo "	<tr>\n";
-echo "	<td align='left' colspan='2' nowrap='nowrap'>\n";
-echo "		<b>".$text['title-2']."</b><br>\n";
-echo "	</td>\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 "		<td class='' width='40%'>\n";
-	echo "			&nbsp;";
-	echo "		</td>\n";
-	echo "		<td class='' valign='bottom' align='right' style='width:200px' nowrap='nowrap'>\n";
-	//status list
-	echo "			&nbsp;";
-	echo "			<strong>".$text['label-status']."</strong>&nbsp;\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 "			<select id='agent_status' name='agent_status' class='formfld' style='width:125px' nowrap='nowrap' onchange=\"send_cmd($cmd);\">\n";
-	echo "				<option value='                '></option>\n";
-	if ($user_status == "Available") {
-		echo "		<option value='Available' selected='selected'>".$text['check-available-status']."</option>\n";
-	}
-	else {
-		echo "		<option value='Available'>".$text['check-available-status']."</option>\n";
-	}
-	if ($user_status == "Available (On Demand)") {
-		echo "		<option value='Available_On_Demand' selected='selected'>".$text['check-available-on-demand-status']."</option>\n";
-	}
-	else {
-		echo "		<option value='Available_On_Demand'>".$text['check-available-on-demand-status']."</option>\n";
-	}
-	if ($user_status == "Logged Out") {
-		echo "		<option value='Logged_Out' selected='selected'>".$text['check-loggedout-status']."</option>\n";
-	}
-	else {
-		echo "		<option value='Logged_Out'>".$text['check-loggedout-status']."</option>\n";
-	}
-	if ($user_status == "On Break") {
-		echo "		<option value='On_Break' selected='selected'>".$text['check-onbreak-status']."</option>\n";
-	}
-	else {
-		echo "		<option value='On_Break'>".$text['check-onbreak-status']."</option>\n";
-	}
-	if ($user_status == "Do Not Disturb") {
-		echo "		<option value='Do_Not_Disturb' selected='selected'>".$text['check-do-not-disturb-status']."</option>\n";
-	}
-	else {
-		echo "		<option value='Do_Not_Disturb'>".$text['check-do-not-disturb-status']."</option>\n";
-	}
-	echo "			</select>\n";
-	echo "		</td>\n";
-}
-*/
-
-echo "	<td align='right' nowrap='nowrap'>\n";
-echo "			&nbsp;";
-//echo "			<strong>".$text['label-transfer']."</strong>\n";
-//echo "			<input type=\"text\" id=\"form_value\" name=\"form_value\" class='formfld' style='width:125px'/>\n";
-echo "	</td>\n";
-echo "	</tr>\n";
-echo "	<tr>\n";
-echo "		<td align='left' colspan='99'>\n";
-echo "			".$text['description-2']."\n";
-echo "		</td>\n";
-echo "	</tr>\n";
-echo "</table>\n";
-
-echo "<div id=\"url\"></div>\n";
-echo "<br />\n";
-
-echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
-echo "	<tr class='border'>\n";
-if ($event_type=="iframe") {
-	echo "	<td align=\"left\" width='".escape($iframe_width)."'>\n";
-}
-else {
-	echo "	<td align=\"left\" width='100%'>\n";
-}
-echo "		<div id=\"ajax_reponse\"></div>\n";
-echo "		<div id=\"time_stamp\" style=\"visibility:hidden\">".date('Y-m-d-s')."</div>\n";
-echo "	</td>\n";
-
-if ($event_type=="iframe") {
-	echo "</td>\n";
-	echo "<td width='".escape($iframe_width)."' height='".escape($iframe_height)."'>\n";
-	echo "	<iframe src ='$url' width='100%' id='iframe1' height='100%' frameborder=0>\n";
-	echo "		<p>Your browser does not support iframes.</p>\n";
-	echo "	</iframe>\n";
-	echo "</td>\n";
-}
-
-echo "	</tr>";
-echo "</table>";
-echo "</div>\n";
-
-echo "<script type=\"text/javascript\">\n";
-echo "<!--\n";
-echo "function get_transfer_cmd(uuid) {\n";
-echo "	destination = document.getElementById('form_value').value;\n";
-echo "	if (destination.length > 1) { \n";
-echo "		cmd = \"uuid_transfer \"+uuid+\" -bleg \"+destination+\" xml ".$_SESSION['user_context']."\";\n";
-echo "	}\n";
-echo "	else {\n";
-echo "		cmd = '';\n";
-echo "		alert(\"Please provide a number to transfer the call to.\");\n";
-echo "	}\n";
-echo "	return escape(cmd);\n";
-echo "}\n";
-echo "\n";
-echo "function get_park_cmd(uuid) {\n";
-echo "	cmd = \"uuid_transfer \"+uuid+\" -bleg *6000 xml ".$_SESSION['user_context']."\";\n";
-echo "	return escape(cmd);\n";
-echo "}\n";
-echo "\n";
-echo "function get_record_cmd(uuid, prefix, name) {\n";
-echo "	cmd = \"uuid_record \"+uuid+\" start ".$_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/\"+uuid+\".wav\";\n";
-echo "	return escape(cmd);\n";
-echo "}\n";
-echo "-->\n";
-echo "</script>\n";
-
-require_once "resources/footer.php";
-?>

+ 0 - 569
active_extensions/active_extensions_inc.php

@@ -1,569 +0,0 @@
-<?php
-/*
-	FusionPBX
-	Version: MPL 1.1
-
-	The contents of this file are subject to the Mozilla Public License Version
-	1.1 (the "License"); you may not use this file except in compliance with
-	the License. You may obtain a copy of the License at
-	http://www.mozilla.org/MPL/
-
-	Software distributed under the License is distributed on an "AS IS" basis,
-	WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-	for the specific language governing rights and limitations under the
-	License.
-
-	The Original Code is FusionPBX
-
-	The Initial Developer of the Original Code is
-	Mark J Crane <[email protected]>
-	Copyright (C) 2010-2023
-	All Rights Reserved.
-
-	Contributor(s):
-	Mark J Crane <[email protected]>
-*/
-
-//includes files
-	require_once dirname(__DIR__, 2) . "/resources/require.php";
-	require_once "resources/check_auth.php";
-
-//check permissions
-	if (permission_exists('active_extension_view')) {
-		//access granted
-	}
-	else {
-		echo "access denied";
-		exit;
-	}
-
-//set debug to true or false
-	$debug = false;
-
-//http get and set variables
-	if (strlen($_GET['url']) > 0) {
-		$url = $_GET['url'];
-	}
-	if (strlen($_GET['rows']) == 0) {
-		$_GET['rows'] = 0;
-	}
-
-//define variables
-	$c = 0;
-	$row_style["0"] = "row_style1";
-	$row_style["1"] = "row_style1";
-
-//get the user status
-	$sql = "select e.extension, u.username, u.user_status ";
-	$sql .= "from v_users as u, v_extensions as e ";
-	$sql .= "where e.domain_uuid = '$domain_uuid' ";
-	$sql .= "and u.user_enabled = 'true' ";
-	$sql .= "and u.domain_uuid = '$domain_uuid' ";
-	//$sql = "select * ";
-	//$sql .= "from v_extensions ";
-	//$sql .= "where domain_uuid = '$domain_uuid' ";
-	//$sql .= "and enabled = 'true' ";
-	if (!(if_group("admin") || if_group("superadmin"))) {
-		if (count($_SESSION['user']['extension']) > 0) {
-			$sql .= "and (";
-			$x = 0;
-			foreach($_SESSION['user']['extension'] as $row) {
-				if ($x > 0) { $sql .= "or "; }
-				$sql .= "e.extension = '".$row['user']."' ";
-				$x++;
-			}
-			$sql .= ")";
-		}
-		else {
-			//hide any results when a user has not been assigned an extension
-			$sql .= "and extension = 'disabled' ";
-		}
-	}
-	$prep_statement = $db->prepare(check_sql($sql));
-	$prep_statement->execute();
-	$x = 0;
-	$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
-	foreach ($result as &$row) {
-		if (strlen($row["user_status"]) > 0) {
-			$user_array[$row["extension"]]['username'] = $row["username"];
-			$user_array[$row["extension"]]['user_status'] = $row["user_status"];
-			$username_array[$row["username"]]['user_status'] = $row["user_status"];
-			if ($row["username"] == $_SESSION["username"]) {
-				$user_status = $row["user_status"];
-			}
-		}
-		$x++;
-	}
-	unset ($prep_statement, $x);
-
-//create the event socket connection
-	$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
-
-//get information over event socket
-	if (!$fp) {
-		$msg = "<div align='center'>".$text['confirm-socket']."<br /></div>"; 
-		echo "<div align='center'>\n";
-		echo "<table width='40%'>\n";
-		echo "<tr>\n";
-		echo "<th align='left'>".$text['label-message']."</th>\n";
-		echo "</tr>\n";
-		echo "<tr>\n";
-		echo "<td class='row_style1'><strong>$msg</strong></td>\n";
-		echo "</tr>\n";
-		echo "</table>\n";
-		echo "</div>\n";
-	}
-	else {
-
-		//get the agent list from event socket
-			$switch_cmd = 'callcenter_config agent list';
-			$event_socket_str = trim(event_socket_request($fp, 'api '.$switch_cmd));
-			$agent_array = csv_to_named_array($event_socket_str, '|');
-		//set the status on the user_array by using the extension as the key
-			foreach ($agent_array as $row) {
-				if (count($_SESSION['domains']) == 1) {
-					//get the extension status from the call center agent list
-					preg_match('/user\/(\d{2,7})/', $row['contact'], $matches);
-					$extension = $matches[1];
-					$user_array[$extension]['username'] = $tmp[0];
-					if ($user_array[$extension]['user_status'] != "Do Not Disturb") {
-						$user_array[$extension]['user_status'] = $row['status'];
-					}
-				} else {
-					$tmp = explode('@',$row["name"]);
-					if ($tmp[1] == $_SESSION['domain_name']) {
-						//get the extension status from the call center agent list
-						preg_match('/user\/(\d{2,7})/', $row['contact'], $matches);
-						$extension = $matches[1];
-						$user_array[$extension]['username'] = $tmp[0];
-						if ($user_array[$extension]['user_status'] != "Do Not Disturb") {
-							$user_array[$extension]['user_status'] = $row['status'];
-						}
-					}
-				}
-			}
-
-		//send the api command over event socket
-			//$switch_cmd = 'valet_info';
-			//$valet_xml_str = trim(event_socket_request($fp, 'api '.$switch_cmd));
-
-		//parse the xml
-			//try {
-			//	$valet_xml = new SimpleXMLElement($valet_xml_str);
-			//}
-			//catch(Exception $e) {
-			//	//echo $e->getMessage();
-			//}
-			//$valet_xml = new SimpleXMLElement($valet_xml_str);
-			//foreach ($valet_xml as $row) {
-			//	$valet_name = (string) $row->attributes()->name;
-			//	foreach ($row->extension as $row2) {
-			//		$extension = (string) $row2;
-			//		$uuid = (string) $row2->attributes()->uuid;
-			//		$uuid = trim($uuid);
-			//		$valet_array[$uuid]['name'] = $valet_name;
-			//		$valet_array[$uuid]['extension'] = $extension;
-			//	}
-			//}
-
-		//send the event socket command
-			$switch_cmd = 'show channels as xml';
-			$xml_str = trim(event_socket_request($fp, 'api '.$switch_cmd));
-
-		//parse the xml
-			try {
-				$xml = new SimpleXMLElement($xml_str);
-			}
-			catch(Exception $e) {
-				//echo $e->getMessage();
-			}
-
-		//active channels array
-			$x = 1;
-			foreach ($xml as $row) {
-				//set the original array id
-					$channels_array[$x]['x'] = $x;
-
-				//get the values from xml and set them to the channel array
-					$channels_array[$x]['uuid'] = $row->uuid;
-					$channels_array[$x]['direction'] = $row->direction;
-					$channels_array[$x]['created'] = $row->created;
-					$channels_array[$x]['created_epoch'] = $row->created_epoch;
-					$channels_array[$x]['name'] = $row->name;
-					$channels_array[$x]['state'] = $row->state;
-					$channels_array[$x]['cid_name'] = $row->cid_name;
-					$channels_array[$x]['cid_num'] = $row->cid_num;
-					$channels_array[$x]['ip_addr'] = $row->ip_addr;
-					$channels_array[$x]['dest'] = $row->dest;
-					$channels_array[$x]['application'] = $row->application;
-					$channels_array[$x]['application_data'] = $row->application_data;
-					$channels_array[$x]['dialplan'] = $row->dialplan;
-					$channels_array[$x]['context'] = $row->context;
-					$channels_array[$x]['read_codec'] = $row->read_codec;
-					$channels_array[$x]['read_rate'] = $row->read_rate;
-					$channels_array[$x]['read_bit_rate'] = $row->read_bit_rate;
-					$channels_array[$x]['write_codec'] = $row->write_codec;
-					$channels_array[$x]['write_rate'] = $row->write_rate;
-					$channels_array[$x]['write_bit_rate'] = $row->write_bit_rate;
-					$channels_array[$x]['secure'] = $row->secure;
-					$channels_array[$x]['hostname'] = $row->hostname;
-					$channels_array[$x]['presence_id'] = $row->presence_id;
-					$channels_array[$x]['presence_data'] = $row->presence_data;
-					$channels_array[$x]['callstate'] = $row->callstate;
-					$channels_array[$x]['callee_name'] = $row->callee_name;
-					$channels_array[$x]['callee_num'] = $row->callee_num;
-					$channels_array[$x]['callee_direction'] = $row->callee_direction;
-					$channels_array[$x]['call_uuid'] = $row->call_uuid;
-
-				//remove other domains
-					if (count($_SESSION["domains"]) > 1) {
-						//unset domains that are not related to this tenant
-						$temp_array = explode("@", $channels_array[$x]['presence_id']);
-						if ($temp_array[1] != $_SESSION['domain_name']) {
-							unset($channels_array[$x]);
-						}
-					}
-
-				//parse some of the php variables\
-					$temp_array = explode("@", $channels_array[$x]['presence_id']);
-					$channels_array[$x]['number'] = $temp_array[0];
-
-				//remove the '+' because it breaks the call recording
-					$channels_array[$x]['cid_num'] = $temp_array[0] = str_replace("+", "", $channels_array[$x]['cid_num']);
-
-				//calculate and set the call length
-					$call_length_seconds = time() - $channels_array[$x]['created_epoch'];
-					$call_length_hour = floor($call_length_seconds/3600);
-					$call_length_min = floor($call_length_seconds/60 - ($call_length_hour * 60));
-					$call_length_sec = $call_length_seconds - (($call_length_hour * 3600) + ($call_length_min * 60));
-					$call_length_min = sprintf("%02d", $call_length_min);
-					$call_length_sec = sprintf("%02d", $call_length_sec);
-					$call_length = $call_length_hour.':'.$call_length_min.':'.$call_length_sec;
-					$channels_array[$x]['call_length'] = $call_length;
-
-				//valet park
-					//if (is_array($valet_array[$uuid])) {
-					//	$valet_array[$uuid]['context'] = $channels_array[$x]['context'];
-					//	$valet_array[$uuid]['cid_name'] = $channels_array[$x]['cid_name'];
-					//	$valet_array[$uuid]['cid_num'] = $channels_array[$x]['cid_num'];
-					//	$valet_array[$uuid]['call_length'] = $call_length;
-					//}
-				//increment the array index
-					$x++;
-			}
-
-		//active extensions
-			//get the extension information
-				if (!empty($debug)) {
-					unset($_SESSION['extension_array']);
-				}
-				if (empty($_SESSION['extension_array'])) {
-					$sql = "";
-					$sql .= "select * from v_extensions ";
-					$x = 0;
-					$range_array = $_GET['range'];
-					foreach($range_array as $tmp_range) {
-						$tmp_range = str_replace(":", "-", $tmp_range);
-						$tmp_array = explode("-", $tmp_range);
-						$tmp_min = $tmp_array[0];
-						$tmp_max = $tmp_array[1];
-						if ($x == 0) {
-							$sql .= "where domain_uuid = '$domain_uuid' ";
-							$sql .= "and extension >= $tmp_min ";
-							$sql .= "and extension <= $tmp_max ";
-							$sql .= "and enabled = 'true' ";
-						}
-						else {
-							$sql .= "or domain_uuid = '$domain_uuid' ";
-							$sql .= "and extension >= $tmp_min ";
-							$sql .= "and extension <= $tmp_max ";
-							$sql .= "and enabled = 'true' ";
-						}
-						$x++;
-					}
-					if (empty($range_array)) {
-						$sql .= "where domain_uuid = '$domain_uuid' ";
-						$sql .= "and enabled = 'true' ";
-					}
-					$sql .= "order by extension asc ";
-					$prep_statement = $db->prepare(check_sql($sql));
-					$prep_statement->execute();
-					$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
-					foreach ($result as &$row) {
-						if ($row["enabled"] == "true") {
-							$extension = $row["extension"];
-							$extension_array[$extension]['domain_uuid'] = $row["domain_uuid"];
-							$extension_array[$extension]['extension'] = $row["extension"];
-
-							//$extension_array[$extension]['password'] = $row["password"];
-							$extension_array[$extension]['mailbox'] = $row["mailbox"];
-							//$vm_password = $row["vm_password"];
-							//$vm_password = str_replace("#", "", $vm_password); //preserves leading zeros
-							//$_SESSION['extension_array'][$extension]['vm_password'] = $vm_password;
-							$extension_array[$extension]['accountcode'] = $row["accountcode"];
-							$extension_array[$extension]['effective_caller_id_name'] = $row["effective_caller_id_name"];
-							$extension_array[$extension]['effective_caller_id_number'] = $row["effective_caller_id_number"];
-							$extension_array[$extension]['outbound_caller_id_name'] = $row["outbound_caller_id_name"];
-							$extension_array[$extension]['outbound_caller_id_number'] = $row["outbound_caller_id_number"];
-							$extension_array[$extension]['vm_enabled'] = $row["vm_enabled"];
-							$extension_array[$extension]['vm_mailto'] = $row["vm_mailto"];
-							$extension_array[$extension]['vm_attach_file'] = $row["vm_attach_file"];
-							$extension_array[$extension]['vm_keep_local_after_email'] = $row["vm_keep_local_after_email"];
-							$extension_array[$extension]['user_context'] = $row["user_context"];
-							$extension_array[$extension]['call_group'] = $row["call_group"];
-							$extension_array[$extension]['auth_acl'] = $row["auth_acl"];
-							$extension_array[$extension]['cidr'] = $row["cidr"];
-							$extension_array[$extension]['sip_force_contact'] = $row["sip_force_contact"];
-							//$extension_array[$extension]['enabled'] = $row["enabled"];
-							$extension_array[$extension]['effective_caller_id_name'] = $row["effective_caller_id_name"];
-						}
-					}
-					$_SESSION['extension_array'] = $extension_array;
-				}
-
-			//get a list of assigned extensions for this user
-				//include "active_extension_assigned_inc.php";
-
-			//list all extensions
-				if (permission_exists('active_extension_view')) {
-					echo "<table width='100%' border='0' cellpadding='5' cellspacing='0'>\n";
-					echo "<tr>\n";
-					echo "<td valign='top'>\n";
-
-					echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
-					echo "<tr>\n";
-					echo "<th width='50px;'>".$text['label-extension']."</th>\n";
-					if ($_SESSION['user_status_display'] == "false") {
-						//hide the user_status when it is set to false
-					}
-					else {
-						echo "<th>".$text['label-status']."</th>\n";
-					}
-					echo "<th>".$text['label-time']."</th>\n";
-					if (if_group("admin") || if_group("superadmin")) {
-						if (strlen(($_GET['rows'])) == 0) {
-							echo "<th>".$text['label-cid-name']."</th>\n";
-							echo "<th>".$text['label-cid-number']."</th>\n";
-							echo "<th>".$text['label-destination']."</th>\n";
-							echo "<th>".$text['label-app']."</th>\n";
-							echo "<th>".$text['label-secure']."</th>\n";
-						}
-					}
-					echo "<th>".$text['label-name']."</th>\n";
-					if (if_group("admin") || if_group("superadmin")) {
-						if (strlen(($_GET['rows'])) == 0) {
-							echo "<th>".$text['label-opt']."</th>\n";
-						}
-					}
-					echo "</tr>\n";
-					$x = 1;
-					
-					foreach ($_SESSION['extension_array'] as $row) {
-						$domain_uuid = $row['domain_uuid'];
-						$extension = $row['extension'];
-						$enabled = $row['enabled'];
-						$effective_caller_id_name = $row['effective_caller_id_name'];
-
-						$found_extension = false;
-						foreach ($channels_array as $row) {
-							//set the php variables
-								foreach ($row as $key => $value) {
-									$$key = $value;
-								}
-							//check to see if the extension is found in the channel array
-								if ($number == $extension) {
-									$found_extension = true;
-									break;
-								}
-						}
-
-						if ($found_extension) {
-							if ($application == "conference") { 
-								$alt_color = "background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif";
-							}
-							switch ($application) {
-							case "conference":
-								$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_conference.gif');\"";
-								break;
-							case "fifo":
-								$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_fifo.gif');\"";
-								break;
-							case "valet_park":
-								$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_fifo.gif');\"";
-								break;
-							default:
-								$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif');\"";
-							}
-							echo "<tr>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>".escape($extension)."</td>\n";
-							if ($_SESSION['user_status_display'] == "false") {
-								//hide the user_status when it is set to false
-							}
-							else {
-								echo "<td class='".$row_style[$c]."' $style_alternate>".escape($user_array[$extension]['user_status'])."&nbsp;</td>\n";
-							}
-							echo "<td class='".$row_style[$c]."' $style_alternate width='20px;'>".$call_length."</td>\n";
-							if (if_group("admin") || if_group("superadmin")) {
-								if (strlen(($_GET['rows'])) == 0) {
-									if (strlen($url) == 0) {
-										$url = PROJECT_PATH."/app/contacts/contacts.php?search_all={cid_num}";
-									}
-									$url = str_replace ("{cid_num}", escape($cid_num), $url);
-									$url = str_replace ("{cid_name}", escape($cid_name), $url);
-									echo "<td class='".$row_style[$c]."' $style_alternate><a href='".$url."' style='color: #444444;' target='_blank'>".escape($cid_name)."</a></td>\n";
-									echo "<td class='".$row_style[$c]."' $style_alternate><a href='".$url."' style='color: #444444;' target='_blank'>".escape($cid_num)."</a></td>\n";
-								}
-							}
-							if (if_group("admin") || if_group("superadmin")) {
-								if (strlen(($_GET['rows'])) == 0) {
-									echo "<td class='".$row_style[$c]."' $style_alternate>\n";
-									echo "".escape($dest)."<br />\n";
-									echo "</td>\n";
-									echo "<td class='".$row_style[$c]."' $style_alternate>\n";
-									if ($application == "fifo") {
-										echo "queue &nbsp;\n";
-									}
-									else {
-										echo escape($application)." &nbsp;\n";
-									}
-									echo "</td>\n";
-									echo "<td class='".$row_style[$c]."' $style_alternate>\n";
-									echo escape($secure)."<br />\n";
-									echo "</td>\n";
-								}
-							}
-						}
-						else {
-							$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_light.gif');\"";
-							echo "<tr>\n";
-							echo "<td class='".$row_style[$c]."' $style_alternate>".escape($extension)."</td>\n";
-							if ($_SESSION['user_status_display'] == "false") {
-								//hide the user_status when it is set to false
-							}
-							else {
-								echo "<td class='".$row_style[$c]."' $style_alternate>".escape($user_array[$extension]['user_status'])."&nbsp;</td>\n";
-							}
-							echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-							if (if_group("admin") || if_group("superadmin")) {
-								if (strlen(($_GET['rows'])) == 0) {
-									echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-									echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-									echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-									echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-									echo "<td class='".$row_style[$c]."' $style_alternate>&nbsp;</td>\n";
-								}
-							}
-						}
-
-						echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-						echo "	".escape($effective_caller_id_name)."&nbsp;\n";
-						echo "</td>\n";
-
-						if (if_group("admin") || if_group("superadmin")) {
-							if (strlen(($_GET['rows'])) == 0) {
-								if ($found_extension) {
-									echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-										//transfer
-											echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$text['label-transfer']."</a>&nbsp;\n";
-										//park
-											echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$text['label-park']."</a>&nbsp;\n";
-										//hangup
-											echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$text['confirm-hangup']."');if (confirm_response){send_cmd('calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$text['label-hangup']."</a>&nbsp;\n";
-										//record start/stop
-											$tmp_file = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/".$uuid.".wav";
-											if (file_exists($tmp_file)) {
-												//stop
-												echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$text['label-stop']."</a>&nbsp;\n";
-											}
-											else {
-												//start
-												echo "	<a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$text['label-start']."</a>&nbsp;\n";
-											}
-										echo "	&nbsp;";
-									echo "</td>\n";
-								}
-								else {
-									echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
-									echo "	&nbsp;";
-									echo "</td>\n";
-								}
-							}
-						}
-						echo "</tr>\n";
-
-						if ($y == $_GET['rows'] && !empty($_GET['rows'])) {
-							$y = 0;
-							echo "</table>\n";
-
-							echo "</td>\n";
-							echo "<td valign='top'>\n";
-
-							echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
-							echo "<tr>\n";
-							echo "<th>".$text['label-ext']."</th>\n";
-							if ($_SESSION['user_status_display'] == "false") {
-								//hide the user_status when it is set to false
-							}
-							else {
-								echo "<th>".$text['label-status']."</th>\n";
-							}
-							echo "<th>".$text['label-time']."</th>\n";
-							if (if_group("admin") || if_group("superadmin")) {
-								if ($_GET['rows'] == 0) {
-									echo "<th>".$text['label-cid-name']."</th>\n";
-									echo "<th>".$text['label-cid-number']."</th>\n";
-									echo "<th>".$text['label-destination']."</th>\n";
-									echo "<th>".$text['label-app']."</th>\n";
-									echo "<th>".$text['label-secure']."</th>\n";
-								}
-							}
-							echo "<th>".$text['label-name']."</th>\n";
-							if (if_group("admin") || if_group("superadmin")) {
-								if ($_GET['rows'] == 0) {
-									echo "<th>".$text['label-opt']."</th>\n";
-								}
-							}
-							echo "</tr>\n";
-						}
-						$y++;
-						if ($c==0) { $c=1; } else { $c=0; }
-					}
-
-				echo "</table>\n";
-				echo "<br /><br />\n";
-				//valet park
-					//echo "<table width='100%' border='0' cellpadding='5' cellspacing='0'>\n";
-					//echo "<tr>\n";
-					//echo "<th valign='top'>".$text['label-park-ext']."</th>\n";
-					//echo "<th valign='top'>".$text['label-time']."</th>\n";
-					//echo "<th valign='top'>".$text['label-cid-name']."</th>\n";
-					//echo "<th valign='top'>".$text['label-cid-number']."</th>\n";
-					//echo "</tr>\n";
-					//foreach ($valet_array as $row) {
-					//	if (strlen($row['extension']) > 0) {
-					//		if ($row['context'] == $_SESSION['domain_name'] || $row['context'] == "default") {
-					//			echo "<tr>\n";
-					//			echo "<td valign='top' class='".$row_style[$c]."' >*".escape($row['extension'])."</td>\n";
-					//			echo "<td valign='top' class='".$row_style[$c]."' >".escape($row['call_length'])."</td>\n";
-					//			echo "<td valign='top' class='".$row_style[$c]."' >".escape($row['cid_name'])."</td>\n";
-					//			echo "<td valign='top' class='".$row_style[$c]."' >".escape($row['cid_num'])."</td>\n";
-					//			echo "</tr>\n";
-					//		}
-					//	}
-					//}
-					//echo "<table>\n";
-
-			} //end permission
-
-		echo "<br /><br />\n";
-
-		if ($user_status == "Available (On Demand)") {
-			$user_status = "Available_On_Demand";
-		}
-		$user_status = str_replace(" ", "_", $user_status);
-		echo "<span id='db_user_status' style='visibility:hidden;'>".escape($user_status)."</span>\n";
-		echo "<div id='cmd_reponse'>\n";
-		echo "</div>\n";
-	}
-
-?>

+ 0 - 32
active_extensions/app_config.php

@@ -1,32 +0,0 @@
-<?php
-
-	//application details
-		$apps[$x]['name'] = "Active Extensions";
-		$apps[$x]['uuid'] = "8ce1121c-fc4b-48b3-96d3-93a399809315";
-		$apps[$x]['category'] = "Switch";
-		$apps[$x]['subcategory'] = "";
-		$apps[$x]['version'] = "";
-		$apps[$x]['license'] = "Mozilla Public License 1.1";
-		$apps[$x]['url'] = "http://www.fusionpbx.com";
-		$apps[$x]['description']['en-us'] = "List of active extensions.";
-		$apps[$x]['description']['es-cl'] = "";
-		$apps[$x]['description']['de-de'] = "";
-		$apps[$x]['description']['de-ch'] = "";
-		$apps[$x]['description']['de-at'] = "";
-		$apps[$x]['description']['fr-fr'] = "";
-		$apps[$x]['description']['fr-ca'] = "";
-		$apps[$x]['description']['fr-ch'] = "";
-		$apps[$x]['description']['pt-pt'] = "";
-		$apps[$x]['description']['pt-br'] = "";
-
-	//permission details
-		$apps[$x]['permissions'][0]['name'] = "active_extension_view";
-		$apps[$x]['permissions'][0]['menu']['uuid'] = "eba3d07f-dd5c-6b7b-6880-493b44113ade";
-		$apps[$x]['permissions'][0]['groups'][] = "superadmin";
-		$apps[$x]['permissions'][0]['groups'][] = "admin";
-
-		//$apps[$x]['permissions'][2]['name'] = "active_extension_assigned_view";
-		//$apps[$x]['permissions'][2]['groups'][] = "superadmin";
-		//$apps[$x]['permissions'][2]['groups'][] = "admin";
-
-?>

+ 0 - 373
active_extensions/app_languages.php

@@ -1,373 +0,0 @@
-<?php
-
-$text['title-2']['en-us'] = "Active Extensions";
-$text['title-2']['es-cl'] = "Extensiones Activas";
-$text['title-2']['fr-fr'] = "Extensions Actives";
-$text['title-2']['pt-pt'] = "Extensões Ativas";
-$text['title-2']['pt-br'] = "Ramais ativos";
-$text['title-2']['pl'] = "Aktywne numery wewnętrzne";
-$text['title-2']['sv-se'] = "Aktiva anknytningar";
-$text['title-2']['uk'] = "Активні розширення";
-$text['title-2']['de-at'] = "Aktive Nebenstellen";
-$text['title-2']['he'] = "שלוחה פעילה";
-
-$text['title']['en-us'] = "Active Calls";
-$text['title']['es-cl'] = "Llamadas Activas";
-$text['title']['fr-fr'] = "Communications Actives";
-$text['title']['pt-pt'] = "Chamadas Ativas";
-$text['title']['pt-br'] = "Configurações da Conta";
-$text['title']['pl'] = "Aktywne Rozmowy";
-$text['title']['sv-se'] = "Aktiva Samtal";
-$text['title']['uk'] = "Активні дзвінки";
-$text['title']['de-at'] = "Aktive Gespräche";
-$text['title']['he'] = "הגדרת חשבון";
-
-$text['label-time']['en-us'] = "Time";
-$text['label-time']['es-cl'] = "Tiempo";
-$text['label-time']['fr-fr'] = "Temps";
-$text['label-time']['pt-pt'] = "Tempo";
-$text['label-time']['pt-br'] = "Fuso Horário";
-$text['label-time']['pl'] = "Strefa czasowa";
-$text['label-time']['sv-se'] = "Tid";
-$text['label-time']['uk'] = "Час";
-$text['label-time']['de-at'] = "Zeit";
-$text['label-time']['he'] = "אזור זמן";
-
-$text['label-stop']['en-us'] = "stop record";
-$text['label-stop']['es-cl'] = "terminar grabación";
-$text['label-stop']['fr-fr'] = "arrêter l'enregistrement";
-$text['label-stop']['pt-pt'] = "parar de gravar";
-$text['label-stop']['pt-br'] = "Parar";
-$text['label-stop']['pl'] = "zatrzymaj nagrywanie";
-$text['label-stop']['sv-se'] = "Stoppa inspelning";
-$text['label-stop']['uk'] = "Зупинити запис";
-$text['label-stop']['de-at'] = "Stoppe Aufnahme";
-$text['label-stop']['he'] = "הפסק הקלטה";
-
-$text['label-status']['en-us'] = "Status";
-$text['label-status']['es-cl'] = "Estado";
-$text['label-status']['fr-fr'] = "Etat";
-$text['label-status']['pt-pt'] = "Estado";
-$text['label-status']['pt-br'] = "Estado";
-$text['label-status']['pl'] = "Status";
-$text['label-status']['sv-se'] = "Status";
-$text['label-status']['uk'] = "Статус";
-$text['label-status']['de-at'] = "Status";
-$text['label-status']['he'] = "סטטוס";
-
-$text['label-start']['en-us'] = "start record";
-$text['label-start']['es-cl'] = "iniciar grabación";
-$text['label-start']['fr-fr'] = "commencer l'enregistrement";
-$text['label-start']['pt-pt'] = "iniciar a gravação";
-$text['label-start']['pt-br'] = "Iniciar";
-$text['label-start']['pl'] = "rozpocznij nagrywanie";
-$text['label-start']['sv-se'] = "Starta inspelning";
-$text['label-start']['uk'] = "Запустити запис";
-$text['label-start']['de-at'] = "Starte Aufnahme";
-$text['label-start']['he'] = "התחל הקלטה";
-
-$text['label-secure']['en-us'] = "Secure";
-$text['label-secure']['es-cl'] = "Seguro";
-$text['label-secure']['fr-fr'] = "Securisé";
-$text['label-secure']['pt-pt'] = "Seguro";
-$text['label-secure']['pt-br'] = "Seguro";
-$text['label-secure']['pl'] = "Bezpieczny";
-$text['label-secure']['sv-se'] = "Skydda";
-$text['label-secure']['uk'] = "Захищено";
-$text['label-secure']['de-at'] = "Sicher";
-$text['label-secure']['he'] = "מאובטח";
-
-$text['label-refresh_pause']['en-us'] = "Pause Refresh";
-$text['label-refresh_pause']['es-cl'] = "Actualizar Pausa";
-$text['label-refresh_pause']['pt-pt'] = "Pausa Atualizar";
-$text['label-refresh_pause']['fr-fr'] = "Pause Actualiser";
-$text['label-refresh_pause']['pt-br'] = "Pausar atualização";
-$text['label-refresh_pause']['pl'] = "Pauzuj odświeżanie";
-$text['label-refresh_pause']['uk'] = "пауза Оновити";
-$text['label-refresh_pause']['de-at'] = "Seite neu laden deaktivieren";
-$text['label-refresh_pause']['he'] = "עצור רענון";
-
-$text['label-refresh_enable']['en-us'] = "Enable Refresh";
-$text['label-refresh_enable']['es-cl'] = "Activar Actualizar";
-$text['label-refresh_enable']['pt-pt'] = "Habilitar Atualização";
-$text['label-refresh_enable']['fr-fr'] = "Activer Actualiser";
-$text['label-refresh_enable']['pt-br'] = "Habilitar atualização";
-$text['label-refresh_enable']['pl'] = "Włącz odświeżanie";
-$text['label-refresh_enable']['uk'] = "включити Оновити";
-$text['label-refresh_enable']['de-at'] = "Seite neu laden aktivieren";
-$text['label-refresh_enable']['he'] = "אפשר רענון";
-
-$text['label-profile']['en-us'] = "Profile";
-$text['label-profile']['es-cl'] = "Perfil";
-$text['label-profile']['fr-fr'] = "Profile";
-$text['label-profile']['pt-pt'] = "Perfil";
-$text['label-profile']['pt-br'] = "Perfil";
-$text['label-profile']['pl'] = "Profil";
-$text['label-profile']['sv-se'] = "Profil";
-$text['label-profile']['uk'] = "Профіль";
-$text['label-profile']['de-at'] = "Profil";
-$text['label-profile']['he'] = "פרופיל";
-
-$text['label-park-extension']['en-us'] = "Park";
-$text['label-park-extension']['es-cl'] = "Parquear Extensión";
-$text['label-park-extension']['fr-fr'] = "parquer";
-$text['label-park-extension']['pt-pt'] = "Parquear Extensão";
-$text['label-park-extension']['pt-br'] = "Extensão estacionamento";
-$text['label-park-extension']['pl'] = "Parkowanie";
-$text['label-park-extension']['sv-se'] = "Parkera";
-$text['label-park-extension']['uk'] = "Паркувати";
-$text['label-park-extension']['de-at'] = "Parken";
-$text['label-park-extension']['he'] = "חניה";
-
-$text['label-park']['en-us'] = "park";
-$text['label-park']['es-cl'] = "parquear";
-$text['label-park']['fr-fr'] = "parquer";
-$text['label-park']['pt-pt'] = "parquear";
-$text['label-park']['pt-br'] = "Estacionamento";
-$text['label-park']['pl'] = "parkowanie";
-$text['label-park']['sv-se'] = "Parkera";
-$text['label-park']['uk'] = "паркувати";
-$text['label-park']['de-at'] = "Parken";
-$text['label-park']['he'] = "חניה";
-
-$text['label-opt']['en-us'] = "Options";
-$text['label-opt']['es-cl'] = "Opciones";
-$text['label-opt']['fr-fr'] = "Options";
-$text['label-opt']['pt-pt'] = "Opções";
-$text['label-opt']['pt-br'] = "Opções";
-$text['label-opt']['pl'] = "Opcje";
-$text['label-opt']['sv-se'] = "Alternativ";
-$text['label-opt']['uk'] = "Опції";
-$text['label-opt']['de-at'] = "Optionen";
-$text['label-opt']['he'] = "אפשרויות";
-
-$text['label-number']['en-us'] = "Number";
-$text['label-number']['es-cl'] = "Número";
-$text['label-number']['fr-fr'] = "Numéro";
-$text['label-number']['pt-pt'] = "Numero";
-$text['label-number']['pt-br'] = "Número";
-$text['label-number']['pl'] = "Numer";
-$text['label-number']['sv-se'] = "Nummer";
-$text['label-number']['uk'] = "Номер";
-$text['label-number']['de-at'] = "Nummer";
-$text['label-number']['he'] = "מספר";
-
-$text['label-message']['en-us'] = "Message";
-$text['label-message']['es-cl'] = "Mensaje";
-$text['label-message']['fr-fr'] = "Message";
-$text['label-message']['pt-pt'] = "Mensagem";
-$text['label-message']['pt-br'] = "Mensagem";
-$text['label-message']['pl'] = "Wiadomość";
-$text['label-message']['sv-se'] = "Meddelande";
-$text['label-message']['uk'] = "Повідомлення";
-$text['label-message']['de-at'] = "Nachricht";
-$text['label-message']['he'] = "הודעה";
-
-$text['label-hangup']['en-us'] = "Hangup";
-$text['label-hangup']['es-cl'] = "Terminar";
-$text['label-hangup']['fr-fr'] = "Raccrocher";
-$text['label-hangup']['pt-pt'] = "Terminar";
-$text['label-hangup']['pt-br'] = "Desligar";
-$text['label-hangup']['pl'] = "Zakończ rozmowę";
-$text['label-hangup']['sv-se'] = "Avsluta";
-$text['label-hangup']['uk'] = "Розірвати";
-$text['label-hangup']['de-at'] = "Auflegen";
-$text['label-hangup']['he'] = "ניתוק";
-
-$text['label-ext']['en-us'] = "Ext";
-$text['label-ext']['es-cl'] = "Extensión";
-$text['label-ext']['fr-fr'] = "extension";
-$text['label-ext']['pt-pt'] = "Extensão";
-$text['label-ext']['pt-br'] = "Extensão";
-$text['label-ext']['pl'] = "Numer wewnętrzny";
-$text['label-ext']['sv-se'] = "Ank";
-$text['label-ext']['uk'] = "Ext ";
-$text['label-ext']['de-at'] = "Nst";
-$text['label-ext']['he'] = "שלוחה";
-
-$text['label-domain']['en-us'] = "Domain";
-$text['label-domain']['es-cl'] = "Dominio";
-$text['label-domain']['pt-pt'] = "Domínio";
-$text['label-domain']['fr-fr'] = "Domaine";
-$text['label-domain']['pt-br'] = "Dominio";
-$text['label-domain']['pl'] = "Domena";
-$text['label-domain']['uk'] = "Домен";
-$text['label-domain']['de-at'] = "Domain";
-$text['label-domain']['he'] = "תחום";
-
-$text['label-destination']['en-us'] = "Dest";
-$text['label-destination']['es-cl'] = "Destino";
-$text['label-destination']['fr-fr'] = "Dest";
-$text['label-destination']['pt-pt'] = "Destino";
-$text['label-destination']['pt-br'] = "Número de destino";
-$text['label-destination']['pl'] = "Destynacja";
-$text['label-destination']['sv-se'] = "Dest";
-$text['label-destination']['uk'] = "Номер";
-$text['label-destination']['de-at'] = "Ziel";
-$text['label-destination']['he'] = "יעד";
-
-$text['label-created']['en-us'] = "Created";
-$text['label-created']['es-cl'] = "Creado";
-$text['label-created']['fr-fr'] = "Créé";
-$text['label-created']['pt-pt'] = "Criado";
-$text['label-created']['pt-br'] = "Criado";
-$text['label-created']['pl'] = "Utworzno";
-$text['label-created']['sv-se'] = "Skapad";
-$text['label-created']['uk'] = "Створено";
-$text['label-created']['de-at'] = "Geöffnet";
-$text['label-created']['he'] = "נוצר";
-
-$text['label-codec']['en-us'] = "Read / Write Codec";
-$text['label-codec']['es-cl'] = "Codec de Lectura / Escritura ";
-$text['label-codec']['fr-fr'] = "décode/encode";
-$text['label-codec']['pt-pt'] = "Codec de Leitura / Escrita ";
-$text['label-codec']['pt-br'] = "Codec da leitura / escrita";
-$text['label-codec']['pl'] = "Kodek read/write";
-$text['label-codec']['sv-se'] = "Läs/Skriv Codec";
-$text['label-codec']['uk'] = "Кодеки читання/запису";
-$text['label-codec']['de-at'] = "Lese / Schreib Codec";
-$text['label-codec']['he'] = "קריאה / כתיבה codec";
-
-$text['label-cid-number']['en-us'] = "CID Number";
-$text['label-cid-number']['es-cl'] = "Número CID";
-$text['label-cid-number']['fr-fr'] = "Numéro Appelant";
-$text['label-cid-number']['pt-pt'] = "Número CID";
-$text['label-cid-number']['pt-br'] = "Número CID";
-$text['label-cid-number']['pl'] = "Prezentacja numeru dzwoniącego";
-$text['label-cid-number']['sv-se'] = "CID, nummerspresentation";
-$text['label-cid-number']['uk'] = "CID Номер";
-$text['label-cid-number']['de-at'] = "Anrufer Nummer";
-$text['label-cid-number']['he'] = "זהוי מספר";
-
-$text['label-cid-name']['en-us'] = "CID Name";
-$text['label-cid-name']['es-cl'] = "Nombre CID";
-$text['label-cid-name']['fr-fr'] = "Nom Appelant";
-$text['label-cid-name']['pt-pt'] = "Nome CID";
-$text['label-cid-name']['pt-br'] = "Nome CID";
-$text['label-cid-name']['pl'] = "Prezentacja nazwy dzwoniącego";
-$text['label-cid-name']['sv-se'] = "CID namnpresentation";
-$text['label-cid-name']['uk'] = "CID Ім’я";
-$text['label-cid-name']['de-at'] = "Anrufer Name";
-$text['label-cid-name']['he'] = "זהוי שם";
-
-$text['label-app']['en-us'] = "Application";
-$text['label-app']['es-cl'] = "Aplicación";
-$text['label-app']['fr-fr'] = "Application";
-$text['label-app']['pt-pt'] = "Aplicação";
-$text['label-app']['pt-br'] = "Aplicação";
-$text['label-app']['pl'] = "Aplikacja";
-$text['label-app']['sv-se'] = "Ansökan";
-$text['label-app']['uk'] = "Додаток";
-$text['label-app']['de-at'] = "Anwendung";
-$text['label-app']['he'] = "אפליקציה";
-
-$text['description-2']['en-us'] = "Use this to view all extensions and monitor and interact with active calls.";
-$text['description-2']['es-cl'] = "Utilice este menú para ver todas las extensiones, monitorear e interactuar con las llamadas activas.";
-$text['description-2']['fr-fr'] = "Voir toutes les extensions, superviser et interagir avec les Communications Actives.";
-$text['description-2']['pt-pt'] = "Utilize este menu para ver todas as extensões, monitorizar e interagir com as chamadas activas.";
-$text['description-2']['pt-br'] = "A informação contem a origem, destino, duração e outros detalhes úteis da chamada.";
-$text['description-2']['pl'] = "Użyj tej opcji, aby zobaczyć wszystkie numery wewnętrzne i monitorować interakcję z aktywnymi rozmowami.";
-$text['description-2']['sv-se'] = "Använd detta för att se alla anknytningar och monitorera och hantera aktiva samtal.";
-$text['description-2']['uk'] = "Використовуйте це, щоб переглянути всі розширення, контролювати і взаємодіяти з активними викликами.";
-$text['description-2']['de-at'] = "Benutzen Sie die Funktionen um alle Nebenstellen anzuzeigen, zu überwachen und aktive Gespräche zu steuern.";
-$text['description-2']['he'] = "";
-
-$text['description']['en-us'] = "Use this to monitor and interact with the active calls.";
-$text['description']['es-cl'] = "Utilice este menú para monitorear e interactuar con las llamadas activas.";
-$text['description']['fr-fr'] = "Superviser et interagir avec les Communications Actives.";
-$text['description']['pt-pt'] = "Utilize este menu para monitorizar e interagir com as chamadas activas.";
-$text['description']['pt-br'] = "Editar informações da conta.";
-$text['description']['pl'] = "Użyć tej opcji do monitorowania i interakcji z aktywnymi rozmowami.";
-$text['description']['sv-se'] = "Använd detta för att monitorera och hantera aktiva samtal.";
-$text['description']['uk'] = "Використовуйте це, щоб контролювати і взаємодіяти з активними викликами.";
-$text['description']['de-at'] = "Benutzen Sie die Funktionen um aktive Gespräche zu steuern.";
-$text['description']['he'] = "ערוך את פרטי החשבון";
-
-$text['confirm-socket']['en-us'] = "Connection to Event Socket failed.";
-$text['confirm-socket']['es-cl'] = "Conexión con socket fallida.";
-$text['confirm-socket']['fr-fr'] = "la Connexion au Event Socket a échoué.";
-$text['confirm-socket']['pt-pt'] = "A conexão ao Event Socket falhou.";
-$text['confirm-socket']['pt-br'] = "A conexão ao evento socket falhou";
-$text['confirm-socket']['pl'] = "Polaczenie do  Event Socket nie powiodło się";
-$text['confirm-socket']['sv-se'] = "Anslutning till 'Event Socket' misslyckades";
-$text['confirm-socket']['uk'] = "Помилка підключення до сокета подій";
-$text['confirm-socket']['de-at'] = "Verbindung zum Event Socket fehlgeschlagen.";
-$text['confirm-socket']['he'] = "";
-
-$text['confirm-hangup']['en-us'] = "Do you really want to hangup this call?";
-$text['confirm-hangup']['es-cl'] = "¿Realmente desea terminar esta llamada?";
-$text['confirm-hangup']['fr-fr'] = "Voulez-vous vraiment raccrocher cette communication?";
-$text['confirm-hangup']['pt-pt'] = "Deseja realmente terminar esta chamada?";
-$text['confirm-hangup']['pt-br'] = "Deseja realmente finalizar essa chamada?";
-$text['confirm-hangup']['pl'] = "Czy na pewno chcesz się rozłączyć tę rozmowę?";
-$text['confirm-hangup']['sv-se'] = "Vill du verkligen avsluta detta samtal";
-$text['confirm-hangup']['uk'] = "Ви дійсно бажаєте розірвати дзвінок?";
-$text['confirm-hangup']['de-at'] = "Wollen Sie dieses Gespräch wirklich beenden?";
-$text['confirm-hangup']['he'] = "";
-
-$text['check-onbreak-status']['en-us'] = "On Break";
-$text['check-onbreak-status']['es-cl'] = "En Pausa";
-$text['check-onbreak-status']['fr-fr'] = "En Pause";
-$text['check-onbreak-status']['pt-pt'] = "Em Pausa";
-$text['check-onbreak-status']['pt-br'] = "Em Pausa";
-$text['check-onbreak-status']['pl'] = "Na przerwie";
-$text['check-onbreak-status']['sv-se'] = "På Rast";
-$text['check-onbreak-status']['uk'] = "На перерві";
-$text['check-onbreak-status']['de-at'] = "Auf Pause";
-$text['check-onbreak-status']['he'] = "בהפסקה";
-
-$text['check-loggedout-status']['en-us'] = "Logged Out";
-$text['check-loggedout-status']['es-cl'] = "Desconectado";
-$text['check-loggedout-status']['fr-fr'] = "Délogué";
-$text['check-loggedout-status']['pt-pt'] = "Desligado";
-$text['check-loggedout-status']['pt-br'] = "Desligado";
-$text['check-loggedout-status']['pl'] = "Wylogowany";
-$text['check-loggedout-status']['sv-se'] = "Utloggad";
-$text['check-loggedout-status']['uk'] = "Вийшов";
-$text['check-loggedout-status']['de-at'] = "Abgemeldet";
-$text['check-loggedout-status']['he'] = "התנתק";
-
-$text['check-do-not-disturb-status']['en-us'] = "Do Not Disturb";
-$text['check-do-not-disturb-status']['es-cl'] = "No molestar";
-$text['check-do-not-disturb-status']['fr-fr'] = "Ne Pas Déranger";
-$text['check-do-not-disturb-status']['pt-pt'] = "Não Perturbar";
-$text['check-do-not-disturb-status']['pt-br'] = "Não Pertube";
-$text['check-do-not-disturb-status']['pl'] = "Nie przeszkadzaj (DND)";
-$text['check-do-not-disturb-status']['sv-se'] = "Stör Ej";
-$text['check-do-not-disturb-status']['uk'] = "Не турбувати";
-$text['check-do-not-disturb-status']['de-at'] = "Bitte nicht Stören";
-$text['check-do-not-disturb-status']['he'] = "לא להפריע";
-
-$text['check-available-status']['en-us'] = "Available";
-$text['check-available-status']['es-cl'] = "Disponible";
-$text['check-available-status']['fr-fr'] = "Disponible";
-$text['check-available-status']['pt-pt'] = "Disponível";
-$text['check-available-status']['pt-br'] = "Disponível";
-$text['check-available-status']['pl'] = "Dostępny";
-$text['check-available-status']['sv-se'] = "Anträffbar";
-$text['check-available-status']['uk'] = "Доступний";
-$text['check-available-status']['de-at'] = "Erreichbar";
-$text['check-available-status']['he'] = "זמין";
-
-$text['check-available-on-demand-status']['en-us'] = "Available (On Demand)";
-$text['check-available-on-demand-status']['es-cl'] = "Disponible (On Demand)";
-$text['check-available-on-demand-status']['fr-fr'] = "Disponible (Sur Demande)";
-$text['check-available-on-demand-status']['pt-pt'] = "Disponível (A pedido)";
-$text['check-available-on-demand-status']['pt-br'] = "Disponível (A pedido)";
-$text['check-available-on-demand-status']['pl'] = "Dostępny (na żądanie)";
-$text['check-available-on-demand-status']['sv-se'] = "Anträffbar (På Begäran) ";
-$text['check-available-on-demand-status']['uk'] = "Доступний (на вимогу)";
-$text['check-available-on-demand-status']['de-at'] = "Erreichbar (Auf Anfrage)";
-$text['check-available-on-demand-status']['he'] = "";
-
-$text['button-show_all']['en-us'] = "Show All";
-$text['button-show_all']['es-cl'] = "Mostrar Todos";
-$text['button-show_all']['pt-pt'] = "Mostrar Todos";
-$text['button-show_all']['fr-fr'] = "Montrer Tout";
-$text['button-show_all']['pt-br'] = "Mostrar Todos";
-$text['button-show_all']['pl'] = "Pokaż Wszystkie";
-$text['button-show_all']['uk'] = "Показати всі";
-$text['button-show_all']['de-at'] = "Alle anzeigen";
-$text['button-show_all']['he'] = "";
-
-?>

+ 0 - 30
active_extensions/app_menu.php

@@ -1,30 +0,0 @@
-<?php
-
-$y=0;
-$apps[$x]['menu'][$y]['title']['en-us'] = "Active Extensions";
-$apps[$x]['menu'][$y]['title']['ar-eg'] = "الأرقام الداخلية";
-$apps[$x]['menu'][$y]['title']['de-at'] = "Aktive Nebenstellen";
-$apps[$x]['menu'][$y]['title']['de-ch'] = "";
-$apps[$x]['menu'][$y]['title']['de-de'] = "Aktive Nebenstellen";
-$apps[$x]['menu'][$y]['title']['es-cl'] = "Extensiones Activas";
-$apps[$x]['menu'][$y]['title']['es-mx'] = "Extensiones Activas";
-$apps[$x]['menu'][$y]['title']['fr-ca'] = "Post téléphonique";
-$apps[$x]['menu'][$y]['title']['fr-fr'] = "Appels en Extensions";
-$apps[$x]['menu'][$y]['title']['he-il'] = "שלוחות";
-$apps[$x]['menu'][$y]['title']['it-it'] = "Interni";
-$apps[$x]['menu'][$y]['title']['nl-nl'] = "";
-$apps[$x]['menu'][$y]['title']['pl-pl'] = "Aktywne wewnętrzne";
-$apps[$x]['menu'][$y]['title']['pt-br'] = "Extensões Activas";
-$apps[$x]['menu'][$y]['title']['pt-pt'] = "Extensões Activas";
-$apps[$x]['menu'][$y]['title']['ro-ro'] = "Extensii";
-$apps[$x]['menu'][$y]['title']['ru-ru'] = "Внутренние номера";
-$apps[$x]['menu'][$y]['title']['sv-se'] = "Aktiva Anknytningar";
-$apps[$x]['menu'][$y]['title']['uk-ua'] = "Активні Розширення";
-$apps[$x]['menu'][0]['uuid'] = "464af9a7-30ab-4a67-b5ce-81309e1faefa";
-$apps[$x]['menu'][0]['parent_uuid'] = "0438b504-8613-7887-c420-c837ffb20cb1";
-$apps[$x]['menu'][0]['category'] = "internal";
-$apps[$x]['menu'][0]['path'] = "/app/active_extensions/active_extensions.php";
-$apps[$x]['menu'][0]['groups'][] = "superadmin";
-$apps[$x]['menu'][0]['groups'][] = "admin";
-
-?>