diff options
Diffstat (limited to 'config/freeswitch_dev/freeswitch_time_conditions_edit.tmp')
-rw-r--r-- | config/freeswitch_dev/freeswitch_time_conditions_edit.tmp | 203 |
1 files changed, 0 insertions, 203 deletions
diff --git a/config/freeswitch_dev/freeswitch_time_conditions_edit.tmp b/config/freeswitch_dev/freeswitch_time_conditions_edit.tmp deleted file mode 100644 index 4e6cfe47..00000000 --- a/config/freeswitch_dev/freeswitch_time_conditions_edit.tmp +++ /dev/null @@ -1,203 +0,0 @@ -<?php -/* $Id$ */ -/* - freeswitch_time_conditions_edit.php - Copyright (C) 2008 Mark J Crane - All rights reserved. - - FreeSWITCH (TM) - http://www.freeswitch.org/ - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -require("guiconfig.inc"); -require("/usr/local/pkg/freeswitch.inc"); - - -$a_ivr_options = &$config['installedpackages']['freeswitchtimeconditions']['config']; - -$id = $_GET['id']; -if (isset($_POST['id'])) { - $id = $_POST['id']; -} - -//$parentid = $_GET['parentid']; -//if (isset($_POST['parentid'])) { -// $parentid = $_POST['parentid']; -//} - -//$ivrid = $_GET['ivrid']; -//if (isset($_POST['ivrid'])) { -// $ivrid = $_POST['ivrid']; -//} - -if (isset($id) && $a_ivr_options[$id]) { - $pconfig['conditionname'] = $a_ivr_options[$id]['conditionname']; - $pconfig['conditionstartday'] = $a_ivr_options[$id]['conditionstartday']; - $pconfig['conditionstarthrs'] = $a_ivr_options[$id]['conditionstarthrs']; - $pconfig['conditionstartmin'] = $a_ivr_options[$id]['conditionstartmin']; - - $pconfig['conditionendday'] = $a_ivr_options[$id]['conditionendday']; - $pconfig['conditionendhrs'] = $a_ivr_options[$id]['conditionstarthrs']; - $pconfig['conditionendmin'] = $a_ivr_options[$id]['conditionendmin']; - - $pconfig['conditionaction'] = $a_ivr_options[$id]['conditionaction']; - $pconfig['conditionantiaction'] = $a_ivr_options[$id]['conditionantiaction']; - $pconfig['conditionjavascript'] = $a_ivr_options[$id]['conditionjavascript']; - $pconfig['conditiondescr'] = $a_ivr_options[$id]['conditiondescr']; -} - - - -if ($_POST) { - - unset($input_errors); - $pconfig = $_POST; - - if (!$input_errors) { - - $ivroptionent = array(); - $ivroptionent['ivrid'] = $_POST['ivrid']; - $ivroptionent['optionnumber'] = $_POST['optionnumber']; - $ivroptionent['optiontype'] = $_POST['optiontype']; - $ivroptionent['optiondest'] = $_POST['optiondest']; - $ivroptionent['optiondescr'] = $_POST['optiondescr']; - - if (isset($id) && $a_ivr_options[$id]) { - //update - $a_ivr_options[$id] = $ivroptionent; - } - else { - //add - $a_ivr_options[] = $ivroptionent; - } - - //touch($d_hostsdirty_path); - write_config(); - - header("Location: freeswitch_ivr_edit.php?id=".$parentid); - exit; - } -} - -?> - -<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> -<?php -include("head.inc"); -//include("fbegin.inc"); -echo "<p class=\"pgtitle\">$v_project_labels: IVR Options: Edit</p>\n"; - -if ($input_errors) print_input_errors($input_errors); - -?> - -<div id="mainlevel"> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> -<tr><td class="tabnavtbl"> -<?php - -display_top_tabs(build_menu()); - -?> -</td></tr> -</table> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td class="tabcont" > - - <form action="freeswitch_ivr_options_edit.php" method="post" name="iform" id="iform"> - <table width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> - <td width="22%" valign="top" class="vncellreq">Option Number</td> - <td width="78%" class="vtable"> - <input name="optionnumber" type="text" class="formfld" id="optionnumber" size="40" value="<?=htmlspecialchars($pconfig['optionnumber']);?>"> - <br> <span class="vexpl">Option Number<br> - e.g. <em>1</em></span></td> - </tr> - <tr> - <td width="22%" valign="top" class="vncellreq">Type</td> - <td width="78%" class="vtable"> - <?php - echo " <select name='optiontype' class='formfld'>\n"; - echo " <option></option>\n"; - if (htmlspecialchars($pconfig['optiontype']) == "extension") { - echo " <option selected='yes'>extension</option>\n"; - } - else { - echo " <option>extension</option>\n"; - } - if (htmlspecialchars($pconfig['optiontype']) == "voicemail") { - echo " <option selected='yes'>voicemail</option>\n"; - } - else { - echo " <option>voicemail</option>\n"; - } - echo " </select>\n"; - ?> - </td> - </tr> - <tr> - <td width="22%" valign="top" class="vncellreq">Destination</td> - <td width="78%" class="vtable"> - <input name="optiondest" type="text" class="formfld" id="optiondest" size="40" value="<?=htmlspecialchars($pconfig['optiondest']);?>"> - <br> <span class="vexpl">Destination<br> - e.g. <em>1001</em></span></td> - </tr> - <tr> - <td width="22%" valign="top" class="vncell">Description</td> - <td width="78%" class="vtable"> - <input name="optiondescr" type="text" class="formfld" id="optiondescr" size="40" value="<?=htmlspecialchars($pconfig['optiondescr']);?>"> - <br> <span class="vexpl">You may enter a description here - for your reference (not parsed).</span></td> - </tr> - <tr> - <td width="22%" valign="top"> </td> - <td width="78%"> - <input name="ivrid" type="hidden" value="<?=$ivrid;?>"> - <input name="parentid" type="hidden" value="<?=$parentid;?>"> - <?php if (isset($id) && $a_ivr_options[$id]): ?> - <input name="id" type="hidden" value="<?=$id;?>"> - <?php endif; ?> - <input name="Submit" type="submit" class="formbtn" value="Save"> <input class="formbtn" type="button" value="Cancel" onclick="history.back()"> - </td> - </tr> - </table> - </form> - - <br> - <br> - <br> - <br> - <br> - <br> - - </td> - </tr> -</table> - -</div> - -<?php include("fend.inc"); ?> -</body> -</html> |