You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

2 years ago
<?php
/**
* [Laike System] Copyright (c) 2017-2020 laiketui.com
* Laike is not a free software, it under the license terms, visited http://www.laiketui.com/ for more details.
*/
require_once(MO_WEBAPP_DIR . "/plugins/PluginInputView.class.php");
class IndexInputView extends SmartyView {
public function execute() {
$request = $this->getContext()->getRequest();
$className = $request->getAttribute("c") ; //调用哪个类文件
$pluginName = $request->getAttribute("p") ; //插件名称,文件名
if($pluginName){
$path = MO_WEBAPP_DIR."/_compile/pi/";
if(is_dir($path)){
$p = scandir($path);
foreach ($p as $val) {
if ($val != "." && $val != "..") {
unlink($path . $val);
}
}
}
require_once(MO_WEBAPP_DIR."/plugins/".$pluginName."/admin/views/".$className."InputView.class.php");
$className = $className."InputView";
$pluginview = new $className($this,$pluginName);
$pluginview->execute();
}
}
}
?>