Exception: flea_db_exception_sqlquery
Message: SQL 错误消息: "Access denied for user 'energyme'@'localhost' (using password: YES)"
SQL 语句: "mysql_connect('localhost', 'energyme') failed!"
SQL 错误代码: "7335941".
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA/Db/Driver/Mysql.php
#14
flea_db_exception_sqlquery::flea_db_exception_sqlquery('mysql_connect('localhost', ...', 'Access denied for user 'ene ...', 1045)
FILE: Mysql.php
LINE: 161
ARGS:
Array
(
[0] => mysql_connect('localhost', 'energyme') failed!
[1] => Access denied for user 'energyme'@'localhost' (using password: YES)
[2] => 1045
)
SOURCE CODE:
| 151 |
if (!isset($dsn['login'])) { $dsn['login'] = ''; }
|
| 152 |
if (!isset($dsn['password'])) { $dsn['password'] = ''; }
|
| 153 |
if (isset($dsn['options'])) {
|
| 154 |
$this->conn = mysql_connect($host, $dsn['login'], $dsn['password'], false, $dsn['options']);
|
| 155 |
} else {
|
| 156 |
$this->conn = mysql_connect($host, $dsn['login'], $dsn['password']);
|
| 157 |
}
|
| 158 |
|
| 159 |
if (!$this->conn) {
|
| 160 |
FLEA::loadClass('FLEA_Db_Exception_SqlQuery');
|
| 161 |
__THROW(new FLEA_Db_Exception_SqlQuery("mysql_connect('{$host}', '{$dsn['login']}') failed!", mysql_error(), mysql_errno()));
|
| 162 |
return false;
|
| 163 |
}
|
| 164 |
|
| 165 |
if (!mysql_select_db($dsn['database'], $this->conn)) {
|
| 166 |
FLEA::loadClass('FLEA_Db_Exception_SqlQuery');
|
| 167 |
__THROW(new FLEA_Db_Exception_SqlQuery("SELECT DATABASE: '{$dsn['database']}' FAILED!", mysql_error($this->conn), mysql_errno($this->conn)));
|
| 168 |
return false;
|
| 169 |
}
|
| 170 |
|
| 171 |
$version = $this->getOne('SELECT VERSION()');
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA.php
#13
flea_db_driver_mysql::connect()
FILE: FLEA.php
LINE: 582
ARGS:
Array
(
)
SOURCE CODE:
| 572 |
|
| 573 |
$driver = ucfirst(strtolower($dsn['driver']));
|
| 574 |
$className = 'FLEA_Db_Driver_' . $driver;
|
| 575 |
if ($driver == 'Mysql' || $driver == 'Mysqlt') {
|
| 576 |
require_once(FLEA_DIR . '/Db/Driver/Mysql.php');
|
| 577 |
} else {
|
| 578 |
FLEA::loadClass($className);
|
| 579 |
}
|
| 580 |
$dbo =& new $className($dsn);
|
| 581 |
/* @var $dbo FLEA_Db_Driver_Prototype */
|
| 582 |
$dbo->connect();
|
| 583 |
|
| 584 |
$GLOBALS[G_FLEA_VAR]['DBO'][$dsnid] =& $dbo;
|
| 585 |
return $GLOBALS[G_FLEA_VAR]['DBO'][$dsnid];
|
| 586 |
}
|
| 587 |
|
| 588 |
/**
|
| 589 |
* 分析 DSN 字符串或数组,返回包含 DSN 连接信息的数组,失败返回 false
|
| 590 |
*
|
| 591 |
* @param string|array $dsn
|
| 592 |
*
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA/Db/TableDataGateway.php
#12
flea::getdbo(array(5))
FILE: TableDataGateway.php
LINE: 277
ARGS:
Array
(
[0] => Array
(
[driver] => mysql
[host] => localhost
[login] => energyme
[password] => 4energyme6
[database] => energyme
)
)
SOURCE CODE:
| 267 |
// 当 skipInit 为 true 时,不初始化表数据入口对象
|
| 268 |
if (isset($params['skipConnect']) && $params['skipConnect'] != false) {
|
| 269 |
return;
|
| 270 |
}
|
| 271 |
|
| 272 |
// 初始化数据访问对象
|
| 273 |
if (!isset($params['dbo'])) {
|
| 274 |
if (isset($params['dbDSN'])) {
|
| 275 |
$dbo =& FLEA::getDBO($params['dbDSN']);
|
| 276 |
} else {
|
| 277 |
$dbo =& FLEA::getDBO(FLEA::getAppInf('dbDSN'));
|
| 278 |
}
|
| 279 |
} else {
|
| 280 |
$dbo =& $params['dbo'];
|
| 281 |
}
|
| 282 |
$this->setDBO($dbo);
|
| 283 |
|
| 284 |
// 当 skipCreateLinks 不为 true 时,建立关联
|
| 285 |
if (!isset($params['skipCreateLinks']) || $params['skipCreateLinks'] == false)
|
| 286 |
{
|
| 287 |
$this->relink();
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/APP/GD/MyDB.php
#11
flea_db_tabledatagateway::flea_db_tabledatagateway()
FILE: MyDB.php
LINE: 5
ARGS:
Array
(
)
SOURCE CODE:
| 1 |
<?php
|
| 2 |
load_class('FLEA_Db_TableDataGateway');
|
| 3 |
class GD_MyDb extends FLEA_Db_TableDataGateway {
|
| 4 |
function GD_MyDb() {
|
| 5 |
parent::FLEA_Db_TableDataGateway();
|
| 6 |
}
|
| 7 |
|
| 8 |
/**
|
| 9 |
* 增加findAll
|
| 10 |
*/
|
| 11 |
|
| 12 |
/**
|
| 13 |
* 查询所有符合条件的记录及相关数据,返回一个 FLEA_Db_RowSet 对象
|
| 14 |
*
|
| 15 |
* 如果关联表的数据量很大,那么可以在使用 findAll() 查询之前,设置
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/APP/Table/BoTable.php
#10
gd_mydb::gd_mydb()
FILE: BoTable.php
LINE: 41
ARGS:
Array
(
)
SOURCE CODE:
| 31 |
/**
|
| 32 |
* 构造函数
|
| 33 |
*
|
| 34 |
*
|
| 35 |
*/
|
| 36 |
function Table_BoTable($table,$key){
|
| 37 |
|
| 38 |
$this->tableName = $table;
|
| 39 |
$this->primaryKey = $key;
|
| 40 |
//echo "tableName=".$table."<br>primaryKey=".$key;
|
| 41 |
parent::GD_MyDb();
|
| 42 |
|
| 43 |
}
|
| 44 |
|
| 45 |
}
|
| 46 |
?> |
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/APP/Model/FoExhibitor.php
#9
table_botable::table_botable('exhibitor', 'id')
FILE: FoExhibitor.php
LINE: 18
ARGS:
Array
(
[0] => exhibitor
[1] => id
)
SOURCE CODE:
| 8 |
class Model_FoExhibitor extends Model_Base {
|
| 9 |
/**
|
| 10 |
* 提供数据库访问服务的对象
|
| 11 |
*
|
| 12 |
* @var Table object
|
| 13 |
*/
|
| 14 |
var $_Exhibitor;
|
| 15 |
var $_Ui;
|
| 16 |
|
| 17 |
function Model_FoExhibitor() {
|
| 18 |
$this->_Exhibitor=& new Table_BoTable('exhibitor','id');
|
| 19 |
$this->_Ui=& FLEA::initWebControls();
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
}
|
| 24 |
|
| 25 |
/**
|
| 26 |
* Enter description here...
|
| 27 |
*
|
| 28 |
*/
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA.php
#8
model_foexhibitor::model_foexhibitor()
FILE: FLEA.php
LINE: 338
ARGS:
Array
(
)
SOURCE CODE:
| 328 |
} else {
|
| 329 |
$classExists = class_exists($className);
|
| 330 |
}
|
| 331 |
if (!$classExists) {
|
| 332 |
if (!FLEA::loadClass($className)) {
|
| 333 |
$return = false;
|
| 334 |
return $return;
|
| 335 |
}
|
| 336 |
}
|
| 337 |
|
| 338 |
$instances[$className] =& new $className();
|
| 339 |
FLEA::register($instances[$className], $className);
|
| 340 |
return $instances[$className];
|
| 341 |
}
|
| 342 |
|
| 343 |
/**
|
| 344 |
* 将一个对象实例注册到对象实例容器
|
| 345 |
*
|
| 346 |
* @param object $obj
|
| 347 |
* @param string $name
|
| 348 |
*
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA/Compatibility.php
#7
flea::getsingleton('Model_FoExhibitor')
FILE: Compatibility.php
LINE: 115
ARGS:
Array
(
[0] => Model_FoExhibitor
)
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: /home/sites/manageevents.co.uk/public_html/energy/libs/APP/Controller/FoExhibitor.php
#6
get_singleton('Model_FoExhibitor')
FILE: FoExhibitor.php
LINE: 30
ARGS:
Array
(
[0] => Model_FoExhibitor
)
SOURCE CODE:
| 20 |
var $_modelClass;
|
| 21 |
|
| 22 |
/**
|
| 23 |
* 构造函数
|
| 24 |
*
|
| 25 |
*
|
| 26 |
* @return
|
| 27 |
*/
|
| 28 |
|
| 29 |
function Controller_FoExhibitor() {
|
| 30 |
$this->_modelClass=& get_singleton('Model_FoExhibitor');
|
| 31 |
/**
|
| 32 |
* 除了搜索之外的所有功能都必须登陆才能使用
|
| 33 |
*/
|
| 34 |
if($_GET['action'] != 'Search' && $_GET['action'] != 'Register' && $_GET['action'] != 'Create' && $_GET['action'] != 'ViewMeeting' && $_GET['action'] != 'PrintMeeting'){
|
| 35 |
if(!Model_Login::isLogin() || $_SESSION['TYPE']!='E'){
|
| 36 |
$url=url('MBoLogin','Login');
|
| 37 |
redirect($url);
|
| 38 |
exit;
|
| 39 |
}
|
| 40 |
}
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA/Dispatcher/Simple.php
#5
controller_foexhibitor::controller_foexhibitor('FoExhibitor')
FILE: Simple.php
LINE: 113
ARGS:
Array
(
[0] => FoExhibitor
)
SOURCE CODE:
| 103 |
if (!is_readable($controllerClassFilename)) {
|
| 104 |
$controllerClassFilename = null;
|
| 105 |
break;
|
| 106 |
}
|
| 107 |
require_once($controllerClassFilename);
|
| 108 |
if (!class_exists($controllerClass)) { break; }
|
| 109 |
|
| 110 |
// 构造控制器对象
|
| 111 |
FLEA::setAppInf('FLEA.internal.currentControllerName', $controllerName);
|
| 112 |
FLEA::setAppInf('FLEA.internal.currentActionName', $actionName);
|
| 113 |
$controller =& new $controllerClass($controllerName);
|
| 114 |
if (!method_exists($controller, $actionMethod)) { break; }
|
| 115 |
if (method_exists($controller, '__setController')) {
|
| 116 |
$controller->__setController($controllerName);
|
| 117 |
}
|
| 118 |
if (method_exists($controller, '__setDispatcher')) {
|
| 119 |
$controller->__setDispatcher($this);
|
| 120 |
}
|
| 121 |
|
| 122 |
// 调用 _beforeExecute() 方法
|
| 123 |
if (method_exists($controller, '_beforeExecute')) {
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA/Dispatcher/Auth.php
#4
flea_dispatcher_auth::_executeaction('FoExhibitor', 'Register', 'Controller_FoExhibitor')
FILE: Auth.php
LINE: 127
ARGS:
Array
(
[0] => FoExhibitor
[1] => Register
[2] => Controller_FoExhibitor
)
SOURCE CODE:
| 117 |
* @return mixed
|
| 118 |
*/
|
| 119 |
function dispatching()
|
| 120 |
{
|
| 121 |
$controllerName = $this->getControllerName();
|
| 122 |
$actionName = $this->getActionName();
|
| 123 |
$controllerClass = $this->getControllerClass($controllerName);
|
| 124 |
|
| 125 |
if ($this->check($controllerName, $actionName, $controllerClass)) {
|
| 126 |
// 检查通过,执行控制器方法
|
| 127 |
return $this->_executeAction($controllerName, $actionName, $controllerClass);
|
| 128 |
} else {
|
| 129 |
// 检查失败
|
| 130 |
$callback = FLEA::getAppInf('dispatcherAuthFailedCallback');
|
| 131 |
|
| 132 |
$rawACT = $this->getControllerACT($controllerName, $controllerClass);
|
| 133 |
if ($rawACT == null || empty($rawACT)) { return true; }
|
| 134 |
$ACT = $this->_auth->prepareACT($rawACT);
|
| 135 |
$roles = $this->_auth->getRolesArray();
|
| 136 |
|
| 137 |
if ($callback) {
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA.php
#3
flea_dispatcher_auth::dispatching()
FILE: FLEA.php
LINE: 644
ARGS:
Array
(
)
SOURCE CODE:
| 634 |
require_once($MVCPackageFilename);
|
| 635 |
}
|
| 636 |
FLEA::init();
|
| 637 |
|
| 638 |
// 载入调度器并转发请求到控制器
|
| 639 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
| 640 |
FLEA::loadClass($dispatcherClass);
|
| 641 |
|
| 642 |
$dispatcher =& new $dispatcherClass($_GET);
|
| 643 |
FLEA::register($dispatcher, $dispatcherClass);
|
| 644 |
$dispatcher->dispatching();
|
| 645 |
}
|
| 646 |
|
| 647 |
/**
|
| 648 |
* 准备运行环境
|
| 649 |
*
|
| 650 |
* @param boolean $loadMVC
|
| 651 |
*/
|
| 652 |
function init($loadMVC = false)
|
| 653 |
{
|
| 654 |
static $firstTime = true;
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/libs/FLEA/FLEA/Compatibility.php
#2
flea::runmvc()
FILE: Compatibility.php
LINE: 263
ARGS:
Array
(
)
SOURCE CODE:
| 253 |
FLEA::init();
|
| 254 |
}
|
| 255 |
|
| 256 |
/**
|
| 257 |
* FLEA 应用程序入口(已经过时,用 FLEA::runMVC() 代替)
|
| 258 |
*
|
| 259 |
* @deprecated
|
| 260 |
*/
|
| 261 |
function run()
|
| 262 |
{
|
| 263 |
FLEA::runMVC();
|
| 264 |
}
|
| 265 |
|
| 266 |
/**
|
| 267 |
* 初始化 Ajax,返回 FLEA_Ajax 对象实例(已经过时,用 FLEA::initAjax() 代替)
|
| 268 |
*
|
| 269 |
* @return FLEA_Ajax
|
| 270 |
* @deprecated
|
| 271 |
*/
|
| 272 |
function & init_ajax()
|
| 273 |
{
|
Filename: /home/sites/manageevents.co.uk/public_html/energy/index.php
#1
run()
FILE: index.php
LINE: 40
ARGS:
Array
(
)
SOURCE CODE:
| 30 |
/**/
|
| 31 |
// APP_DIR 常量指示模版的保存目录
|
| 32 |
define('APP_DIR', dirname(__FILE__));
|
| 33 |
define('TPL_DIR',APP_DIR.'/templates');
|
| 34 |
|
| 35 |
require('libs/FLEA/FLEA.php');
|
| 36 |
register_app_inf(APP_DIR . '/libs/APP/Config/DSN.php');
|
| 37 |
register_app_inf(APP_DIR . '/libs/APP/Config/BO_APP_INF.php');
|
| 38 |
import(APP_DIR . '/libs/APP');
|
| 39 |
|
| 40 |
run();
|
| 41 |
?> |