[Pkg-voip-commits] r3726 - freepbx/modules-2.2/modules/freepbx-module-phpagiconf/debian/patches

elcuco-guest at alioth.debian.org elcuco-guest at alioth.debian.org
Sun Jul 8 14:21:05 UTC 2007


Author: elcuco-guest
Date: 2007-07-08 14:21:04 +0000 (Sun, 08 Jul 2007)
New Revision: 3726

Modified:
   freepbx/modules-2.2/modules/freepbx-module-phpagiconf/debian/patches/sqlite3-support.dpatch
Log:
a nicer wayof doing this patch, now the code is more readble


Modified: freepbx/modules-2.2/modules/freepbx-module-phpagiconf/debian/patches/sqlite3-support.dpatch
===================================================================
--- freepbx/modules-2.2/modules/freepbx-module-phpagiconf/debian/patches/sqlite3-support.dpatch	2007-07-05 08:07:20 UTC (rev 3725)
+++ freepbx/modules-2.2/modules/freepbx-module-phpagiconf/debian/patches/sqlite3-support.dpatch	2007-07-08 14:21:04 UTC (rev 3726)
@@ -6,25 +6,40 @@
 @DPATCH@
 diff -urNad freepbx-module-phpagiconf~/functions.inc.php freepbx-module-phpagiconf/functions.inc.php
 --- freepbx-module-phpagiconf~/functions.inc.php	2007-04-02 11:21:33.000000000 +0300
-+++ freepbx-module-phpagiconf/functions.inc.php	2007-04-23 13:25:44.000000000 +0300
-@@ -52,7 +52,13 @@
++++ freepbx-module-phpagiconf/functions.inc.php	2007-07-08 15:47:42.000000000 +0300
+@@ -52,7 +52,28 @@
  	} else {
  		$asmanager = array ($amp_conf['AMPDBUSER'], $amp_conf['AMPDBPASS']);
  	}
 -	$results = sql("INSERT INTO phpagiconf SET `debug`=$p_debug, error_handler=$p_error_handler, err_email='$p_err_email', hostname='$p_hostname', tempdir='$p_tempdir', festival_text2wave='$p_festival_text2wave', asman_server='$p_asman_server', asman_port=$p_asman_port, asman_user='".$asmanager[0]."', asman_secret='".$asmanager[1]."', cepstral_swift='$p_cepstral_swift', cepstral_voice='$p_cepstral_voice', setuid=$p_setuid, basedir='$p_basedir'");
 +
++/*
 +	$sql = "INSERT INTO phpagiconf 
 +		(debug   ,    error_handler,     err_email,       hostname,      tempdir,      festival_text2wave,      asman_server,    asman_port,          asman_user,        asman_secret,      cepstral_swift,      cepstral_voice, setuid, basedir)
 +	VALUES	($p_debug, $p_error_handler, '$p_err_email', '$p_hostname', '$p_tempdir', '$p_festival_text2wave', '$p_asman_server', $p_asman_port, '".$asmanager[0]."', '".$asmanager[1]."', '$p_cepstral_swift', '$p_cepstral_voice', $p_setuid, '$p_basedir')
 +	";
-+
 +	$results = sql($sql);
++*/	
++	$results = sql("INSERT INTO phpagiconf SET `debug`=$p_debug");
++	$results = sql("INSERT INTO phpagiconf SET `error_handler`=$p_error_handler");
++	$results = sql("INSERT INTO phpagiconf SET `err_email`='$p_err_email'");
++	$results = sql("INSERT INTO phpagiconf SET `hostname`='$p_hostname'");
++	$results = sql("INSERT INTO phpagiconf SET `tempdir`='$p_tempdir'");
++	$results = sql("INSERT INTO phpagiconf SET `festival_text2wave`='$p_festival_text2wave'");
++	$results = sql("INSERT INTO phpagiconf SET `asman_server`='$p_asman_server'");
++	$results = sql("INSERT INTO phpagiconf SET `asman_port`=$p_asman_port");
++	$results = sql("INSERT INTO phpagiconf SET `asman_user`='".$asmanager[0]."'");
++	$results = sql("INSERT INTO phpagiconf SET `asman_secret`='".$asmanager[1]."'");
++	$results = sql("INSERT INTO phpagiconf SET `cepstral_swift`='$p_cepstral_swift'");
++	$results = sql("INSERT INTO phpagiconf SET `cepstral_voice`='$p_cepstral_voice'");
++	$results = sql("INSERT INTO phpagiconf SET `setuid`=$p_setuid");
++	$results = sql("INSERT INTO phpagiconf SET `basedir`='$p_basedir'");
  }
  
  ?>
 diff -urNad freepbx-module-phpagiconf~/install.php freepbx-module-phpagiconf/install.php
 --- freepbx-module-phpagiconf~/install.php	1970-01-01 02:00:00.000000000 +0200
-+++ freepbx-module-phpagiconf/install.php	2007-04-23 13:25:44.000000000 +0300
++++ freepbx-module-phpagiconf/install.php	2007-07-08 15:45:10.000000000 +0300
 @@ -0,0 +1,32 @@
 +<?php
 +




More information about the Pkg-voip-commits mailing list