aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_public_includes_edit.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-04-19 02:04:35 -0600
committermcrane <mctch@yahoo.com>2009-04-19 02:04:35 -0600
commit9917ec285689b2088a8143af0e21a303d736b828 (patch)
tree5829c2a2fe76e329ae841db22ba2888c403a3c1d /config/freeswitch/freeswitch_public_includes_edit.tmp
parent439e960cad49bffbe4ad306fe119bc4ac7d02366 (diff)
downloadpfsense-packages-9917ec285689b2088a8143af0e21a303d736b828.tar.gz
pfsense-packages-9917ec285689b2088a8143af0e21a303d736b828.tar.bz2
pfsense-packages-9917ec285689b2088a8143af0e21a303d736b828.zip
FreeSWITCH remove trailing white spaces.
Diffstat (limited to 'config/freeswitch/freeswitch_public_includes_edit.tmp')
-rw-r--r--config/freeswitch/freeswitch_public_includes_edit.tmp154
1 files changed, 77 insertions, 77 deletions
diff --git a/config/freeswitch/freeswitch_public_includes_edit.tmp b/config/freeswitch/freeswitch_public_includes_edit.tmp
index 7ccbaeec..74f3c020 100644
--- a/config/freeswitch/freeswitch_public_includes_edit.tmp
+++ b/config/freeswitch/freeswitch_public_includes_edit.tmp
@@ -1,11 +1,11 @@
-<?php
+<?php
/* $Id$ */
/*
freeswitch_public_includes_edit.php
Copyright (C) 2008 Mark J Crane
All rights reserved.
-
+
FreeSWITCH (TM)
http://www.freeswitch.org/
@@ -43,7 +43,7 @@ require("/usr/local/pkg/freeswitch.inc");
//default
//enabled
//descr
-
+
//
@@ -90,11 +90,11 @@ if ($_POST) {
if (!$input_errors) {
-
+
$ent = array();
if (strlen($_POST['publicincludeid']) > 0) {
//update
- $ent['publicincludeid'] = $_POST['publicincludeid'];
+ $ent['publicincludeid'] = $_POST['publicincludeid'];
}
else {
//add
@@ -109,49 +109,49 @@ if ($_POST) {
$ent['opt1name'] = $_POST['opt1name'];
$ent['opt1value'] = $_POST['opt1value'];
-
+
if (isset($id) && $a_public_includes[$id]) {
$a_public_includes = $config['installedpackages']['freeswitchpublicincludes']['config'];
if (count($a_public_includes) > 0) {
foreach($a_public_includes as $rowhelper) {
-
+
//$rowhelper['publicincludeid'];
//$rowhelper['extensionname'];
//$rowhelper['context'];
//$rowhelper['enabled'];
-
+
$filenamechanged = false;
if ($rowhelper['publicincludeid'] == $_POST['publicincludeid']) {
-
+
if ($rowhelper['extensionname'] != $_POST['extensionname']) {
//if the extension name has changed then remove the current public xml file
//to prepare for the new file
- $filenamechanged = true;
+ $filenamechanged = true;
}
if ($rowhelper['order'] != $_POST['order']) {
//if the order has changed then remove the current public xml file
//to prepare for the new file
- $filenamechanged = true;
- }
+ $filenamechanged = true;
+ }
if ($_POST['enabled'] == "false") {
//if the extension name is disabled then remove the public xml file
$filenamechanged = true;
}
- if ($filenamechanged){
+ if ($filenamechanged){
$publicincludefilename = $rowhelper['order']."_".$rowhelper['extensionname'].".xml";
if (file_exists("/usr/local/freeswitch/conf/dialplan/public/".$publicincludefilename)) {
unlink("/usr/local/freeswitch/conf/dialplan/public/".$publicincludefilename);
}
unset($publicincludefilename);
}
-
+
}
- unset($filenamechanged);
-
+ unset($filenamechanged);
+
} //end foreach
} //end if count
-
+
//update the config
$a_public_includes[$id] = $ent;
}
@@ -203,8 +203,8 @@ include("head.inc");
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="tabcont" >
-
- <table width="100%" border="0" cellpadding="6" cellspacing="0">
+
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td><p><span class="vexpl"><span class="red"><strong>Public:<br>
</strong></span>
@@ -218,27 +218,27 @@ include("head.inc");
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="22%" valign="top" class="vncellreq">Extension Name</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="extensionname" type="text" class="formfld" id="extensionname" size="40" value="<?=htmlspecialchars($pconfig['extensionname']);?>">
<br />
- Supported characters are 'a-z', 'A-Z', '0-9', underscore '_', and period '.'.
+ Supported characters are 'a-z', 'A-Z', '0-9', underscore '_', and period '.'.
</td>
</tr>
<!--
<tr>
<td width="22%" valign="top" class="vncellreq">Context</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="context" type="text" class="formfld" id="context" size="40" value="<?=htmlspecialchars($pconfig['context']);?>">
<br />
e.g. default
</td>
</tr>
-->
-
+
<tr>
<td width="22%" valign="top" class="vncellreq">Enabled</td>
- <td width="78%" class="vtable">
- <?php
+ <td width="78%" class="vtable">
+ <?php
echo " <select name='enabled' class='formfld'>\n";
echo " <option></option>\n";
switch (htmlspecialchars($pconfig['enabled'])) {
@@ -256,30 +256,30 @@ include("head.inc");
echo " <option value='false'>false</option>\n";
}
echo " </select>\n";
- ?>
+ ?>
</td>
</tr>
-
+
<tr>
<td width="22%" valign="top" class="vncellreq">Order</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<?php
-
+
echo " <select name='order' class='formfld'>\n";
echo " <option></option>\n";
if (strlen(htmlspecialchars($pconfig['order']))> 0) {
- echo " <option selected='yes' value='".htmlspecialchars($pconfig['order'])."'>".htmlspecialchars($pconfig['order'])."</option>\n";
+ echo " <option selected='yes' value='".htmlspecialchars($pconfig['order'])."'>".htmlspecialchars($pconfig['order'])."</option>\n";
}
$i=0;
while($i<=999) {
- if (strlen($i) == 1) {
+ if (strlen($i) == 1) {
echo " <option value='00$i'>00$i</option>\n";
}
if (strlen($i) == 2) {
echo " <option value='0$i'>0$i</option>\n";
}
if (strlen($i) == 3) {
- echo " <option value='$i'>$i</option>\n";
+ echo " <option value='$i'>$i</option>\n";
}
$i++;
@@ -287,24 +287,24 @@ include("head.inc");
echo " </select>\n";
?>
<br />
- Processing of each public include is determined by this order.
+ Processing of each public include is determined by this order.
</td>
</tr>
-
+
<tr>
<td width="22%" valign="top" class="vncell">Description</td>
- <td width="78%" class="vtable">
+ <td width="78%" class="vtable">
<input name="descr" type="text" class="formfld" id="descr" size="40" value="<?=htmlspecialchars($pconfig['descr']);?>">
<br> <span class="vexpl">You may enter a description here
for your reference (not parsed).</span></td>
- </tr>
+ </tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
<input name="publicincludeid" type="hidden" value="<?=htmlspecialchars($pconfig['publicincludeid']);?>">
- <?php
+ <?php
if (strlen($id) > 0 && $a_public_includes[$id]) {
- echo "\n";
+ echo "\n";
echo " <input name=\"id\" type=\"hidden\" value=\"$id\">\n";
echo " <input name=\"opt1name\" type=\"hidden\" value=\"".htmlspecialchars($pconfig['opt1name'])."\">\n";
echo " <input name=\"opt1value\" type=\"hidden\" value=\"".htmlspecialchars($pconfig['opt1value'])."\">\n";
@@ -315,36 +315,36 @@ include("head.inc");
</tr>
</table>
</form>
-
+
<br>
<br>
<form action="freeswitch_public_includes_edit.php" method="post" name="iform2" id="iform2">
- <?php
-
+ <?php
+
//echo "<pre>";
//print_r ($a_public_includes);
//echo "</pre>";
-
- //if ($savemsg) print_info_box($savemsg);
+
+ //if ($savemsg) print_info_box($savemsg);
//if (file_exists($d_hostsdirty_path)): echo"<p>";
//print_info_box_np("The FreeSWITCH recordings have been changed.<br>You must apply the changes in order for them to take effect.");
//echo"<br />";
- //endif;
-
+ //endif;
+
?>
-
-
- <table width="100%" border="0" cellpadding="6" cellspacing="0">
+
+
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td><p><span class="vexpl"><span class="red"><strong>Conditions and Actions<br />
</strong></span>
- The following conditions, actions and anti-actions are used in the public to direct call flow. Each is processed in order until you reach the action tag which tells FreeSWITCH what action to perform. You are not limited to only one condition or action tag for a given extension.
+ The following conditions, actions and anti-actions are used in the public to direct call flow. Each is processed in order until you reach the action tag which tells FreeSWITCH what action to perform. You are not limited to only one condition or action tag for a given extension.
</span></p></td>
</tr>
</table>
<br />
-
+
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" class="listhdrr">Tag</td>
@@ -358,13 +358,13 @@ include("head.inc");
</tr>
</table>
</td>
- </tr>
-
- <?php
-
+ </tr>
+
+ <?php
+
$i = 0;
if (count($a_public_include_details) > 0) {
-
+
foreach ($a_public_include_details as $ent) {
if ($ent['tag'] == "condition" && $publicincludeid == $ent['publicincludeid']) {
?>
@@ -377,7 +377,7 @@ include("head.inc");
</td>
<td class="listr" ondblclick="document.location='freeswitch_public_includes_details_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&publicincludeid=<?=$publicincludeid;?>';">
<?=$ent['fielddata'];?>&nbsp;
- </td>
+ </td>
<td valign="middle" nowrap class="list">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
@@ -387,15 +387,15 @@ include("head.inc");
</table>
</td>
</tr>
- <?php
+ <?php
}
- $i++;
+ $i++;
}
}
-
+
$i = 0;
if (count($a_public_include_details) > 0) {
-
+
foreach ($a_public_include_details as $ent) {
if ($ent['tag'] == "action" && $publicincludeid == $ent['publicincludeid']) {
?>
@@ -408,7 +408,7 @@ include("head.inc");
</td>
<td class="listr" ondblclick="document.location='freeswitch_public_includes_details_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&publicincludeid=<?=$publicincludeid;?>';">
<?=$ent['fielddata'];?>&nbsp;
- </td>
+ </td>
<td valign="middle" nowrap class="list">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
@@ -418,15 +418,15 @@ include("head.inc");
</table>
</td>
</tr>
- <?php
+ <?php
}
- $i++;
+ $i++;
}
}
-
+
$i = 0;
if (count($a_public_include_details) > 0) {
-
+
foreach ($a_public_include_details as $ent) {
if ($ent['tag'] == "anti-action" && $publicincludeid == $ent['publicincludeid']) {
?>
@@ -439,7 +439,7 @@ include("head.inc");
</td>
<td class="listr" ondblclick="document.location='freeswitch_public_includes_details_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&publicincludeid=<?=$publicincludeid;?>';">
<?=$ent['fielddata'];?>&nbsp;
- </td>
+ </td>
<td valign="middle" nowrap class="list">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
@@ -449,15 +449,15 @@ include("head.inc");
</table>
</td>
</tr>
- <?php
+ <?php
}
- $i++;
+ $i++;
}
}
-
+
$i = 0;
if (count($a_public_include_details) > 0) {
-
+
foreach ($a_public_include_details as $ent) {
if ($ent['tag'] == "param" && $publicincludeid == $ent['publicincludeid']) {
?>
@@ -470,7 +470,7 @@ include("head.inc");
</td>
<td class="listr" ondblclick="document.location='freeswitch_public_includes_details_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&publicincludeid=<?=$publicincludeid;?>';">
<?=$ent['fielddata'];?>&nbsp;
- </td>
+ </td>
<td valign="middle" nowrap class="list">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
@@ -480,11 +480,11 @@ include("head.inc");
</table>
</td>
</tr>
- <?php
+ <?php
}
- $i++;
+ $i++;
}
- }
+ }
?>
<tr>
<td class="list" colspan="3"></td>
@@ -504,12 +504,12 @@ include("head.inc");
<td class="list"></td>
</tr>
</table>
-
+
</form>
-
+
+ <br>
<br>
- <br>
</td>
</tr>