not short-tags on all project

This commit is contained in:
luis daniel lucio quiroz 2015-03-25 13:46:19 +00:00
parent 1834c6f098
commit b7b98cef79
8 changed files with 39 additions and 36 deletions

View File

@ -22,6 +22,7 @@
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
*/ */
include "root.php"; include "root.php";
require_once "resources/require.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"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td align='left' width='100%'> <td align='left' width='100%'>
<span class="title"><?=$text['header-default_dialplan']?></span><br><br> <span class="title"><?php echo $text['header-default_dialplan']?></span><br><br>
<?=$text['description-default_dialplan']?> <?php echo $text['description-default_dialplan']?>
<br /> <br />
<br /> <br />
</td> </td>
<td width='10%' align='right' valign='top'> <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='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='<?=$text['button-save']?>' /> <input type='submit' class='btn' value='<?php echo $text['button-save']?>' />
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -22,6 +22,7 @@
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
*/ */
include "root.php"; include "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
@ -181,7 +182,7 @@ require_once "resources/header.php";
} }
else { else {
if (from_ext != to_ext) { // prevent user from dragging extention onto self 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 //refresh controls
function refresh_stop() { function refresh_stop() {
clearInterval(interval_timer_id); 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() { 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() { interval_timer_id = setInterval( function() {
url = source_url; url = source_url;
url += '&vd_ext_from=' + document.getElementById('vd_ext_from').value; url += '&vd_ext_from=' + document.getElementById('vd_ext_from').value;
@ -216,7 +217,7 @@ require_once "resources/header.php";
//call destination //call destination
function call_destination(from_ext, destination) { function call_destination(from_ext, destination) {
if (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 != '') { if (cmd != '') {
send_cmd('exec.php?cmd='+escape(cmd)); send_cmd('exec.php?cmd='+escape(cmd));
@ -280,22 +281,22 @@ require_once "resources/header.php";
} }
function get_transfer_cmd(uuid, destination) { 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; return cmd;
} }
function get_originate_cmd(source, destination) { 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; return cmd;
} }
function get_eavesdrop_cmd(ext, chan_uuid) { 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; return cmd;
} }
function get_record_cmd(uuid) { 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; 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 cmd = get_transfer_cmd(document.getElementById('vd_call_id').value, document.getElementById('vd_ext_to').value); //transfer a call
} }
else { 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 != '') { if (cmd != '') {
//alert(cmd); //alert(cmd);

View File

@ -74,11 +74,11 @@ $document['title'] = $text['title-traffic_graph'];
<table cellpadding='0' cellspacing='0' border='0' width='100%'> <table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr> <tr>
<td align='left' valign='top'> <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>
<td align='right' valign='top'> <td align='right' valign='top'>
<form name="form1" action="status_graph.php" method="get" style=""> <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()"> <select name="interface" class="formfld" style="width:100px; z-index: -10;" onchange="document.form1.submit()">
<option value=''></option> <option value=''></option>
<?php <?php
@ -122,7 +122,7 @@ $document['title'] = $text['title-traffic_graph'];
</tr> </tr>
</table> </table>
<?=$text['description-traffic_graph']?> <?php echo $text['description-traffic_graph']?>
<br /> <br />
<br /> <br />
@ -132,7 +132,7 @@ $document['title'] = $text['title-traffic_graph'];
<div align="center"> <div align="center">
<object data="svg_graph.php?interface=<?php echo $interface; ?>" type="image/svg+xml" width="<?php echo $width; ?>" height="<?php echo $height; ?>"> <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; ?>" /> <param name="src" value="svg_graph.php?interface=<?php echo $interface; ?>" />
<?=$text['description-no_svg']?> <?php echo $text['description-no_svg']?>
</object> </object>
</div> </div>
<br><br> <br><br>

View File

@ -22,6 +22,7 @@
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
*/ */
include "root.php"; include "root.php";
require_once "resources/require.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"> <form action="vars.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr> <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 /> <br /><br />
<?=$text['description-variables_advanced']?> <?php echo $text['description-variables_advanced']?>
<br /><br /> <br /><br />
</td> </td>
<td align='right' valign='top'> <td align='right' valign='top'>
<?php if (permission_exists('var_edit')) { ?> <?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 } ?> <?php } ?>
</td> </td>
</tr> </tr>

View File

@ -420,7 +420,7 @@ table tr:last-child td:last-child {
height: auto; height: auto;
background-color: #000; background-color: #000;
background-repeat: repeat-x; 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; background-position: top center;
padding: 10px; padding: 10px;
-webkit-border-radius: 0px 0px 7px 7px; -webkit-border-radius: 0px 0px 7px 7px;
@ -470,7 +470,7 @@ function confirmdelete(url) {
//--> //-->
</SCRIPT> </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"> <script language="JavaScript" type="text/javascript">
function display_message(msg) { function display_message(msg) {

View File

@ -518,7 +518,7 @@ table tr:nth-last-child(-5) td:first-of-type {
height: auto; height: auto;
background-color: #000; background-color: #000;
background-repeat: repeat-x; 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; background-position: top center;
padding: 10px; padding: 10px;
-webkit-border-radius: 0px 0px 7px 7px; -webkit-border-radius: 0px 0px 7px 7px;
@ -568,7 +568,7 @@ function confirmdelete(url) {
//--> //-->
</SCRIPT> </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"> <script language="JavaScript" type="text/javascript">
function display_message(msg) { function display_message(msg) {

View File

@ -638,7 +638,7 @@ table tr:nth-last-child(-5) td:first-of-type {
height: auto; height: auto;
background-color: #000; background-color: #000;
background-repeat: repeat-x; 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; background-position: top center;
padding: 10px; padding: 10px;
-webkit-border-radius: 0px 0px 7px 7px; -webkit-border-radius: 0px 0px 7px 7px;
@ -679,7 +679,7 @@ function confirmdelete(url) {
//--> //-->
</SCRIPT> </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"> <script language="JavaScript" type="text/javascript">
function display_message(msg) { function display_message(msg) {

View File

@ -1250,16 +1250,16 @@ legend {
if (recording_audio.paused) { if (recording_audio.paused) {
recording_audio.play(); 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 { else {
recording_audio.pause(); 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) { 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> </script>
@ -1362,8 +1362,8 @@ legend {
</div> </div>
<script> <script>
var domain_names = new Array("<?=implode('","', $ary_domain_names)?>"); var domain_names = new Array("<?php echo implode('","', $ary_domain_names)?>");
var domain_descs = new Array("<?=implode('","', $ary_domain_descs)?>"); var domain_descs = new Array("<?php echo implode('","', $ary_domain_descs)?>");
function domain_search(criteria) { function domain_search(criteria) {
for (var x = 0; x < domain_names.length; x++) { for (var x = 0; x < domain_names.length; x++) {