异常的详细内容:
Array
(
[0] =>
)
SOURCE CODE: | 4 | /** |
| 5 | * @author |
| 6 | * @version 1.0 |
| 7 | * @created 2008-04-10 12:08:14 |
| 8 | */ |
| 9 | class Dal_FrontDefault extends Dac_Default //implements Dal_iEditInterface |
| 10 | { |
| 11 | |
| 12 | function __construct() |
| 13 | { |
| 14 | parent::__construct(''); |
| 15 | } |
| 16 | |
| 17 | function __destruct() |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | public static function FindMenu($Father_Id){ |
| 22 | $SQL = "SELECT * FROM down_resource_class WHERE resource_parent_id = $Father_Id ORDER BY resource_class_id ASC"; |
| 23 | $ret = self::QueryArray($SQL); |
| 24 | foreach ($ret as $k=>$v){ |
Array ( )SOURCE CODE:
| 200 | * param @condtion |
| 201 | * param @table_name |
| 202 | */ |
| 203 | public static function updataInfo($array_update,$condtion,$table_name){ |
| 204 | $Dal = New Dal_FrontDefault(); |
| 205 | return $Dal->updataInfo($array_update,$condtion,$table_name); |
| 206 | } |
| 207 | |
| 208 | public static function Research(){ |
| 209 | |
| 210 | $Dal = New Dal_FrontDefault(); |
| 211 | return $Dal->Research(); |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * |
| 216 | * keyword |
| 217 | */ |
| 218 | public static function keycount($keyword,$Research){ |
| 219 | $Dal = New Dal_FrontDefault(); |
| 220 | $str=""; |
Array ( )SOURCE CODE:
| 25 | function Controller_Base() { |
| 26 | $this->Config = include(CACHE_PATH.'/Config.cache.php'); //读缓存 |
| 27 | $this->SelectMenu = include(CACHE_PATH.'/SelectMenu.cache.php');//查找出主题资源的分类 |
| 28 | $this->ViewData['SiteTitle'] = $this->Config['SiteTitle']; |
| 29 | $this->ViewData['Metakeywords'] = $this->Config['Metakeywords']; |
| 30 | $this->ViewData['MetaDescription'] = $this->Config['MetaDescription']; |
| 31 | $this->ViewData['MaxUploadFileSize'] = $this->Config['MaxUploadFileSize']; |
| 32 | $this->ViewData['UploadPath'] = $this->Config['UploadPath']; |
| 33 | $this->ViewData['UesrDownlLoadLimit'] = $this->Config['UesrDownlLoadLimit']; |
| 34 | $this->ViewData['MemberDownlLoadLimit'] = $this->Config['MemberDownlLoadLimit']; |
| 35 | $this->ViewData['research'] = Model_Front_Default::Research(); |
| 36 | $this->ViewData['tag'] = Model_Front_Default::FindTag(array('tag_isshow'=>0),0,30,array('tag_sort'=>'desc')); |
| 37 | $this->ViewData['BottomInfo'] = $this->Config['BottomInfo']; |
| 38 | $this->ViewData['DiscuzUrl'] = $this->Config['DiscuzUrl']; |
| 39 | $this->ViewData['ApiPrivateKey'] = $this->Config['ApiPrivateKey']; |
| 40 | $this->ViewData['SiteUrl'] = $this->Config['SiteUrl']; |
| 41 | $array_link=Model_Front_Default::Link(); |
| 42 | $this->ViewData['Link'] = $array_link['pic']; |
| 43 | $this->ViewData['StaticResPath'] = "http://img1.dzart.net:81/View/Default";//图片静态路径 |
| 44 | $this->ViewData['UploadResPath'] = "http://img1.dzart.net:81";//上传图片静态路径 |
| 45 | $this->ViewData['Link_title'] = $array_link['title']; |
Array ( )SOURCE CODE:
| 14 | |
| 15 | |
| 16 | /** |
| 17 | * 构造函数 |
| 18 | * |
| 19 | * 负责设置一些共同变量 |
| 20 | * |
| 21 | * @return Controller_Front_Base |
| 22 | */ |
| 23 | function Controller_Front_Base() { |
| 24 | parent::__construct(); |
| 25 | } |
| 26 | |
| 27 | |
| 28 | } |
| 29 | ?> |
Array
(
[0] => Front_Default
)
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')) { |
Array
(
[0] => Front_Default
[1] => View
[2] => Controller_Front_Default
)
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 | |
Array ( )SOURCE CODE:
| 791 | require_once($MVCPackageFilename); |
| 792 | } |
| 793 | FLEA::init(); |
| 794 | |
| 795 | // 载入调度器并转发请求到控制器 |
| 796 | $dispatcherClass = FLEA::getAppInf('dispatcher'); |
| 797 | FLEA::loadClass($dispatcherClass); |
| 798 | |
| 799 | $dispatcher =& new $dispatcherClass($_GET); |
| 800 | FLEA::register($dispatcher, $dispatcherClass); |
| 801 | $dispatcher->dispatching(); |
| 802 | } |
| 803 | |
| 804 | /** |
| 805 | * 准备运行环境 |
| 806 | * |
| 807 | * @param boolean $loadMVC |
| 808 | */ |
| 809 | public static function init($loadMVC = false) |
| 810 | { |
| 811 | static $firstTime = true; |
Array ( )SOURCE CODE:
| 8 | require('./client/client.php'); |
| 9 | |
| 10 | date_default_timezone_set('Asia/ChongQing'); |
| 11 | //set_error_handler('RuntimeErrorHander'); |
| 12 | //$appInf['defaultController'] = 'Front_Default'; |
| 13 | $appInf['defaultController'] = 'Front_Index'; |
| 14 | $appInf['dispatcherFailedCallback'] = 'onDispatcherFailedCallback'; |
| 15 | $appInf['dispatcherAuthFailedCallback'] = 'onDispatcherAuthFailedCallback'; |
| 16 | FLEA::import(APP_DIR); |
| 17 | FLEA::loadAppInf($appInf); |
| 18 | FLEA::runMVC(); |
| 19 | |
| 20 | function onDispatcherFailedCallback($controllerName, $actionName) |
| 21 | { |
| 22 | echo "<p style='line-height:30px;padding:30px;font-size:14px'>请求失败!</p>"; |
| 23 | } |
| 24 | function onDispatcherAuthFailedCallback($controllerName, $actionName) |
| 25 | { |
| 26 | echo "<p style='line-height:30px;padding:30px;font-size:14px'>没有操作权限!</p>"; |
| 27 | } |