www.gusucode.com > HadSky PHP轻论坛系统源码 v2.4.2源码程序 > ytqlt_v2.4.2.0701/phpscript/plug.php
<?php if (!defined('puyuetian')) exit('Not Found puyuetian!Please contact QQ632827168'); $plugname = Cstr(strtolower($_GET['plugname']), false, $_G['STRING']['LOWERCASE'] . $_G['STRING']['NUMERICAL'] . '_:', 3, 100); if ($plugname) { $plugname = explode(':', $plugname); if (count($plugname) == 2) { $_G['SYSTEM']['PLUGDIR'] = $plugname[0]; $_G['SYSTEM']['PLUGFILE'] = $plugname[1]; $_G['SYSTEM']['PLUGPATH'] = "{$_G['SYSTEM']['PATH']}/phpscript/plug/{$_G['SYSTEM']['PLUGDIR']}/{$_G['SYSTEM']['PLUGFILE']}.php"; if (file_exists($_G['SYSTEM']['PLUGPATH'])) { require $_G['SYSTEM']['PLUGPATH']; } else { $_G['HTMLCODE']['TIP'] = "不存在的插件或已被删除!"; $_G['HTMLCODE']['OUTPUT'] .= template('tip', true); } } else { $_G['HTMLCODE']['TIP'] = "非法的插件请求!"; $_G['HTMLCODE']['OUTPUT'] .= template('tip', true); } } else { $_G['HTMLCODE']['TIP'] = "非法的请求参数!"; $_G['HTMLCODE']['OUTPUT'] .= template('tip', true); }