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.
13 lines
398 B
13 lines
398 B
<?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;
|
|
|