mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
not short-tags on all project
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
||||
*/
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
@@ -102,14 +103,14 @@ function sf() { document.forms[0].savetopath.focus(); }
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align='left' width='100%'>
|
||||
<span class="title"><?=$text['header-default_dialplan']?></span><br><br>
|
||||
<?=$text['description-default_dialplan']?>
|
||||
<span class="title"><?php echo $text['header-default_dialplan']?></span><br><br>
|
||||
<?php echo $text['description-default_dialplan']?>
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
<td width='10%' align='right' valign='top'>
|
||||
<input type='button' class='btn' name='' alt='<?=$text['button-back']?>' onclick="window.location='dialplans.php'" value='<?=$text['button-back']?>'>
|
||||
<input type='submit' class='btn' value='<?=$text['button-save']?>' />
|
||||
<input type='button' class='btn' name='' alt='<?php echo $text['button-back']?>' onclick="window.location='dialplans.php'" value='<?php echo $text['button-back']?>'>
|
||||
<input type='submit' class='btn' value='<?php echo $text['button-save']?>' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -159,4 +160,4 @@ function sf() { document.forms[0].savetopath.focus(); }
|
||||
|
||||
<?php
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
||||
*/
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
@@ -181,7 +182,7 @@ require_once "resources/header.php";
|
||||
}
|
||||
else {
|
||||
if (from_ext != to_ext) { // prevent user from dragging extention onto self
|
||||
cmd = get_originate_cmd(from_ext+'@<?=$_SESSION["domain_name"]?>', to_ext); //make a call
|
||||
cmd = get_originate_cmd(from_ext+'@<?php echo $_SESSION["domain_name"]?>', to_ext); //make a call
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,11 +194,11 @@ require_once "resources/header.php";
|
||||
//refresh controls
|
||||
function refresh_stop() {
|
||||
clearInterval(interval_timer_id);
|
||||
document.getElementById('refresh_state').innerHTML = "<img src='resources/images/refresh_paused.png' style='width: 16px; height: 16px; border: none; margin-top: 1px; cursor: pointer;' onclick='refresh_start();' alt=\"<?=$text['label-refresh_enable']?>\" title=\"<?=$text['label-refresh_enable']?>\">";
|
||||
document.getElementById('refresh_state').innerHTML = "<img src='resources/images/refresh_paused.png' style='width: 16px; height: 16px; border: none; margin-top: 1px; cursor: pointer;' onclick='refresh_start();' alt=\"<?php echo $text['label-refresh_enable']?>\" title=\"<?php echo $text['label-refresh_enable']?>\">";
|
||||
}
|
||||
|
||||
function refresh_start() {
|
||||
if (document.getElementById('refresh_state')) { document.getElementById('refresh_state').innerHTML = "<img src='resources/images/refresh_active.gif' style='width: 16px; height: 16px; border: none; margin-top: 3px; cursor: pointer;' alt=\"<?=$text['label-refresh_pause']?>\" title=\"<?=$text['label-refresh_pause']?>\">"; }
|
||||
if (document.getElementById('refresh_state')) { document.getElementById('refresh_state').innerHTML = "<img src='resources/images/refresh_active.gif' style='width: 16px; height: 16px; border: none; margin-top: 3px; cursor: pointer;' alt=\"<?php echo $text['label-refresh_pause']?>\" title=\"<?php echo $text['label-refresh_pause']?>\">"; }
|
||||
interval_timer_id = setInterval( function() {
|
||||
url = source_url;
|
||||
url += '&vd_ext_from=' + document.getElementById('vd_ext_from').value;
|
||||
@@ -216,7 +217,7 @@ require_once "resources/header.php";
|
||||
//call destination
|
||||
function call_destination(from_ext, destination) {
|
||||
if (destination != '') {
|
||||
cmd = get_originate_cmd(from_ext+'@<?=$_SESSION["domain_name"]?>', destination); //make a call
|
||||
cmd = get_originate_cmd(from_ext+'@<?php echo $_SESSION["domain_name"]?>', destination); //make a call
|
||||
}
|
||||
if (cmd != '') {
|
||||
send_cmd('exec.php?cmd='+escape(cmd));
|
||||
@@ -280,22 +281,22 @@ require_once "resources/header.php";
|
||||
}
|
||||
|
||||
function get_transfer_cmd(uuid, destination) {
|
||||
cmd = "uuid_transfer " + uuid + " " + destination + " XML <?=trim($_SESSION['user_context'])?>";
|
||||
cmd = "uuid_transfer " + uuid + " " + destination + " XML <?php echo trim($_SESSION['user_context'])?>";
|
||||
return cmd;
|
||||
}
|
||||
|
||||
function get_originate_cmd(source, destination) {
|
||||
cmd = "bgapi originate {sip_auto_answer=true,origination_caller_id_number=" + destination + ",sip_h_Call-Info=_undef_}user/" + source + " " + destination + " XML <?=trim($_SESSION['user_context'])?>";
|
||||
cmd = "bgapi originate {sip_auto_answer=true,origination_caller_id_number=" + destination + ",sip_h_Call-Info=_undef_}user/" + source + " " + destination + " XML <?php echo trim($_SESSION['user_context'])?>";
|
||||
return cmd;
|
||||
}
|
||||
|
||||
function get_eavesdrop_cmd(ext, chan_uuid) {
|
||||
cmd = "bgapi originate {origination_caller_id_name=<?=$text['label-eavesdrop']?>,origination_caller_id_number=" + ext + "}user/"+(document.getElementById('eavesdrop_dest').value)+"@<?=$_SESSION['domain_name']?> &eavesdrop(" + chan_uuid + ")";
|
||||
cmd = "bgapi originate {origination_caller_id_name=<?php echo $text['label-eavesdrop']?>,origination_caller_id_number=" + ext + "}user/"+(document.getElementById('eavesdrop_dest').value)+"@<?php echo $_SESSION['domain_name']?> &eavesdrop(" + chan_uuid + ")";
|
||||
return cmd;
|
||||
}
|
||||
|
||||
function get_record_cmd(uuid) {
|
||||
cmd = "uuid_record " + uuid + " start <?=$_SESSION['switch']['recordings']['dir']?>/archive/<?=date('Y')?>/<?=date('M')?>/<?=date('d')?>/" + uuid + ".wav";
|
||||
cmd = "uuid_record " + uuid + " start <?php echo $_SESSION['switch']['recordings']['dir']?>/archive/<?php echo date('Y')?>/<?php echo date('M')?>/<?php echo date('d')?>/" + uuid + ".wav";
|
||||
return cmd;
|
||||
}
|
||||
|
||||
@@ -325,7 +326,7 @@ require_once "resources/header.php";
|
||||
cmd = get_transfer_cmd(document.getElementById('vd_call_id').value, document.getElementById('vd_ext_to').value); //transfer a call
|
||||
}
|
||||
else {
|
||||
cmd = get_originate_cmd(document.getElementById('vd_ext_from').value + '@<?=$_SESSION["domain_name"]?>', document.getElementById('vd_ext_to').value); //originate a call
|
||||
cmd = get_originate_cmd(document.getElementById('vd_ext_from').value + '@<?php echo $_SESSION["domain_name"]?>', document.getElementById('vd_ext_to').value); //originate a call
|
||||
}
|
||||
if (cmd != '') {
|
||||
//alert(cmd);
|
||||
@@ -378,4 +379,4 @@ foreach ($_SESSION['user']['extension'] as $assigned_extensions) {
|
||||
|
||||
<?php
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -74,11 +74,11 @@ $document['title'] = $text['title-traffic_graph'];
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' valign='top'>
|
||||
<p class="pgtitle"><b><?=$text['header-traffic_graph']?></b></p>
|
||||
<p class="pgtitle"><b><?php echo $text['header-traffic_graph']?></b></p>
|
||||
</td>
|
||||
<td align='right' valign='top'>
|
||||
<form name="form1" action="status_graph.php" method="get" style="">
|
||||
<?=$text['label-interface']?>:
|
||||
<?php echo $text['label-interface']?>:
|
||||
<select name="interface" class="formfld" style="width:100px; z-index: -10;" onchange="document.form1.submit()">
|
||||
<option value=''></option>
|
||||
<?php
|
||||
@@ -122,7 +122,7 @@ $document['title'] = $text['title-traffic_graph'];
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?=$text['description-traffic_graph']?>
|
||||
<?php echo $text['description-traffic_graph']?>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
@@ -132,11 +132,11 @@ $document['title'] = $text['title-traffic_graph'];
|
||||
<div align="center">
|
||||
<object data="svg_graph.php?interface=<?php echo $interface; ?>" type="image/svg+xml" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
|
||||
<param name="src" value="svg_graph.php?interface=<?php echo $interface; ?>" />
|
||||
<?=$text['description-no_svg']?>
|
||||
<?php echo $text['description-no_svg']?>
|
||||
</object>
|
||||
</div>
|
||||
<br><br>
|
||||
|
||||
<?php
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
||||
*/
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
@@ -97,14 +98,14 @@ if ($_GET['a'] == "default" && permission_exists('var_edit')) {
|
||||
<form action="vars.php" method="post" name="iform" id="iform">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width='100%'><span class="vexpl"><span class="red"><strong><?=$text['header-variables_advanced']?></strong></span>
|
||||
<td width='100%'><span class="vexpl"><span class="red"><strong><?php echo $text['header-variables_advanced']?></strong></span>
|
||||
<br /><br />
|
||||
<?=$text['description-variables_advanced']?>
|
||||
<?php echo $text['description-variables_advanced']?>
|
||||
<br /><br />
|
||||
</td>
|
||||
<td align='right' valign='top'>
|
||||
<?php if (permission_exists('var_edit')) { ?>
|
||||
<input type="submit" class='btn' value="<?=$text['button-save']?>" />
|
||||
<input type="submit" class='btn' value="<?php echo $text['button-save']?>" />
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -160,4 +161,4 @@ if ($_GET['a'] == "default" && permission_exists('var_edit')) {
|
||||
|
||||
<?php
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -420,7 +420,7 @@ table tr:last-child td:last-child {
|
||||
height: auto;
|
||||
background-color: #000;
|
||||
background-repeat: repeat-x;
|
||||
background-image: url('<?=PROJECT_PATH?>/themes/accessible/images/background_black.png');
|
||||
background-image: url('<?php echo PROJECT_PATH?>/themes/accessible/images/background_black.png');
|
||||
background-position: top center;
|
||||
padding: 10px;
|
||||
-webkit-border-radius: 0px 0px 7px 7px;
|
||||
@@ -470,7 +470,7 @@ function confirmdelete(url) {
|
||||
//-->
|
||||
</SCRIPT>
|
||||
|
||||
<script language="javascript" type="text/javascript" src="<?=PROJECT_PATH?>/resources/jquery/jquery-1.8.3.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo PROJECT_PATH?>/resources/jquery/jquery-1.8.3.js"></script>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function display_message(msg) {
|
||||
|
||||
@@ -518,7 +518,7 @@ table tr:nth-last-child(-5) td:first-of-type {
|
||||
height: auto;
|
||||
background-color: #000;
|
||||
background-repeat: repeat-x;
|
||||
background-image: url('<?=PROJECT_PATH?>/themes/classic/images/background_black.png');
|
||||
background-image: url('<?php echo PROJECT_PATH?>/themes/classic/images/background_black.png');
|
||||
background-position: top center;
|
||||
padding: 10px;
|
||||
-webkit-border-radius: 0px 0px 7px 7px;
|
||||
@@ -568,7 +568,7 @@ function confirmdelete(url) {
|
||||
//-->
|
||||
</SCRIPT>
|
||||
|
||||
<script language="javascript" type="text/javascript" src="<?=PROJECT_PATH?>/resources/jquery/jquery-1.8.3.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo PROJECT_PATH?>/resources/jquery/jquery-1.8.3.js"></script>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function display_message(msg) {
|
||||
|
||||
@@ -638,7 +638,7 @@ table tr:nth-last-child(-5) td:first-of-type {
|
||||
height: auto;
|
||||
background-color: #000;
|
||||
background-repeat: repeat-x;
|
||||
background-image: url('<?=PROJECT_PATH?>/themes/default/images/background_black.png');
|
||||
background-image: url('<?php echo PROJECT_PATH?>/themes/default/images/background_black.png');
|
||||
background-position: top center;
|
||||
padding: 10px;
|
||||
-webkit-border-radius: 0px 0px 7px 7px;
|
||||
@@ -679,7 +679,7 @@ function confirmdelete(url) {
|
||||
//-->
|
||||
</SCRIPT>
|
||||
|
||||
<script language="javascript" type="text/javascript" src="<?=PROJECT_PATH?>/resources/jquery/jquery-1.8.3.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo PROJECT_PATH?>/resources/jquery/jquery-1.8.3.js"></script>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function display_message(msg) {
|
||||
|
||||
@@ -1250,16 +1250,16 @@ legend {
|
||||
|
||||
if (recording_audio.paused) {
|
||||
recording_audio.play();
|
||||
document.getElementById('recording_button_'+recording_id).innerHTML = "<?=str_replace("class='list_control_icon'", "class='list_control_icon' style='opacity: 1;'", $v_link_label_pause)?>";
|
||||
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo str_replace("class='list_control_icon'", "class='list_control_icon' style='opacity: 1;'", $v_link_label_pause)?>";
|
||||
}
|
||||
else {
|
||||
recording_audio.pause();
|
||||
document.getElementById('recording_button_'+recording_id).innerHTML = "<?=$v_link_label_play?>";
|
||||
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo $v_link_label_play?>";
|
||||
}
|
||||
}
|
||||
|
||||
function recording_reset(recording_id) {
|
||||
document.getElementById('recording_button_'+recording_id).innerHTML = "<?=$v_link_label_play?>";
|
||||
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo $v_link_label_play?>";
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1362,8 +1362,8 @@ legend {
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var domain_names = new Array("<?=implode('","', $ary_domain_names)?>");
|
||||
var domain_descs = new Array("<?=implode('","', $ary_domain_descs)?>");
|
||||
var domain_names = new Array("<?php echo implode('","', $ary_domain_names)?>");
|
||||
var domain_descs = new Array("<?php echo implode('","', $ary_domain_descs)?>");
|
||||
|
||||
function domain_search(criteria) {
|
||||
for (var x = 0; x < domain_names.length; x++) {
|
||||
@@ -1615,4 +1615,4 @@ legend {
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user