mirror of https://github.com/IoTcat/ushio-img.git
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.
14 lines
398 B
14 lines
398 B
4 years ago
|
<?php
|
||
|
include 'common.php';
|
||
|
|
||
|
$panel = $request->get('panel');
|
||
|
$panelTable = unserialize($options->panelTable);
|
||
|
|
||
|
if (!isset($panelTable['file']) || !in_array(urlencode($panel), $panelTable['file'])) {
|
||
|
throw new Typecho_Plugin_Exception(_t('页面不存在'), 404);
|
||
|
}
|
||
|
|
||
|
list ($pluginName, $file) = explode('/', trim($panel, '/'), 2);
|
||
|
|
||
|
require_once $options->pluginDir($pluginName) . '/' . $panel;
|