//This program is free software; you can redistribute it and/or //modify it under the terms of the GNU General Public License //as published by the Free Software Foundation; either version 2 //of the License, or (at your option) any later version. // //This program is distributed in the hope that it will be useful, //but WITHOUT ANY WARRANTY; without even the implied warranty of //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //GNU General Public License for more details. isset($_REQUEST['action']) ? $action = $_REQUEST['action'] : ($action = ''); isset($_REQUEST['id']) ? $extdisplay = $_REQUEST['id'] : ($extdisplay = ''); $dispnum = "miscdests"; //used for switch on config.php switch ($action) { case "add": miscdests_add($_REQUEST['description'], $_REQUEST['destdial']); needreload(); redirect_standard(); break; case "delete": miscdests_del($extdisplay); needreload(); redirect_standard(); break; case "edit": //just delete and re-add miscdests_update($extdisplay, $_REQUEST['description'], $_REQUEST['destdial']); needreload(); redirect_standard('id'); break; }
switch ($action) { case "add": $errmiscdests = miscdests_add($destdial, $context, $goto, $description); if ($errmiscdests != false) { exec($wScript1); needreload(); } break; case "delete": miscdests_del($extdisplay, $context); exec($wScript1); needreload(); break; case "edit": miscdests_del($extdisplay, $context); miscdests_add($destdial, $context, $goto, $description); exec($wScript1); needreload(); break; } $miscdests = miscdests_list($context); ?> </div> <div class="rnav" style="width:225px;"> <li><a id="<?php echo $extdisplay == '' ? 'current' : ''; ?> " href="config.php?mode=pbx&display=<?php echo urlencode($dispnum);