📄 settings.php
字号:
<?
/*
#------------------------------------------------------#
# 本程序为SHEYI工作室提供 #
# #
# 本程序版权归Sheyi工作室所有!任何人皆可自由 #
# 使用本程序于非商业用途,商业用途必须付费人 #
# 民币200元! #
# #
# 谢谢您使用本程序 sheyi #
# QQ : 1912070 #
# E-mail: sheyee@163.com #
# URL :http://sheyi.126.com #
# #
# 本程序为免费程序,您可以使用本程序,但必须 #
# 保留Sheyi工作室(http://sheyi.126.com)的链接! #
#------------------------------------------------------#
Name: settings.php
*/
// FILE AND FOLDER SETTINGS
$file_execute='./index.php';
$folder_image='./images/';
$folder_download='./download/';
$folder_cmsimple='./cmsimple';
$file_stylesheet=$folder_cmsimple.'/default.css';
$file_settings=$folder_cmsimple.'/settings.php';
$file_content=$folder_cmsimple.'/content.htm';
$file_template=$folder_cmsimple.'/template.htm';
$file_cmsimple=$folder_cmsimple.'/cms.php';
$file_image=$folder_cmsimple.'/image.php';
$file_log=$folder_cmsimple.'/log.txt';
// IMAGES
initvar('image');initvar('highlight');
if ($image!='') {
$menuimagecolor='000000'; // SETTING THE COLOR OF MENUIMAGE
$menuhighlightcolor='808080'; // SETTING THE COLOR OF HIGHLIGHTED MENUIMAGE
include($file_image); exit; }
// USERNAME AND PASSWORD
// !!!IMPORTANT!!! Remember to change password!
$password='sheyi';
$username='sheyi'; // is not used if $usewwwaut is set true;
$usewwwaut=false; // wwwaut is only available at non-MS servers
$no_bckfiles=5;
/* FTP SETTINGS
Set $ftp if you wish to be able to use be able to connect directly by FT.
WARNING: Be sure the cms-folder is protected by the .htacces' deny all
Requires IE>4 or some other application like a newer version of http://www.wsftp.com
Depending on your server, the syntax is:
$ftp='ftp://username:passord@www.domain.dk/../../web/cmsbasefolder/';
or
$ftp='ftp://username:passord@domain.dk/htdocs/cmsbasefolder/'
*/
$ftp='';
// LANGUAGE TEXT SETTINGS
// default language
$text_title['sitemap']='站点地图';
$text_sitemaplink='站点地图';
$text_printlink='打印预览';
$text_submenu='<h4>子栏目</h4>';
$text_title['search']='搜索';
$text_loginlink='登陆';
$text_loginbutton='登陆';
$text_loginwarning='本系统只供正确管理员管理.\nEnter your password:';
$text_searchbutton='搜索';
$text_searchresult='搜索结果';
$text_notfound='没有找到';
$text_foundin='found in';
$text_pgplural='pages';
$text_pgsingular='page';
$text_nextpage='>';
$text_previouspage='<';
$text_title['error401']='Error 401: Unauthorized没有认证';
$text_title['error404']='Error 404: Not found没有发现文件';
// LOCAL LANGUAGE TEXT SETTINGS
// Please mail peter@harteg.dk with localized settings
// Only variables which differs from English need to be set
// $language can be set here
$language='cn';
if ($language=='dk') { // Danish
$text_submenu='<h4>Undermenu</h4>';
$text_title['search']='S鴊';
$text_searchbutton='S鴊';
$text_searchresult='<h1>Resultatet af din s鴊ning</h1>';
$text_notfound='blev ikke fundet';
$text_foundin='blev fundet p?;
$text_pgplural='sider';
$text_pgsingular='side';
$text_title['error401']='Fejl 401: Uautoriseret';
$text_title['error404']='Fejl 404: Ikke Fundet';
}
// EDITOR SETTINGS
// BE AWARE: The values are client side JavaScript - not PHP!
$height='(screen.availHeight)-400';
$editorsettings='
var changemode="This function is only available in layout mode.\nDo you want to change mode?";
var btns = [
["ilink","Insert the selected link","Insert the selected hyperlink from selectbox"],
[""],
["iimage","Insert the selected image","Insert the selected hyperlink from selectbox"],
["tr"],
["save", "Save", "Saves this document"],
[""],
["selectall", "Select all (Ctrl+A)", "Select the entire document"],
["cut", "Cut (Ctrl+X)", "Cut the selection to the clipboard"],
["copy", "Copy (Ctrl+C)", "Copy the selection to the clipboard"],
["paste", "Paste (Ctrl+V)", "Insert clipboard contents"],
[""],
["undo", "Undo (Ctrl+Z)", "Undo the last action"],
["redo", "Redo (Ctrl+Y)", "Redo the previously undone action"],
[""],
["html", "Change mode", "Change between lay-out and HTML mode"],
[""],
["justifyleft", "Justify left", "Apply left justification"],
["justifycenter", "Center", "Apply centered justification"],
["justifyright", "Justify right", "Apply right justification"],
[""],
["createlink", "Create or edit hyperlink", "Create or edit hyperlink"],
["unlink", "Remove hyperlink", "Remove the selected hyperlink"],
["tr"],
["h1", "Heading 1", "Format selected paragraph(s) as Heading 1"],
["h2", "Heading 2", "Format selected paragraph(s) as Heading 2"],
["h3", "Heading 3", "Format selected paragraph(s) as Heading 3"],
["h4", "Heading 4", "Format selected paragraph(s) as Heading 4"],
["p", "Paragraph", "Format as normal paragraph level"],
[""],
["bold", "Bold", "Format with bold font style"],
["italic", "Italic", "Format with italic font style"],
["underline", "Underlined", "Format with underlined font style"],
[""],
["insertunorderedlist", "Unsorted list", "Create or remove unsorted list"],
["insertorderedlist", "Ordered list", "Create or remove ordered list"],
[""],
["outdent", "Decrease indentation", "Decrease the indentation of selected text"],
["indent", "Increase indentation", "Increase the indentation of selected text"]
]
';
// Tablestart used in tables
$tablestart='<table width="100%" cellpadding="1" cellspacing="0" border="0">';
// SOME FUNCTIONS NEEDED IN THIS SCRIPT
function initvar($name) {if (!isset($GLOBALS[$name])) {if (isset($_GET[$name])) $GLOBALS[$name]=$_GET[$name]; else if (isset($_POST[$name])) $GLOBALS[$name]=$_POST[$name]; else $GLOBALS[$name]=''; }}
function servervar($s) {
global $HTTP_SERVER_VARS; // if phpversion() above 4.1 use $_SERVER
if (isset($HTTP_SERVER_VARS[$s])) return $HTTP_SERVER_VARS[$s]; else return '';
}
// The script goes on...
include($file_cmsimple);
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -