Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv14692/phpslash-ft/class
Modified Files:
slashDB.class
Log Message:
htmlentity of query in search
Index: slashDB.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/slashDB.class,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** slashDB.class 7 Nov 2001 21:35:34 -0000 1.2
--- slashDB.class 25 Mar 2002 16:45:52 -0000 1.3
***************
*** 34,38 ****
$this->User = $_PSL['DB_User'];
$this->Password = $_PSL['DB_Password'];
!
}
--- 34,39 ----
$this->User = $_PSL['DB_User'];
$this->Password = $_PSL['DB_Password'];
!
! $this->psl = $_PSL;
}
***************
*** 44,53 ****
**/
function halt($msg) {
! printf("</td></table></CENTER><b>Database error:</b><PRE>%s</PRE><br>\n", $msg);
! printf("<b>MySQL Error</b>: %s (%s)<br>\n",
! $this->Errno, $this->Error);
! printf("Please contact the webmaster and report the ");
! printf("exact error message.<br>\n");
! die("Session halted.");
}
}
--- 45,59 ----
**/
function halt($msg) {
!
! if($_PSL['debug']) {
! printf("</td></table></CENTER><b>Database error:</b><PRE>%s</PRE><br>\n", $msg);
! printf("<b>MySQL Error</b>: %s (%s)<br>\n", $this->Errno, $this->Error);
! printf("Please contact the webmaster and report the ");
! printf("exact error message.<br>\n");
! die("Session halted.");
! } else {
! error(sprintf("Database error: MySQL Error (%s). Please contact the webmaster and report the exact error message.", $this->Errno));
! die("Session halted.");
! }
}
}
|