Exception: FLEA_Exception_CacheDisabled
Message: Cache function is disabled now. This is usually because internalCacheDir option is not defined or internalCacheDir directory is unwritable
Filename: /work/test/mv1/lib/FLEA/FLEA/Db/TableDataGateway.php [2000]
#9 FLEA::writeCache('mysql://mvflvuser:mvflvonli ...', array(4))
ARGS:
Array
(
[0] => mysql://mvflvuser:mvflvonline@218.1.64.43:3307_mv_/mvflv///mv_display
[1] => Array
(
[DID] => Array
(
[name] => did
[scale] =>
[type] => int
[maxLength] => 20
[simpleType] => R
[notNull] => 1
[primaryKey] => 1
[autoIncrement] => 1
[binary] =>
[unsigned] =>
[hasDefault] =>
[description] =>
)
[DFID] => Array
(
[name] => dfid
[scale] =>
[type] => int
[maxLength] => 20
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
[description] =>
)
[DKID] => Array
(
[name] => dkid
[scale] =>
[type] => int
[maxLength] => 2
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
[description] =>
)
[DORDER] => Array
(
[name] => dorder
[scale] =>
[type] => int
[maxLength] => 3
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
[description] =>
)
)
)
SOURCE CODE:
| 1990 |
/**
|
| 1991 |
* ´ÓÊý¾Ý¿â»ñµÃ meta
|
| 1992 |
*/
|
| 1993 |
$this->meta = $this->dbo->metaColumns($this->qtableName);
|
| 1994 |
if (!is_array($this->meta) || empty($this->meta)) {
|
| 1995 |
FLEA::loadClass('FLEA_Db_Exception_MetaColumnsFailed');
|
| 1996 |
return __THROW(new FLEA_Db_Exception_MetaColumnsFailed($this->qtableName));
|
| 1997 |
}
|
| 1998 |
|
| 1999 |
if ($cached) {
|
| 2000 |
return FLEA::writeCache($cacheId, $this->meta);
|
| 2001 |
} else {
|
| 2002 |
return true;
|
| 2003 |
}
|
| 2004 |
}
|
| 2005 |
|
| 2006 |
/**
|
| 2007 |
* µ÷Óà create() ·½·¨ºóÁ¢¼´Òý·¢ _beforeCreate ʼþ
|
| 2008 |
*
|
| 2009 |
* Èç¹ûÒª×èÖ¹ create() ´´½¨¼Ç¼£¬¸Ã·½·¨Ó¦¸Ã·µ»Ø false£¬·ñÔò·µ»Ø true¡£
|
| 2010 |
*
|
Filename: /work/test/mv1/lib/FLEA/FLEA/Db/TableDataGateway.php [333]
#8 FLEA_Db_TableDataGateway::_prepareMeta()
ARGS:
Array
(
)
SOURCE CODE:
| 323 |
$this->dbo =& $dbo;
|
| 324 |
|
| 325 |
if (empty($this->schema) && !empty($dbo->dsn['schema'])) {
|
| 326 |
$this->schema = $dbo->dsn['schema'];
|
| 327 |
}
|
| 328 |
if (empty($this->fullTableName)) {
|
| 329 |
$this->fullTableName = $dbo->dsn['prefix'] . $this->tableName;
|
| 330 |
}
|
| 331 |
$this->qtableName = $dbo->qtable($this->fullTableName, $this->schema);
|
| 332 |
|
| 333 |
if (!$this->_prepareMeta()) {
|
| 334 |
return false;
|
| 335 |
}
|
| 336 |
$this->fields = array_keys($this->meta);
|
| 337 |
|
| 338 |
if (is_array($this->validateRules)) {
|
| 339 |
foreach ($this->validateRules as $fieldName => $rules) {
|
| 340 |
$fieldName = strtoupper($fieldName);
|
| 341 |
if (!isset($this->meta[$fieldName])) { continue; }
|
| 342 |
foreach ((array)$rules as $ruleName => $rule) {
|
| 343 |
$this->meta[$fieldName][$ruleName] = $rule;
|
Filename: /work/test/mv1/lib/FLEA/FLEA/Db/TableDataGateway.php [306]
#7 FLEA_Db_TableDataGateway::setDBO(FLEA_Db_Driver_Mysql)
ARGS:
Array
(
[0] => FLEA_Db_Driver_Mysql Object
(
[NEXT_ID_SQL] => UPDATE %s SET id = LAST_INSERT_ID(id + 1)
[CREATE_SEQ_SQL] => CREATE TABLE %s (id INT NOT NULL)
[INIT_SEQ_SQL] => INSERT INTO %s VALUES (%s)
[DROP_SEQ_SQL] => DROP TABLE %s
[META_COLUMNS_SQL] => SHOW FULL COLUMNS FROM %s
[PARAM_STYLE] => ?
[HAS_INSERT_ID] => 1
[HAS_AFFECTED_ROWS] => 1
[_mysqlVersion] => 4.0.26-log
[TRUE_VALUE] => 1
[FALSE_VALUE] => 0
[NULL_VALUE] => NULL
[HAS_TRANSACTION] =>
[HAS_SAVEPOINT] =>
[RESULT_FIELD_NAME_LOWER] =>
[dsn] => Array
(
[driver] => mysql
[host] => 218.1.64.43:3307
[login] => mvflvuser
[password] => mvflvonline
[database] => mvflv
[port] =>
[options] =>
[prefix] => mv_
[schema] =>
[id] => mysql://mvflvuser:mvflvonline@218.1.64.43:3307_mv_/mvflv//
)
[conn] => Resource id #21
[log] => Array
(
[0] => SELECT VERSION()
[1] => SHOW FULL COLUMNS FROM `mv_display`
)
[querycount] => 2
[lasterr] =>
[lasterrcode] =>
[_insertId] =>
[_transCount] => 0
[_hasFailedQuery] =>
[_savepointStack] => Array
(
)
[enableLog] => 1
)
)
SOURCE CODE:
| 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 |
}
|
| 312 |
}
|
| 313 |
|
| 314 |
/**
|
| 315 |
* ÉèÖÃÊý¾Ý¿â·ÃÎʶÔÏó
|
| 316 |
*
|
Filename: /work/test/mv1/lib/FLEA/FLEA.php [422]
#6 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: /work/test/mv1/app/ControllerMv/Index.php [26]
#5 FLEA::getSingleton('Model_Display')
ARGS:
Array
(
[0] => Model_Display
)
SOURCE CODE:
| 16 |
var $_ModelTag;
|
| 17 |
var $_ModelNew;
|
| 18 |
|
| 19 |
/**
|
| 20 |
* ¹¹Ô캯Êý
|
| 21 |
*
|
| 22 |
* @return Controller_Index
|
| 23 |
*/
|
| 24 |
function ControllerMv_Index() {
|
| 25 |
$this->tpl = $this->_getView ();
|
| 26 |
$this->_ModelDisplay = & FLEA::getSingleton ( 'Model_Display' );
|
| 27 |
$this->_ModelNew = & FLEA::getSingleton ( 'Model_New' );
|
| 28 |
$this->_ModelFlv = & FLEA::getSingleton ( 'Model_Flv' );
|
| 29 |
$this->_ModelKind = & FLEA::getSingleton ( 'Model_Kind' );
|
| 30 |
$this->_ModelUser = & FLEA::getSingleton ( 'Model_User' );
|
| 31 |
$this->_ModelTag = & FLEA::getSingleton ( 'Model_Tag' );
|
| 32 |
}
|
| 33 |
|
| 34 |
function actionusrlogin() {
|
| 35 |
$_SESSION['username'] = $_GET["usr"];
|
| 36 |
|
Filename: /work/test/mv1/lib/FLEA/FLEA/Dispatcher/Simple.php [106]
#4 ControllerMv_Index::ControllerMv_Index('Index')
ARGS:
Array
(
[0] => Index
)
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: /work/test/mv1/lib/FLEA/FLEA/Dispatcher/Auth.php [127]
#3 FLEA_Dispatcher_Simple::_executeAction('Index', 'index', 'ControllerMv_Index')
ARGS:
Array
(
[0] => Index
[1] => index
[2] => ControllerMv_Index
)
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 (is_null($rawACT) || empty($rawACT)) { return true; }
|
| 134 |
$ACT = $this->_auth->prepareACT($rawACT);
|
| 135 |
$roles = $this->_auth->getRolesArray();
|
| 136 |
$args = array($controllerName, $actionName, $controllerClass, $ACT, $roles);
|
| 137 |
|
Filename: /work/test/mv1/lib/FLEA/FLEA.php [816]
#2 FLEA_Dispatcher_Auth::dispatching()
ARGS:
Array
(
)
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: /work/test/mv1/index.php [39]
#1 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
| 29 |
* FLEA::loadAppInf() »áÓÿª·¢ÕßÖ¸¶¨µÄÓ¦ÓóÌÐòÉèÖø²¸Ç FleaPHP ÌṩµÄĬÈÏÉèÖá£
|
| 30 |
* ¿ª·¢Õß¿ÉÒÔʹÓà FLEA::getAppInf() È¡³öÈÎÒâÓ¦ÓóÌÐòÉèÖá£
|
| 31 |
*/
|
| 32 |
FLEA::loadAppInf($configFilename);
|
| 33 |
|
| 34 |
FLEA::loadAppInf(BASEDIR . '/app/Config/APP_INF.php');
|
| 35 |
|
| 36 |
/**
|
| 37 |
* FLEA::runMVC() ¸ù¾Ý URL µØÖ·ÊµÀý»¯Ö¸¶¨µÄ Controller À࣬µ÷ÓÃÖ¸¶¨µÄ Action ·½·¨
|
| 38 |
*/
|
| 39 |
FLEA::runMVC();
|
| 40 |
|
| 41 |
/**
|
| 42 |
* ÎÞ·¨ÕÒµ½¿ØÖÆÆ÷ʱµÄ´íÎó´¦Àí
|
| 43 |
*
|
| 44 |
* ÓÉÓÚûÓÐÌṩ²Ëµ¥Ö¸¶¨µÄ¿ØÖÆÆ÷£¬ËùÒÔÓÃÒ»¸ö»Øµ÷º¯Êý´¦ÀíÕÒ²»µ½¿ØÖÆÆ÷ºÍÎÞ·¨·ÃÎÊ¿ØÖÆÆ÷µÄ´íÎó
|
| 45 |
*/
|
| 46 |
function onDispatcherFailedCallback($controllerName, $actionName)
|
| 47 |
{
|
| 48 |
redirect(url(null, null, array('requestUri' => $_SERVER['REQUEST_URI'])));
|
| 49 |
}
|