mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#19533999 DB 클래스에서 eval 함수 사용 제거
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8095 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b062c6c439
commit
e49d4933d3
1 changed files with 2 additions and 2 deletions
|
|
@ -60,8 +60,8 @@
|
|||
if(!file_exists($class_file)) new Object(-1, 'msg_db_not_setted');
|
||||
|
||||
require_once($class_file);
|
||||
$eval_str = sprintf('$GLOBALS[\'__DB__\'][\''.$db_type.'\'] = new %s();', $class_name);
|
||||
eval($eval_str);
|
||||
$get_db = create_function('', sprintf('$GLOBALS["__DB__"]["%s"] = new %s();', $db_type, $class_name));
|
||||
$get_db();
|
||||
}
|
||||
|
||||
return $GLOBALS['__DB__'][$db_type];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue