模块评估module5,php core模块,module.php

 2023-09-25 阅读 18 评论 0

摘要:/*** --------------------------------------------------------------------模块评估module5、* MCore精简框架* 作者:阿枫,QQ:52037872,Email:support@mdeve.com* --------------------------------------------------------------

/**

* --------------------------------------------------------------------

模块评估module5、* MCore精简框架

* 作者:阿枫,QQ:52037872,Email:support@mdeve.com

* --------------------------------------------------------------------

core模块。*

* SVN revision information:

* @version $Revision: 1 $:

php组件?* @author $Author: zy $:

* @date $Date: 2017-03-10 21:12:21 +0800 (星期五, 10 三月 2017) $:

*/

模块?chdir("../");

require dirname(__FILE__). '/runtime.php';

global $_M, $m, $a, $ext, $f, $args, $page;

php html?$m = htmlspecialchars(filter_input(INPUT_GET, "m"));// module

$a = htmlspecialchars(filter_input(INPUT_GET, "a"));// action

$ext = htmlspecialchars(filter_input(INPUT_GET, "ext"));// ext

php模板引擎?$args = htmlspecialchars(filter_input(INPUT_GET, "args"));

$page = intval(filter_input(INPUT_GET, "page", FILTER_SANITIZE_NUMBER_INT));

if(!strlen($m)) $m = "index";

module模块。if(!strlen($a)) $a = "main";

if($page<1) $page = 1;

if($_M->cfg["module_enable"]) module_insert_code('module_start');

require_once CORE_PATH. '/class/base.php';

$f = dirname(dirname(__FILE__)). "/module/common/". strtolower($m). ".module.php";

if($_M->cfg["module_enable"]) module_insert_code('module_proc');

if(file_exists($f)){

require $f;

$mod = "_". ucfirst($m)."Class";

$module = new $mod();

if(!method_exists($module, $a)) $a = "_". $a;

$module->$a();

}else{

halt("Module {$m} not found!");

//header("Location: /static/404.html");

exit;

}

一键复制

编辑

Web IDE

原始数据

按行查看

历史

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/1/95583.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息