<?php 


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




 $skinid = "default"; define("CURSCRIPT", "post"); error_reporting(E_ALL); require_once "include/common.inc.php"; require_once SITE_ROOT . "/admin/admin.inc.php"; $action = empty($_GET['action']) ? empty($_POST['action']) ? empty($_COOKIE['loginid']) ? 'login' : 'index' : $_POST['action'] : $_GET['action']; $user_data_dir = SITE_ROOT . "/data/setting/{$site_url}"; if (!file_exists($user_data_dir))mkdir($user_data_dir); $user_cache_dir = SITE_ROOT . "/data/cache/{$site_url}"; if (!file_exists($user_cache_dir)) mkdir($user_cache_dir); $user_upload_dir = SITE_ROOT . "/attachments/{$site_id}"; if (!file_exists($user_upload_dir)) mkdir($user_upload_dir); $user_product_dir = $user_data_dir . "/product"; if (!file_exists($user_product_dir))mkdir($user_product_dir); $user_product_index_file = $user_data_dir . "/product.index.txt"; $user_product_upload_dir = SITE_ROOT . "/attachments/{$site_id}/product"; if (!file_exists($user_product_upload_dir))mkdir($user_product_upload_dir); $setting = cache_read("setting"); extract($setting); unset($password, $domain[$site_url]['password']); if (isset($site_index_url) && !empty($site_index_url)) { $site_home_url = SITE_PATH . "/?{$site_index_url}.html"; } else { $site_home_url = SITE_PATH . "/"; } if($anonymity != '1' || $sys_product_close == '4'){ go_url("http://{$site_url}", "产品系统功能已经关闭，或者匿名发布信息功能已经关闭！"); } $product_category = get_product_category($site_url); $product_setting = get_product_setting($site_url); extract($product_setting); $banner_ad = ''; if ($action == 'product') { require_once SITE_ROOT . "/admin/post_product.inc.php"; } ?>