Your IP : 216.73.216.170


Current Path : /home/zqegovsj/public_html/us3.supplierlist.com/haibo/cn/
Upload File :
Current File : /home/zqegovsj/public_html/us3.supplierlist.com/haibo/cn/global.php

<?php
error_reporting(0);
//error_reporting(E_ALL);

$subdomain_support = 0;//0 or 1
$config_subdomain = ".yourdomain.com";
define('APP_NAME', 'app/');
define('IN_UALINK', true);
require($inc_path .APP_NAME. 'configs/core.php');
require($inc_path .APP_NAME. 'lang/'.$app_lang.'/site.inc.php');
if (!INSTALLED) {
	if(file_exists("install.php")){
		header("Location: install.php?step=-1");
		exit;
	}else{
		die("<a href='./install.php'>".$cfg['lang']['pls_reinstall_program']."</a>!");
	}
}
require($inc_path .APP_NAME. 'configs/db.php');
require($inc_path .APP_NAME. 'include/class.my.smarty.php');
$smarty = new MySmarty($inc_path);
require(LIB_PATH. 'ualink_object.php');
require(LIB_PATH. 'ualink_model.php');
require(LIB_PATH. 'ualink_controller.php');
require($inc_path .APP_NAME. 'include/func.global.php');
uses("keyword","friendlink","userpage");
require_once($inc_path .'version.php');
setvar("UaVersion",UALINK_VERSION);
$userpage = new Userpages();
$keyword = new Keywords();
if(function_exists('date_default_timezone_set')) {
    date_default_timezone_set('PRC');//�ú��ΪPHP5.1����.
}
$time_stamp = time();
setvar("NavItem",$nav);
$media_paths = (STATIC_HTML_LEVEL<2)?$smarty->getRelativePath():$smarty->getAbsolutePath();
uaAssign($media_paths);
$li = (!empty($li))?intval($li):0; $userpage->setLi($li);
$userpage->setUrlContainer(intval(STATIC_HTML_LEVEL));
setvar("UrlContainer", $userpage->getUrlContainer());
$current_li = $userpage->getLi();
$keyword->setCondition($li);
//$topkeywords = $keyword->findAll("Keyword.type AS KeywordType,Keyword.title AS KeywordTitle,Keyword.id AS KeywordId", $keyword->getCondition(),"Keyword.id DESC",0,8);
$topkeywords=array();
uaAssign(array($current_li=>"current", "hotkeys"=>$topkeywords));
$friendlink = new Friendlinks();
$conditions = "status=1";
//$tmp_links = $friendlink->findAll("title AS LinkTitle,url AS LinkUrl,logo as LinkLogo", $conditions, "priority DESC",0,25);
$tmp_links=array();
setvar("SiteLinks", $tmp_links);
$tmp_listspages = $userpage->findAll("ua as title,ub as query_alias,uf as topic,ug as targeturl", null, "ud desc", 0, 15);
$tmp_listspages_s = array("aboutus"=>"<a href=".URL."about/>".$cfg['lang']['aboutus']."</a>", "sitemap"=>"<a href=".URL."sitemap.php>".$cfg['lang']['sitemap']."</a>");
foreach($tmp_listspages as $p_val){
	if(!empty($p_val['targeturl'])) {
		$tmp_listspages_s[] = "<a href=\"".$p_val['targeturl']."\" target=\"_blank\" title=\"".$p_val['title']."\">".$p_val['topic']."</a>";
	}else{
		$tmp_listspages_s[] = "<a href=\"".URL."about/index.php?q=".$p_val['query_alias']."\" target=\"_self\" title=\"".$p_val['title']."\">".$p_val['topic']."</a>";
	}
}
setvar("DefinedPages", implode(" | ", $tmp_listspages_s));
setvar("ForumSet", $forums);
unset($conditions);
$ua_user = getMemberInfo();
if (isset($_GET['action']) && ($_GET['action'])=="html") {
	unset($ua_user);
}


setvar("subdomain", $config_subdomain);
setvar("ThemeName", $theme_name);
setvar("UalinkUser", $ua_user);
require_once($inc_path.'newsection.inc.php');
?>