Exception: FLEA_Db_Exception_SqlQuery
Message: SQL 错误消息: "Host '121.199.33.228' is not allowed to connect to this MySQL server"
SQL 语句: "mysql_connect('hdm-101.hichina.com', 'hdm1010336') failed!"
SQL 错误代码: "7335941".
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA.php [752]
#13 FLEA_Db_Driver_Mysql::connect()
ARGS:
Array
(
)
SOURCE CODE:
742 |
|
743 |
$driver = ucfirst(strtolower($dsn['driver']));
|
744 |
$className = 'FLEA_Db_Driver_' . $driver;
|
745 |
if ($driver == 'Mysql' || $driver == 'Mysqlt') {
|
746 |
require_once(FLEA_DIR . '/Db/Driver/Mysql.php');
|
747 |
} else {
|
748 |
FLEA::loadClass($className);
|
749 |
}
|
750 |
$dbo =& new $className($dsn);
|
751 |
/* @var $dbo FLEA_Db_Driver_Abstract */
|
752 |
$dbo->connect();
|
753 |
|
754 |
$GLOBALS[G_FLEA_VAR]['DBO'][$dsnid] =& $dbo;
|
755 |
return $GLOBALS[G_FLEA_VAR]['DBO'][$dsnid];
|
756 |
}
|
757 |
|
758 |
/**
|
759 |
* 分析 DSN 字符串或数组,返回包含 DSN 连接信息的数组,失败返回 false
|
760 |
*
|
761 |
* @param string|array $dsn
|
762 |
*
|
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA/Db/TableDataGateway.php [301]
#12 FLEA::getDBO()
ARGS:
Array
(
)
SOURCE CODE:
291 |
// 当 skipInit 为 true 时,不初始化表数据入口对象
|
292 |
if (isset($params['skipConnect']) && $params['skipConnect'] != false) {
|
293 |
return;
|
294 |
}
|
295 |
|
296 |
// 初始化数据访问对象
|
297 |
if (!isset($params['dbo'])) {
|
298 |
if (isset($params['dbDSN'])) {
|
299 |
$dbo =& FLEA::getDBO($params['dbDSN']);
|
300 |
} else {
|
301 |
$dbo =& FLEA::getDBO();
|
302 |
}
|
303 |
} else {
|
304 |
$dbo =& $params['dbo'];
|
305 |
}
|
306 |
$this->setDBO($dbo);
|
307 |
|
308 |
// 当 skipCreateLinks 不为 true 时,建立关联
|
309 |
if (!isset($params['skipCreateLinks']) || $params['skipCreateLinks'] == false) {
|
310 |
$this->relink();
|
311 |
}
|
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA.php [422]
#11 FLEA_Db_TableDataGateway::FLEA_Db_TableDataGateway()
ARGS:
Array
(
)
SOURCE CODE:
412 |
} else {
|
413 |
$classExists = class_exists($className);
|
414 |
}
|
415 |
if (!$classExists) {
|
416 |
if (!FLEA::loadClass($className)) {
|
417 |
$return = false;
|
418 |
return $return;
|
419 |
}
|
420 |
}
|
421 |
|
422 |
$instances[$className] =& new $className();
|
423 |
FLEA::register($instances[$className], $className);
|
424 |
return $instances[$className];
|
425 |
}
|
426 |
|
427 |
/**
|
428 |
* 将一个对象实例注册到对象实例容器,以便稍后取出
|
429 |
*
|
430 |
* example:
|
431 |
* <code>
|
432 |
* $obj =& new MyClass();
|
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA/Compatibility.php [115]
#10 FLEA::getSingleton('Model_User')
ARGS:
Array
(
[0] => Model_User
)
SOURCE CODE:
105 |
/**
|
106 |
* 返回指定对象的唯一实例(已经过时,用 FLEA::getSingleton() 代替)
|
107 |
*
|
108 |
* @param string $className
|
109 |
*
|
110 |
* @return object
|
111 |
* @deprecated
|
112 |
*/
|
113 |
function & get_singleton($className)
|
114 |
{
|
115 |
return FLEA::getSingleton($className);
|
116 |
}
|
117 |
|
118 |
/**
|
119 |
* 将一个对象实例注册到对象实例容器(已经过时,用 FLEA::register() 代替)
|
120 |
*
|
121 |
* @param object $obj
|
122 |
* @param string $name
|
123 |
*
|
124 |
* @return object
|
125 |
* @deprecated
|
Filename: /usr/home/hmu033051/htdocs/lib/Com/Common.php [67]
#9 get_singleton()
ARGS:
SOURCE CODE:
57 |
|
58 |
/**
|
59 |
|
60 |
* Enter description here...
|
61 |
|
62 |
*
|
63 |
|
64 |
*/
|
65 |
|
66 |
function __construct(){
|
67 |
$this->_user = & get_singleton("Model_User");
|
68 |
}
|
69 |
|
70 |
/**
|
71 |
|
72 |
* Open, parse, and return the file content.
|
73 |
|
74 |
* @author libin 2008-09-13
|
75 |
|
76 |
* @param string string the php file name
|
77 |
|
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA.php [422]
#8 Com_Common::__construct('Model_User')
ARGS:
Array
(
[0] => Model_User
)
SOURCE CODE:
412 |
} else {
|
413 |
$classExists = class_exists($className);
|
414 |
}
|
415 |
if (!$classExists) {
|
416 |
if (!FLEA::loadClass($className)) {
|
417 |
$return = false;
|
418 |
return $return;
|
419 |
}
|
420 |
}
|
421 |
|
422 |
$instances[$className] =& new $className();
|
423 |
FLEA::register($instances[$className], $className);
|
424 |
return $instances[$className];
|
425 |
}
|
426 |
|
427 |
/**
|
428 |
* 将一个对象实例注册到对象实例容器,以便稍后取出
|
429 |
*
|
430 |
* example:
|
431 |
* <code>
|
432 |
* $obj =& new MyClass();
|
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA/Compatibility.php [115]
#7 FLEA::getSingleton()
ARGS:
Array
(
)
SOURCE CODE:
105 |
/**
|
106 |
* 返回指定对象的唯一实例(已经过时,用 FLEA::getSingleton() 代替)
|
107 |
*
|
108 |
* @param string $className
|
109 |
*
|
110 |
* @return object
|
111 |
* @deprecated
|
112 |
*/
|
113 |
function & get_singleton($className)
|
114 |
{
|
115 |
return FLEA::getSingleton($className);
|
116 |
}
|
117 |
|
118 |
/**
|
119 |
* 将一个对象实例注册到对象实例容器(已经过时,用 FLEA::register() 代替)
|
120 |
*
|
121 |
* @param object $obj
|
122 |
* @param string $name
|
123 |
*
|
124 |
* @return object
|
125 |
* @deprecated
|
Filename: /usr/home/hmu033051/htdocs/lib/Com/Factory.php [31]
#6 get_singleton()
ARGS:
SOURCE CODE:
21 |
*/
|
22 |
function __construct(){
|
23 |
|
24 |
}
|
25 |
/**
|
26 |
* get the common obj
|
27 |
* @author libin at 2008-07-30
|
28 |
* @return unknown
|
29 |
*/
|
30 |
function getCommon(){
|
31 |
$common = & get_singleton("Com_Common");
|
32 |
return $common;
|
33 |
}
|
34 |
/**
|
35 |
* get the common_list obj
|
36 |
* @author libin at 2008-07-30
|
37 |
* @return unknown
|
38 |
*/
|
39 |
function getList(){
|
40 |
$list = & get_singleton("Com_List");
|
41 |
return $list;
|
Filename: /usr/home/hmu033051/htdocs/App/Controller/Category.php [21]
#5 Com_Factory::getCommon('Com_Common')
ARGS:
Array
(
[0] => Com_Common
)
SOURCE CODE:
11 |
var $_category;
|
12 |
/**
|
13 |
*
|
14 |
* Enter description here ...
|
15 |
* @var Model_Product
|
16 |
*/
|
17 |
var $_product;
|
18 |
|
19 |
function __construct(){
|
20 |
$this->CommonFactory = & get_singleton("Com_Factory");
|
21 |
$this->common=$this->CommonFactory->getCommon();
|
22 |
$this->_category = & get_singleton("Model_Category");
|
23 |
$this->_product = & get_singleton("Model_Product");
|
24 |
}
|
25 |
|
26 |
function actionIndex(){
|
27 |
$firstcategoryid="";
|
28 |
$title='category'.'—'.DEFAUT_TITLE;
|
29 |
$cid=isset($_GET['cid'])?$_GET['cid']:"";
|
30 |
|
31 |
if(empty($cid)){
|
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA/Dispatcher/Simple.php [106]
#4 Controller_Category::__construct('Com_Common')
ARGS:
Array
(
[0] => Com_Common
)
SOURCE CODE:
96 |
|
97 |
$controller = null;
|
98 |
$controllerClassFilename = null;
|
99 |
do {
|
100 |
// 载入控制对应的类定义
|
101 |
if (!$this->_loadController($controllerClass)) { break; }
|
102 |
|
103 |
// 构造控制器对象
|
104 |
FLEA::setAppInf('FLEA.internal.currentControllerName', $controllerName);
|
105 |
FLEA::setAppInf('FLEA.internal.currentActionName', $actionName);
|
106 |
$controller =& new $controllerClass($controllerName);
|
107 |
if (!method_exists($controller, $actionMethod)) { break; }
|
108 |
if (method_exists($controller, '__setController')) {
|
109 |
$controller->__setController($controllerName, $actionName);
|
110 |
}
|
111 |
if (method_exists($controller, '__setDispatcher')) {
|
112 |
$controller->__setDispatcher($this);
|
113 |
}
|
114 |
|
115 |
// 调用 _beforeExecute() 方法
|
116 |
if (method_exists($controller, '_beforeExecute')) {
|
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA/Dispatcher/Simple.php [77]
#3 FLEA_Dispatcher_Simple::_executeAction()
ARGS:
Array
(
)
SOURCE CODE:
67 |
|
68 |
/**
|
69 |
* 从请求中分析 Controller、Action 和 Package 名字,然后执行指定的 Action 方法
|
70 |
*
|
71 |
* @return mixed
|
72 |
*/
|
73 |
function dispatching()
|
74 |
{
|
75 |
$controllerName = $this->getControllerName();
|
76 |
$actionName = $this->getActionName();
|
77 |
return $this->_executeAction($controllerName, $actionName, $this->getControllerClass($controllerName));
|
78 |
}
|
79 |
|
80 |
/**
|
81 |
* 执行指定的 Action 方法
|
82 |
*
|
83 |
* @param string $controllerName
|
84 |
* @param string $actionName
|
85 |
* @param string $controllerClass
|
86 |
*
|
87 |
* @return mixed
|
Filename: /usr/home/hmu033051/htdocs/lib/FLEA/FLEA.php [816]
#2 FLEA_Dispatcher_Simple::dispatching('category')
ARGS:
Array
(
[0] => category
)
SOURCE CODE:
806 |
require_once($MVCPackageFilename);
|
807 |
}
|
808 |
FLEA::init();
|
809 |
|
810 |
// 载入调度器并转发请求到控制器
|
811 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
812 |
FLEA::loadClass($dispatcherClass);
|
813 |
|
814 |
$dispatcher =& new $dispatcherClass($_GET);
|
815 |
FLEA::register($dispatcher, $dispatcherClass);
|
816 |
$dispatcher->dispatching();
|
817 |
}
|
818 |
|
819 |
/**
|
820 |
* 准备运行环境
|
821 |
*
|
822 |
* @param boolean $loadMVC
|
823 |
*/
|
824 |
function init($loadMVC = false)
|
825 |
{
|
826 |
static $firstTime = true;
|
Filename: /usr/home/hmu033051/htdocs/index.php [25]
#1 FLEA::runMVC('category', 'index', 'Controller_Category')
ARGS:
Array
(
[0] => category
[1] => index
[2] => Controller_Category
)
SOURCE CODE:
15 |
|
16 |
|
17 |
//配置文件引用
|
18 |
FLEA::loadAppInf(dirname(__FILE__) . DS . 'App' . DS . 'Config' . DS . 'config.php');
|
19 |
|
20 |
//程序代码目录引用
|
21 |
FLEA::import(dirname(__FILE__). DS . 'App');
|
22 |
FLEA::import(dirname(__FILE__). DS . 'lib');
|
23 |
|
24 |
//echo dirname(__FILE__);
|
25 |
FLEA::runMVC();
|
26 |
|
27 |
?>
|