-
Notifications
You must be signed in to change notification settings - Fork 0
/
themeseditor_setting.php
33 lines (26 loc) · 1.07 KB
/
themeseditor_setting.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
!defined('EMLOG_ROOT') && exit('access deined!');
require_once 'themeseditor_function.php';
function plugin_setting_view() {
if (!is_writable(EMLOG_ROOT . '/content/templates')) {
emMsg('主题文件不可写');
}
$themeName = isset($_GET['themeName']) ? $_GET['themeName'] : THEMESEDITOR_CTHEME;
$themeseditor_theme_list = getThemsList();
$themeseditor_theme_files = getThemFileList($themeName);
if (isset($_GET['themeFileName']) && isset($_GET['themeName'])) {
$themeFileName = $_GET['themeFileName'];
} elseif (isset($_GET['themeName'])) {
$themeFileName = $themeseditor_theme_files[0];
} else {
$themeFileName = THEMESEDITOR_CFILE;
}
if (isset($_GET['themeFileName'])) {
themeseditor_setting_config($themeName, $themeFileName, null);
}
$themeseditor_theme_content = getThemFileContent($themeName, $themeFileName);
$mode = getEditorMode($themeName, $themeFileName);
include(EMLOG_ROOT . '/content/plugins/themeseditor/themeseditor_setting_view.php');
}
function plugin_setting() {
}