|
|

<?php
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//File: root.php
//Author: TZNKTG
//Purpose: This page is modify website information of base setting
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TZNKTG == 'OK' or exit('Forbidden');
if($submit)
{
$cache = "";
foreach($editroot as $key=>$val)
{
$cache .= "\t\t\t'".$key."' => \"".$val."\",\r\n";
}
writeover(R_P."data/root.php","<?php\r\n\$rootindex = array(\r\n".$cache.");\r\n?>"); adminmsg();
}
include admintemp('header');
$form->header(array(
"title" => "网站的基本设置",
"action" => "index.php?action=root"
));
$form->input(array(
"notel" => "网站名称:",
"name" => "editroot[website_name]",
"value" => $rootindex['website_name']
));
$form->input(array(
"notel" => "网站地址:",
"name" => "editroot[siteurl]",
"value" => $rootindex['siteurl'],
"noter" => " 请不要以 / 结尾",
));
$form->input(array(
"notel" => "网站标题:",
"name" => "editroot[title]",
"value" => $rootindex['title']
));
$form->input(array(
"notel" => "技术支持中文名称:",
"name" => "editroot[cnts]",
"value" => $rootindex['cnts']
));
$form->input(array(
"notel" => "技术支持英文名称:",
"name" => "editroot[ents]",
"value" => $rootindex['ents']
));
$form->input(array(
"notel" => "技术支持邮箱:",
"name" => "editroot[temail]",
"value" => $rootindex['temail'],
//"noter" => " 请不要以 / 结尾",
));
/*
$form->input(array(
"notel" => "程序相对站点根目录路径:",
"name" => "editroot[path]",
"value" => $rootindex['path'],
"noter" => " 如根目录: / ,可留空",
));
*/
$form->input(array(
"notel" => "每页记录条数:",
"name" => "editroot[pagesize]",
"value" => $rootindex['pagesize']
));
$form->input(array(
"notel" => "网站版本号:",
"name" => "editroot[version]",
"value" => $rootindex['version']
));
$form->input(array(
"notel" => "数据库备份前缀",
"name" => "editroot[dbbak_prefix]",
"value" => $rootindex['dbbak_prefix'],
// "noter" => "用户提交网址使用文本存储于data/post"
));
$form->radio(array(
"notel" => "数据库是否使用持久连接:",
"name" => "editroot[pconnect]",
"select" => $rootindex['pconnect']
));
$form->footer();
include admintemp('footer');
?> |
|