From 2f88f78a3a46e3eda8370ba160c4b1af0a60153b Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 4 Apr 2007 05:48:19 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@959 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBSqlite3.class.php | 4 +++- index.php | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/db/DBSqlite3.class.php b/classes/db/DBSqlite3.class.php index cf7b68b46..24140d9d0 100644 --- a/classes/db/DBSqlite3.class.php +++ b/classes/db/DBSqlite3.class.php @@ -54,6 +54,8 @@ // db 정보가 없으면 무시 if(!$this->database) return; + if(!function_exists('sqlite3_open')) return; + // 데이터 베이스 파일 접속 시도 $this->fd = sqlite3_open($this->database, 0666, &$error); if(!file_exists($this->database) || $error) { @@ -81,7 +83,7 @@ **/ function addQuotes($string) { if(get_magic_quotes_gpc()) $string = stripslashes(str_replace("\\","\\\\",$string)); - if(!is_numeric($string)) $string = str_replace("'","''", $string); + if(!is_numeric($string)) $string = sqlite3_quote("'","''", $string); return $string; } diff --git a/index.php b/index.php index 3e6605d98..a5b9b0b14 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,5 @@ init(); $oModule = &$oModuleHandler->procModule(); $oModuleHandler->displayContent($oModule); +debugPrint(ob_get_contents()); +ob_end_flush(); ?>