<?php 


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




 chdir(dirname(getcwd())); require_once "include/common.inc.php"; $setting = cache_read("setting"); extract($setting); if (isset($site_index_url) && !empty($site_index_url)) { $site_home_url = SITE_PATH . "/?{$site_index_url}.html"; } else { $site_home_url = SITE_PATH . "/"; } $db = new txtSQL('./data/siteteam'); $db->connect("root", "siteteam"); $article_list = $db->execute("select", array('db' => dbname($site_id), 'select' => array('*'), 'table' => 'sm_article')); $product_list = $db->execute("select", array('db' => dbname($site_id), 'select' => array('*'), 'table' => 'sm_product')); $db->disconnect(); if (file_exists("./gzdata/{$site_id}_data.gz") && file_exists("./gzdata/{$site_id}_key.txt")) { $temp = explode(";", file_get_contents("./gzdata/{$site_id}_key.txt")); foreach ($temp as $k => $v) { $v = explode(',', $v); $article_data[$v[0]]['id'] = $v[0]; $article_data[$v[0]]['url'] = $v[1]; $article_data[$v[0]]['keywords'] = $v[2]; $article_data[$v[0]]['seek'] = $v[3]; $article_data[$v[0]]['len'] = $v[4]; } unset($temp); shuffle($article_data); while (count($article_data) > 100) { array_pop($article_data); } } else { $article_data = array(); } ob_start(); include SITE_ROOT . "/archives/html.tpl.php"; $html = ob_get_clean(); echo url_rewrite($html); ?>
