指定的缓存目录: /files/subject_bak/yuanlai/cache
Array
(
[0] => mysql://root:0987654321@172.16.1.103_/ibb2/
[1] => Array
(
[USERINFO] => Array
(
[UID] => Array
(
[name] => uid
[scale] =>
[type] => int
[maxLength] => 10
[simpleType] => R
[notNull] => 1
[primaryKey] => 1
[autoIncrement] => 1
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[USERNAME] => Array
(
[name] => username
[scale] =>
[type] => varchar
[maxLength] => 40
[simpleType] => C
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[NICKNAME] => Array
(
[name] => nickname
[scale] =>
[type] => varchar
[maxLength] => 40
[simpleType] => C
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[TRUENAME] => Array
(
[name] => truename
[scale] =>
[type] => varchar
[maxLength] => 40
[simpleType] => C
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[BIRTHDAY] => Array
(
[name] => birthday
[scale] =>
[type] => date
[maxLength] => -1
[simpleType] => D
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[SEX] => Array
(
[name] => sex
[scale] =>
[type] => tinyint
[maxLength] => 1
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[CITY] => Array
(
[name] => city
[scale] =>
[type] => tinyint
[maxLength] => 3
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[DESCRIPTION] => Array
(
[name] => description
[scale] =>
[type] => text
[maxLength] => -1
[simpleType] => X
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[FAVORITES] => Array
(
[name] => favorites
[scale] =>
[type] => varchar
[maxLength] => 60
[simpleType] => C
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[PLAYLISTID] => Array
(
[name] => playlistid
[scale] =>
[type] => int
[maxLength] => 10
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[COUNT] => Array
(
[name] => count
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 0
)
[PHONE] => Array
(
[name] => phone
[scale] =>
[type] => varchar
[maxLength] => 20
[simpleType] => C
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[ADDRESS] => Array
(
[name] => address
[scale] =>
[type] => varchar
[maxLength] => 128
[simpleType] => C
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[NODE_COUNTS] => Array
(
[name] => node_counts
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 0
)
[PLAYLIST_COUNTS] => Array
(
[name] => playlist_counts
[scale] =>
[type] => int
[maxLength] => 10
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[LAST_UPTIME] => Array
(
[name] => last_uptime
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 0
)
[LAST_NID] => Array
(
[name] => last_nid
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 0
)
[LAST_NODE_NAME] => Array
(
[name] => last_node_name
[scale] =>
[type] => varchar
[maxLength] => 500
[simpleType] => X
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[VIEW_COUNTS] => Array
(
[name] => view_counts
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 0
)
[LAST_VISITORS] => Array
(
[name] => last_visitors
[scale] =>
[type] => varchar
[maxLength] => 250
[simpleType] => C
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[POPULARY] => Array
(
[name] => populary
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[PICTURE] => Array
(
[name] => picture
[scale] =>
[type] => varchar
[maxLength] => 255
[simpleType] => X
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[POINTS] => Array
(
[name] => points
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[TOTAL] => Array
(
[name] => total
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[ADD_POINTS_TIME] => Array
(
[name] => add_points_time
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[QQ] => Array
(
[name] => qq
[scale] =>
[type] => varchar
[maxLength] => 10
[simpleType] => C
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[MSN] => Array
(
[name] => msn
[scale] =>
[type] => varchar
[maxLength] => 100
[simpleType] => C
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[EMAIL] => Array
(
[name] => email
[scale] =>
[type] => varchar
[maxLength] => 100
[simpleType] => C
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[REGDATE] => Array
(
[name] => regdate
[scale] =>
[type] => datetime
[maxLength] => -1
[simpleType] => T
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[LASTLOGIN] => Array
(
[name] => lastlogin
[scale] =>
[type] => datetime
[maxLength] => -1
[simpleType] => T
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[FLAG] => Array
(
[name] => flag
[scale] =>
[type] => tinyint
[maxLength] => 2
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 1
)
[NUMBER] => Array
(
[name] => number
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
[WINNER] => Array
(
[name] => winner
[scale] =>
[type] => tinyint
[maxLength] => 1
[simpleType] => I
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 0
)
[USER_TYPE] => Array
(
[name] => user_type
[scale] =>
[type] => varchar
[maxLength] => 100
[simpleType] => C
[notNull] => 1
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
)
)
)
)
SOURCE CODE: | 1631 | FLEA::loadClass('FLEA_Db_Exception_MetaColumnsFailed'); |
| 1632 | __THROW(new FLEA_Db_Exception_MetaColumnsFailed($this->tableName)); |
| 1633 | return false; |
| 1634 | } |
| 1635 | if ($cached) { |
| 1636 | |
| 1637 | //$allMeta = FLEA::getCache($cacheId, FLEA::getAppInf('dbMetaLifetime')); |
| 1638 | //if (!is_array($allMeta)) { $allMeta = array(); } |
| 1639 | error_reporting(0); |
| 1640 | $allMeta[$metaID] = @$this->meta; |
| 1641 | return @FLEA::writeCache($cacheId, $allMeta); |
| 1642 | |
| 1643 | } else { |
| 1644 | return true; |
| 1645 | } |
| 1646 | } |
| 1647 | |
| 1648 | /** |
| 1649 | * 调用 create() 方法后立即引发 _beforeCreate 事件 |
| 1650 | * |
| 1651 | * 如果要阻止 create() 创建记录,该方法应该返回 false,否则返回 true。 |
Array ( )SOURCE CODE:
| 302 | * |
| 303 | * @return boolean |
| 304 | */ |
| 305 | function setDBO(& $dbo) |
| 306 | { |
| 307 | $this->dbo =& $dbo; |
| 308 | |
| 309 | $this->fullTableName = $dbo->dsn['dbTablePrefix'] . $this->tableName; |
| 310 | $this->qtableName = $dbo->qtable($this->fullTableName); |
| 311 | |
| 312 | if (!$this->_prepareMeta()) { |
| 313 | return false; |
| 314 | } |
| 315 | |
| 316 | if (is_array($this->validateRules)) { |
| 317 | foreach ($this->validateRules as $fieldName => $rules) { |
| 318 | $fieldName = strtoupper($fieldName); |
| 319 | if (!isset($this->meta[$fieldName])) { continue; } |
| 320 | foreach ((array)$rules as $ruleName => $rule) { |
| 321 | $this->meta[$fieldName][$ruleName] = $rule; |
| 322 | } |
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
[TRUE_VALUE] => 1
[FALSE_VALUE] => 0
[NULL_VALUE] => NULL
[META_COLUMNS_SQL] => SHOW COLUMNS FROM %s
[dsn] => Array
(
[driver] => mysql
[host] => 172.16.1.103
[login] => root
[password] => 0987654321
[database] => ibb2
[port] =>
[options] =>
[dbTablePrefix] =>
[id] => mysql://root:0987654321@172.16.1.103_/ibb2/
)
[conn] => Resource id #4
[log] => Array
(
[0] => SELECT VERSION()
[1] => SET NAMES 'utf8'
[2] => SHOW COLUMNS FROM `userinfo`
)
[enableLog] => 1
[lasterr] =>
[lasterrcode] =>
[_insertId] =>
[_transCount] => 0
[_transCommit] => 1
)
)
SOURCE CODE: | 279 | // 初始化数据访问对象 |
| 280 | if (!isset($params['dbo'])) { |
| 281 | if (isset($params['dbDSN'])) { |
| 282 | $dbo =& FLEA::getDBO($params['dbDSN']); |
| 283 | } else { |
| 284 | $dbo =& FLEA::getDBO(FLEA::getAppInf('dbDSN')); |
| 285 | } |
| 286 | } else { |
| 287 | $dbo =& $params['dbo']; |
| 288 | } |
| 289 | $this->setDBO($dbo); |
| 290 | |
| 291 | // 当 skipCreateLinks 不为 true 时,建立关联 |
| 292 | if (!isset($params['skipCreateLinks']) || $params['skipCreateLinks'] == false) |
| 293 | { |
| 294 | $this->relink(); |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * 设置数据库访问对象 |
Array ( )SOURCE CODE:
| 332 | } else { |
| 333 | $classExists = class_exists($className); |
| 334 | } |
| 335 | if (!$classExists) { |
| 336 | if (!FLEA::loadClass($className)) { |
| 337 | $return = false; |
| 338 | return $return; |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | $instances[$className] =& new $className(); |
| 343 | FLEA::register($instances[$className], $className); |
| 344 | return $instances[$className]; |
| 345 | } |
| 346 | |
| 347 | /** |
| 348 | * 将一个对象实例注册到对象实例容器 |
| 349 | * |
| 350 | * @param object $obj |
| 351 | * @param string $name |
| 352 | * |
Array
(
[0] => Table_Users
)
SOURCE CODE: | 1 | <?php |
| 2 | class Controller_Yuanlai extends FLEA_Controller_Action { |
| 3 | /** |
| 4 | * 构造函数 |
| 5 | * |
| 6 | * @return Controller_User |
| 7 | */ |
| 8 | function Controller_Yuanlai() { |
| 9 | $this->smarty = & $this->_getView(); |
| 10 | $this->tbUsers =& FLEA::getSingleton('Table_Users'); |
| 11 | $this->tbYp =& FLEA::getSingleton('Table_Yp'); |
| 12 | $this->tbYuser =& FLEA::getSingleton('Table_Yuser'); |
| 13 | $this->tbMessage =& FLEA::getSingleton('Table_Message'); |
| 14 | $this->tbCity =& FLEA::getSingleton('Table_City'); |
| 15 | $this->arrData =& FLEA::getSingleton('Config_ArrData'); //配置数据 |
| 16 | $this->sso =& FLEA::getSingleton('Config_SSO'); //sso接口//发送邮件接口<br /> |
| 17 | mysql_connect("172.16.1.103","root","0987654321"); |
| 18 | mysql_select_db("ibb2"); |
| 19 | mysql_query("SET NAMES 'utf8'"); |
| 20 | |
Array
(
[0] => Yuanlai
)
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')) { |
Array
(
[0] => Yuanlai
[1] => Index
[2] => Controller_Yuanlai
)
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 |
Array ( )SOURCE CODE:
| 638 | require_once($MVCPackageFilename); |
| 639 | } |
| 640 | FLEA::init(); |
| 641 | |
| 642 | // 载入调度器并转发请求到控制器 |
| 643 | $dispatcherClass = FLEA::getAppInf('dispatcher'); |
| 644 | FLEA::loadClass($dispatcherClass); |
| 645 | |
| 646 | $dispatcher =& new $dispatcherClass($_GET); |
| 647 | FLEA::register($dispatcher, $dispatcherClass); |
| 648 | $dispatcher->dispatching(); |
| 649 | } |
| 650 | |
| 651 | /** |
| 652 | * 准备运行环境 |
| 653 | * |
| 654 | * @param boolean $loadMVC |
| 655 | */ |
| 656 | function init($loadMVC = false) |
| 657 | { |
| 658 | static $firstTime = true; |
Array ( )SOURCE CODE:
| 46 | 'template_dir' => SMARTY_PATH . '/templates/', |
| 47 | 'compile_dir' => SMARTY_PATH . '/templates_c/', |
| 48 | 'left_delimiter' => '<{', |
| 49 | 'right_delimiter' => '}>', |
| 50 | 'force_compile' => true |
| 51 | ) |
| 52 | ); |
| 53 | |
| 54 | FLEA::loadAppInf($appInf); |
| 55 | FLEA::import(APP_PATH); |
| 56 | FLEA::runMVC(); |
| 57 | ?> |