From f805de2a0fdc3e888f0144bfff6dab58f5e0b132 Mon Sep 17 00:00:00 2001
From: mcrane
Date: Tue, 28 Jul 2009 07:02:12 -0600
Subject: FreeSWITCH package rename files.
---
.../freeswitch_public_includes_edit.tmp | 547 ---------------------
1 file changed, 547 deletions(-)
delete mode 100644 config/freeswitch_dev/freeswitch_public_includes_edit.tmp
(limited to 'config/freeswitch_dev/freeswitch_public_includes_edit.tmp')
diff --git a/config/freeswitch_dev/freeswitch_public_includes_edit.tmp b/config/freeswitch_dev/freeswitch_public_includes_edit.tmp
deleted file mode 100644
index f7be0dc8..00000000
--- a/config/freeswitch_dev/freeswitch_public_includes_edit.tmp
+++ /dev/null
@@ -1,547 +0,0 @@
- 0) {
- //update
- $ent['publicincludeid'] = $_POST['publicincludeid'];
- }
- else {
- //add
- $ent['publicincludeid'] = guid();
- }
- $ent['extensionname'] = $_POST['extensionname'];
- $ent['order'] = $_POST['order'];
- //$ent['context'] = $_POST['context'];
- $ent['context'] = 'default';
- $ent['enabled'] = $_POST['enabled'];
- $ent['descr'] = $_POST['descr'];
- $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;
- }
- 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;
- }
- if ($_POST['enabled'] == "false") {
- //if the extension name is disabled then remove the public xml file
- $filenamechanged = true;
- }
- 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);
-
- } //end foreach
- } //end if count
-
- //update the config
- $a_public_includes[$id] = $ent;
- }
- else {
- //add to the config
- $a_public_includes[] = $ent;
- }
-
-
- write_config();
- sync_package_freeswitch_public_includes();
-
- header("Location: freeswitch_public_includes.php");
- exit;
- }
-}
-
-include("head.inc");
-
-?>
-
-
-$v_project_label: Public: Edit
\n";
-
-if ($input_errors) print_input_errors($input_errors);
-
-?>
-
-
-
-
-
-
-
-
-
-
- Public:
-
- Public Include general settings.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
-