[pLog-svn] r3078 - plog/trunk/class/database
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Mar 17 13:29:09 GMT 2006
Author: oscar
Date: 2006-03-17 13:29:08 +0000 (Fri, 17 Mar 2006)
New Revision: 3078
Modified:
plog/trunk/class/database/db.class.php
Log:
removed throw()
Modified: plog/trunk/class/database/db.class.php
===================================================================
--- plog/trunk/class/database/db.class.php 2006-03-16 19:09:46 UTC (rev 3077)
+++ plog/trunk/class/database/db.class.php 2006-03-17 13:29:08 UTC (rev 3078)
@@ -42,8 +42,7 @@
$dbpersistent = $fileConfig->getValue( "db_persistent" );
if($dbpersistent == true) {
if( !$db->PConnect( $host, $username, $password, $dbname )) {
- throw( new Exception( "Fatal error: could not connect to the database!" ));
- die();
+ die( "Fatal error: could not connect to the database!" );
}
}
else {
@@ -301,15 +300,15 @@
*/
function qstr($string) {
- if (get_magic_quotes_gpc()) {
- $string = stripslashes($string);
- //$string = stripslashes($string);
- $string = str_replace('\\\\', '\\', $string);
- $string = str_replace("\\'", "'", $string);
- $string = str_replace('\\"', '"', $string);
- }
-
- $string = str_replace("\\", "\\\\", $string);
+ if (get_magic_quotes_gpc()) {
+ $string = stripslashes($string);
+ //$string = stripslashes($string);
+ $string = str_replace('\\\\', '\\', $string);
+ $string = str_replace("\\'", "'", $string);
+ $string = str_replace('\\"', '"', $string);
+ }
+
+ $string = str_replace("\\", "\\\\", $string);
$string = str_replace("'", "''", $string);
return $string;
More information about the pLog-svn
mailing list