phpweb程序全网最烂大家都知道 这里就不吐槽了

我们都清楚phpweb正常编辑是拖动式的 运行的HTML和CSS 并且一个类的页面加的模块不能区分运行 很是恼火

我们拿自定义内容模块举例 其他的模块雷同
原读取模版路径:/www/diy/templates/
PHP调用函数地址:/www/diy/module/
找到对应的模块进行修改
修改后代码如下:
<?php

/*
[插件名称] 自由编辑区域
[适用范围] 全站
*/

function Edit(){

$adminlia = $_SERVER[‘REQUEST_URI’];
$coltitle=$GLOBALS[“PLUSVARS”][“coltitle”];
switch($adminlia){
case “/product/class/index.php?1.html”:
$tempname=’../templates/adminli/tpl_edit1.php’;
break;

case “/product/class/index.php?2.html”:
$tempname=’../templates/adminli/tpl_edit2.php’;
break;

case “/product/class/index.php?3.html”:
$tempname=’../templates/adminli/tpl_edit3.php’;
break;

default:
$tempname=’../templates/tpl_edit.php’;

}
$body=$GLOBALS[“PLUSVARS”][“body”];

$Temp=LoadTemp($tempname);

$var=array(
‘coltitle’ => $coltitle,
‘body’ => $body
);

$str=ShowTplTemp($Temp,$var);

return $str;

}

?>
$tempname是调用地址 其他的需要该返回的返回(原调用phpweb的函数 进行改写即可)
HTTP协议可以通过httpwatch工具抓取或者php函数抓取并进行判断通过函数进行返回
加进入自定义样式类似页雷同怎么办?
那我们可以再用css class 进行判断。
这个案例很简单的啦~~

发表回复