-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththemeseditor-master_setting.php
More file actions
37 lines (30 loc) · 1.3 KB
/
themeseditor-master_setting.php
File metadata and controls
37 lines (30 loc) · 1.3 KB
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
34
35
36
37
<?php
/**
* themeseditor_setting.php
* design by GodSon
*/
!defined('EMLOG_ROOT') && exit('access deined!');
require_once 'themeseditor-master_function.php';
function plugin_setting_view() {
if (!is_writable(EMLOG_ROOT . '/content/templates')) {
emMsg('主题文件不可写。如果您使用的是Unix/Linux主机,请修改主题目录 (content/templates) 下所有文件的权限为777。如果您使用的是Windows主机,请联系管理员,将该目录下所有文件设为everyone可写');
}
$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-master/themeseditor-master_setting_view.php');
}
function plugin_setting() {
}