mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@959 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
419cac149a
commit
2f88f78a3a
2 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue