<?php 


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




if(!defined('IN_SITETEAM')) { exit('Access Denied'); } $settingfile = SITE_ROOT . "/data/setting/{$site_url}/article.setting.txt"; $defaultsettingfile = SITE_ROOT . "/data/default.article.setting.txt"; $content['body_name'] = array("type"=>"varchar", "length" => "90", "name" => "文章默认标题", "class" => "txt", "description" => ""); $content['body_title'] = array("type"=>"varchar", "length" => "90", "name" => "文章默认描述", "class" => "txt", "description" => ""); $content['sidebar_name'] = array("type"=>"varchar", "length" => "90", "name" => "边栏名字", "class" => "txt", "description" => ""); $content['top_title'] = array("type"=>"varchar", "length" => "90", "name" => "顶部标题宣传语", "class" => "txt", "description" => ""); $content['top_description'] = array("type"=>"varchar", "length" => "1024", "name" => "顶部标题宣传语简述", "class" => "tarea", "description" => ""); $seo['seo_title'] = array("type"=>"varchar", "length" => "90", "name" => "SEO标题", "class" => "txt", "description" => ""); $seo['seo_description'] = array("type"=>"varchar", "length" => "90", "name" => "SE0描述", "class" => "txt", "description" => ""); $seo['seo_keywords'] = array("type"=>"varchar", "length" => "90", "name" => "SEO关键词", "class" => "txt", "description" => ""); if (!empty($_POST['dosubmit'])) { $savedata = $_POST['data']; save_array_file($savedata, $settingfile); cache_update("setting"); go_url("admin.php?action=article&operation=setting"); } else { 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; if (array_key_exists($k, $seo)) $seo[$k]['value'] = $v; } include "admin/tpl/article_setting.tpl.php"; } ?>