mirror of
https://git.beihong.wang/wangbeihong/blog-source.git
synced 2026-04-23 09:23:05 +08:00
15 lines
381 B
PHP
Executable File
15 lines
381 B
PHP
Executable File
<?php
|
|
|
|
include 'common.php';
|
|
|
|
$panel = $request->get('panel');
|
|
$panelTable = $options->panelTable;
|
|
|
|
if (!isset($panelTable['file']) || !in_array(urlencode($panel), $panelTable['file'])) {
|
|
throw new \Typecho\Plugin\Exception(_t('页面不存在'), 404);
|
|
}
|
|
|
|
[$pluginName, $file] = explode('/', trim($panel, '/'), 2);
|
|
|
|
require_once $options->pluginDir($pluginName) . '/' . $file;
|