[Pkg-voip-commits] r3520 - in freepbx/modules-2.2/modules/freepbx-module-parking: . debian

Diego Iastrubni elcuco-guest at alioth.debian.org
Wed May 9 09:30:17 UTC 2007


Author: elcuco-guest
Date: 2007-05-09 09:30:15 +0000 (Wed, 09 May 2007)
New Revision: 3520

Added:
   freepbx/modules-2.2/modules/freepbx-module-parking/uninstall.php
Modified:
   freepbx/modules-2.2/modules/freepbx-module-parking/debian/changelog
Log:
added forgotten uninstall file in parking module



Modified: freepbx/modules-2.2/modules/freepbx-module-parking/debian/changelog
===================================================================
--- freepbx/modules-2.2/modules/freepbx-module-parking/debian/changelog	2007-05-08 10:41:34 UTC (rev 3519)
+++ freepbx/modules-2.2/modules/freepbx-module-parking/debian/changelog	2007-05-09 09:30:15 UTC (rev 3520)
@@ -1,3 +1,9 @@
+freepbx-module-parking (2.2-2.1.1-2) unstable; urgency=low
+
+  * Added uninstall.php which was forgotten in previous update
+
+ -- Diego Iastrubni <diego.iastrubni at xorcom.com>  Wed,  9 May 2007 12:27:08 +0300
+
 freepbx-module-parking (2.2-2.1.1-1) unstable; urgency=low
 
   * New upstream release

Added: freepbx/modules-2.2/modules/freepbx-module-parking/uninstall.php
===================================================================
--- freepbx/modules-2.2/modules/freepbx-module-parking/uninstall.php	2007-05-08 10:41:34 UTC (rev 3519)
+++ freepbx/modules-2.2/modules/freepbx-module-parking/uninstall.php	2007-05-09 09:30:15 UTC (rev 3520)
@@ -0,0 +1,31 @@
+<?php /* $Id: uninstall.php  $ */
+//
+//
+//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.
+
+parking_remove_config();
+
+
+function parking_remove_config() {
+		//open the file and truncate. If diabled, file will be deleted this way
+		//AND GET THE ENV VARIABLES TO CALL THIS BY
+
+		$filename = (isset($amp_conf["ASTETCDIR"]) ? $amp_conf["ASTETCDIR"] : "/etc/asterisk/") . "parking_additional.inc";
+		$fh = fopen($filename, "w+");
+		fwrite($fh, ";*** WARNING: DO NOT HAND EDIT THIS FILE IT IS AUTO-GENERATD ***\n;\n");
+		fwrite($fh, ";***              PARKING LOT HAS BEEN DISABLED              ***\n;\n");
+		fwrite($fh, ";*** The parking lot module has been removed! ***\n;\n");
+		fwrite($fh, ";*** Edits will be preserved unless the module is reinstalled. ***\n;\n");
+		fclose($fh);
+		chmod($filename, 0660);
+}
+
+?>




More information about the Pkg-voip-commits mailing list