#19533999 DB 클래스에서 eval 함수 사용 제거

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8095 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-02-13 10:54:10 +00:00
parent b062c6c439
commit e49d4933d3

View file

@ -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];