fix bug : share file view error.
parent
d4c53e0cae
commit
b7227885b3
File diff suppressed because one or more lines are too long
|
@ -45,22 +45,21 @@ class Application {
|
|||
* @param $class , controller类名。
|
||||
* @param $function , 方法名
|
||||
*/
|
||||
public function appRun($class,$function){
|
||||
public function appRun($className,$function){
|
||||
$subDir = $this -> subDir ? $this -> subDir . '/' : '';
|
||||
$classFile = CONTROLLER_DIR . $subDir.$class.'.class.php';
|
||||
$className = $class;//.'Controller'
|
||||
$classFile = CONTROLLER_DIR . $subDir.$className.'.class.php';
|
||||
Hook::filter('Application.appRun',$classFile);
|
||||
if (!file_exists_case($classFile)) {
|
||||
show_tips($class.' controller '.LNG("not_exists"),APP_HOST,3);
|
||||
show_tips($className.' controller '.LNG("not_exists"),APP_HOST,5);
|
||||
}
|
||||
|
||||
include_once($classFile);
|
||||
if (!class_exists($className)) {
|
||||
include_once($classFile);
|
||||
}
|
||||
if (!class_exists($className)) {
|
||||
show_tips($className.' class '.LNG("not_exists"),APP_HOST,3);
|
||||
show_tips($className.' class '.LNG("not_exists"),APP_HOST,5);
|
||||
}
|
||||
$instance = new $className();
|
||||
if (!method_exists($instance, $function)) {
|
||||
show_tips($function.' method '.LNG("not_exists"),APP_HOST,3);
|
||||
show_tips($function.' method '.LNG("not_exists"),APP_HOST,5);
|
||||
}
|
||||
return $instance -> $function();
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/* power by kodexplorer ver 4.39(2019-03-07) [build 1551958486.9919] */
|
||||
/* power by kodexplorer ver 4.39(2019-03-12) [build 1552382254.047] */
|
||||
@import url('./fileIcon.css');
|
||||
@import url('./common.css');
|
||||
.frame-main{position:absolute;top:40px;width:100%;bottom:0px;}.frame-main .tools-left{background:#f8f8f8 url("../../../images/common/bg.gif") 0 0px;position:fixed;line-height:30px;padding-left:20px;height:28px;border-bottom:1px solid #ddd;left:0;width:100%;}.frame-main .tools-left a{font-size:1.25em;font-weight:800;text-decoration:none;color:#999;text-shadow:0 0 3px;display:inline-block;padding:2px 6px;margin-top:0;height:20px;line-height:20px;}.frame-main .tools-left a:hover{background:url("../../../images/common/buttons_40.png") 0 0px repeat-x;-webkit-box-shadow:0 2px 8px rgba(0,0,0,0.8);-moz-box-shadow:0 2px 8px rgba(0,0,0,0.8);box-shadow:0 2px 8px rgba(0,0,0,0.8);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}.frame-main .frame-left{position:absolute;left:0;top:30px;bottom:0;width:200px;background:#fff;background-attachment:fixed;overflow:auto;}.frame-main .frame-left .ztree{margin-top:0;}.frame-main .frame-left .ztree li.level0{margin-bottom:5px;}.frame-main .frame-resize{width:10px;cursor:col-resize;z-index:100;position:absolute;left:195px;top:0;bottom:0;overflow:hidden;background:url("../../../images/common/resize.png") 0px 50% no-repeat;}.frame-main .frame-resize.active{background:#000;opacity:0.2;filter:alpha(opacity=20);}.frame-main .frame-right{left:200px;right:0;position:absolute;top:0;bottom:0;overflow:auto;}.frame-main .frame-right .frame-right-main .resize-mask{z-index:999;position:absolute;left:0;top:0;bottom:0;right:0;display:none;}.frame-main .frame-right .frame-right-main .frame{height:100%;border-left:1px solid #ddd;overflow:hidden;}
|
||||
/* ver 4.39(2019-03-07) [build 1551958486.9919] */
|
||||
/* ver 4.39(2019-03-12) [build 1552382254.047] */
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue