<?php 


/** 
***************************************************
*欢迎使用免费版SiteTeam企业建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.SiteTeam.cn 
***************************************************
**/




if(!defined('IN_SITETEAM')) { exit('Access Denied'); } $settingfile = SITE_ROOT . "/data/setting/{$site_url}/start.txt"; $defaultsettingfile = SITE_ROOT . "/data/default.start.txt"; if (!empty($_POST['dosubmit'])) { $savedata = $_POST['data']; save_array_file($savedata, $settingfile); del_cache('first'); go_url("admin.php?action=start"); } else { $content['site_start_html'] = array("type"=>"varchar", "length" => "20000", "editor" => "tiny_mce", "name" => '网站封面HTML代码<a style="cursor:hand" onclick="create_editor(\'site_start_html\');">[开]</a><a style="cursor:hand" onclick="close_editor();">[关]</a><a target="_blank" href="http://ps.net.cn">[图]</a>', "class" => "editcontent", "description" => '必填项'); $content['site_start_css'] = array("type"=>"varchar", "length" => "20000", "editor" => "tiny_mce", "name" => "网站封面CSS内容", "class" => "editcontent", "description" => "选填项"); $content['site_start_head_js_code'] = array("type"=>"varchar", "length" => "20000", "editor" => "tiny_mce", "name" => "网站封面头部所要的", "class" => "editcontent", "description" => "选填项"); $content['site_start_body_js_code'] = array("type"=>"varchar", "length" => "20000", "editor" => "tiny_mce", "name" => "网站封面尾部所要的JS代码", "class" => "editcontent", "description" => "选填项"); $content['seo_title'] = array("type"=>"varchar", "length" => "90", "name" => "SEO标题", "class" => "txt", "description" => ""); $content['seo_description'] = array("type"=>"varchar", "length" => "90", "name" => "SE0描述", "class" => "txt", "description" => ""); $content['seo_keywords'] = array("type"=>"varchar", "length" => "90", "name" => "SEO关键词", "class" => "txt", "description" => ""); if (file_exists($settingfile) && filesize($settingfile) > 0) { $form = read_array_file($settingfile); } else { $form = read_array_file($defaultsettingfile); } if (is_array($form) && count($form) > 0) foreach ($form as $k => $v) { if (array_key_exists($k, $content)) $content[$k]['value'] = $v; } include "admin/tpl/start.tpl.php"; } ?>