DDR爱好者之家 Design By 杰米
<?php
/**
* Site Main Page
*
* @author Avenger <avenger@php.net>
* @version $Id 2003-04-11 18:06:20 $
*/
require_once 'header.inc.php';
tpl_load("index.html",'','keep');
// Get u language
$G_lang = explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
switch ($G_lang[0]) {
case 'zh-hk':
case 'zh-tw':
case 'zh-mo':
case 'zh-cn':
include('lang.zh.inc.php');
$indexfile = 'main_zh.htm';
break;
default:
include('lang.en.inc.php');
$indexfile = 'main_en.htm';
}
$filedate = (int)date(time()-@filemtime($indexfile));
// If lastupdate less than five hours then update
if ($filedate<18000 && filesize($indexfile)<>0 && empty($_GET['update'])) {
require($indexfile);
exit();
} else {
// Rand title
require_once 'titles.inc.php';
$currdate = date('md');
if ($title_h[$currdate]) {
$title_more = $title_h[$currdate];
} else {
$title_more = $title_o[array_rand($title_o)];
}
// Import template
$tpl->setVar("FILEHEAD",file_head());
/*
$tpl->setVar("FILEPIC",file_pic('phptshirt.gif','国内首款 PHP T-shirt 火热预定中……','http://www.phpe.net/t-shirt'));
$tpl->setVar("FILEPIC",file_pic('phpandmore.gif','《PHP&More》创刊号发布','http://www.phpe.net/news/34.shtml'));
$tpl->setVar("FILEPIC",file_pic('3.jpg','超越PHP欢迎您',''));
$tpl->setVar("FILEPIC",file_pic('show.gif','Show出你的热情活动 -- 点击查看详情','http://www.phpe.net/club/index.php?act=ST&f=2&t=1416'));
$tpl->setVar("FILEPIC",file_pic('1year.gif','超越PHP一岁了','http://www.phpe.net/club/index.php?s=&act=ST&f=7&t=2419'));
*/
$tpl->setVar("CREATE",date('Y-m-d H:i:s'));
$tpl->setVar("DESC",$lang['sitedesc']);
$tpl->setVar("KEYWORDS",$lang['sitekeywork']);
$tpl->setVar("TITLE",$lang['sitetitle'].$title_more);
/*
DBInit();
extract($dbinfo,EXTR_OVERWRITE);
$rs = $dbconn->Execute('SHOW TABLES');
while ($result = $rs->FetchRow()) $tables .= $result["Tables_in_$dbname"].",";
$SQL = 'OPTIMIZE TABLE '.substr($tables,0,-1);
$dbconn->Execute($SQL);
*/
$indexlogin = '<script type="text/javascript" language="Javascript" src="/UploadFiles/2021-04-02/user_login.php"> $tpl->setVar("INDEXLOGIN",$indexlogin);
$space = '<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td><img src="images/spacer.gif">
ob_start();
//echo item_title($lang['stat'],'98%');
include("index_stat.inc.php");
$tpl->setVar("INDEXCOUNT",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['vote'],'98%');
include("index_vote.inc.php");
$tpl->setVar("INDEXVOTE",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['links'],'98%');
include("index_links.inc.php");
$tpl->setVar("INDEXLINK",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['intro'],'98%');
include("index_intro.inc.php");
$tpl->setVar("INDEXINTRO",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['news'].' '.make_link('/?n=RSS&t=news', '(rss)', '_blank', 'class="en2"'),'98%');
include("index_news.inc.php");
$tpl->setVar("INDEXNEW",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['articles'].' '.make_link('/?n=RSS&t=articles', '(rss)', '_blank', 'class="en2"'),'98%');
include("index_article.inc.php");
$tpl->setVar("INDEXARTICLE",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['recommendtopic'],'98%');
echo '
<table width="98%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<script language="Javascript" type="text/javascript" src="/UploadFiles/2021-04-02/'. $Global['bbs'] .'recommend_topic.php?cid=2,6,15,16,18"></td></tr>
<tr><td bgcolor="#DDDDDD" align="right"><a href="'. $Global['bbs'] .'" title="More...">更多推荐话题 ...</a> </td></tr>
</table>
';
$tpl->setVar("RECOMMENDTOPIC", ob_get_contents());
ob_end_clean();
ob_start();
echo '
<table width="98%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<script language="Javascript" type="text/javascript" src="/UploadFiles/2021-04-02/'. $Global['bbs'] .'recommend_topic.php?cid=13"></td></tr>
<tr><td bgcolor="#DDDDDD" align="right"><a href="'. $Global['bbs'] .'index.php?s=&act=SF&f=13" title="More...">更多招聘信息 ...</a> </td></tr>
</table>
';
$tpl->setVar("HRTOPIC", ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['faqs'].' '.make_link('/?n=RSS&t=faqs', '(rss)', '_blank', 'class="en2"'),'98%');
include("index_faq.inc.php");
$tpl->setVar("INDEXFAQ",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['nav'],'98%');
include("index_sitenav.inc.php");
$tpl->setVar("INDEXNAV",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['tips'],'98%');
include("index_tips.inc.php");
$tpl->setVar("INDEXTIPS",ob_get_contents());
ob_end_clean();
/*
ob_start();
echo item_title($lang['events'],'98%');
$tpl->setVar("INDEXEVENTS",ob_get_contents());
ob_end_clean();
*/
ob_start();
//echo item_title($lang['resouce'],'98%');
include("index_resource.inc.php");
$tpl->setVar("INDEXRESOURCE",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['souwang'],'98%');
echo '
<form action="/search.html" method="get" target="_blank">
互联网上的 php 资源<br>
<input style="width:100px" type="text" class="small" size="20" value="php" name="q">
<input type="submit" value="souwang" class="en1">
</form>
';
$tpl->setVar("INDEXSOUWANG",ob_get_contents());
ob_end_clean();
//$tpl->setVar("INDEXPARTNERS",item_title($lang['partners'],'98%'));
ob_start();
//echo item_title($lang['calendar'],'98%');
include_once "calendar.inc.php";
$c = new Calendar;
echo $c->getCurrentmonthView();
$tpl->setVar("INDEXCALENDAR",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['newtopic'],'98%');
echo '
<table width="95%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<script language="Javascript" type="text/javascript" src="/UploadFiles/2021-04-02/'. $Global['bbs'] .'new_topic.php?cid=2,6,15,16,18"></td></tr>
</table>
';
$tpl->setVar("INDEXFORUM", ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['maillist'],'98%');
echo '
<table>
<tr>
<td align="center">
<form method="post" action="/?n=Maillist">
<font class="en1">Join the mail list:</font>
<input style="width:100px" name="m" type="text" class="small" size="20" maxlength="100" title="加入邮件列表" value="Enter your mail" onFocus="if(this.value==\'Enter your mail\')this.value=\'\';" onBlur="if(this.value==\'\')this.value=\'Enter your mail\';"><br>
<input type="submit" value="Submit" class="en1">
</form>
</td>
</tr>
</table>
';
$tpl->setVar("INDEXMAIL",ob_get_contents());
ob_end_clean();
// My name :)
$s_name='index.php';
$tpl->setVar("SPACE",$space);
$tpl->setVar("FILEFOOT",file_foot());
$tpl->parse('output','main');
$output = $tpl->get("output");
// Rwrite to file
wfile($indexfile,$output);
require($indexfile);
}
?>
/**
* Site Main Page
*
* @author Avenger <avenger@php.net>
* @version $Id 2003-04-11 18:06:20 $
*/
require_once 'header.inc.php';
tpl_load("index.html",'','keep');
// Get u language
$G_lang = explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
switch ($G_lang[0]) {
case 'zh-hk':
case 'zh-tw':
case 'zh-mo':
case 'zh-cn':
include('lang.zh.inc.php');
$indexfile = 'main_zh.htm';
break;
default:
include('lang.en.inc.php');
$indexfile = 'main_en.htm';
}
$filedate = (int)date(time()-@filemtime($indexfile));
// If lastupdate less than five hours then update
if ($filedate<18000 && filesize($indexfile)<>0 && empty($_GET['update'])) {
require($indexfile);
exit();
} else {
// Rand title
require_once 'titles.inc.php';
$currdate = date('md');
if ($title_h[$currdate]) {
$title_more = $title_h[$currdate];
} else {
$title_more = $title_o[array_rand($title_o)];
}
// Import template
$tpl->setVar("FILEHEAD",file_head());
/*
$tpl->setVar("FILEPIC",file_pic('phptshirt.gif','国内首款 PHP T-shirt 火热预定中……','http://www.phpe.net/t-shirt'));
$tpl->setVar("FILEPIC",file_pic('phpandmore.gif','《PHP&More》创刊号发布','http://www.phpe.net/news/34.shtml'));
$tpl->setVar("FILEPIC",file_pic('3.jpg','超越PHP欢迎您',''));
$tpl->setVar("FILEPIC",file_pic('show.gif','Show出你的热情活动 -- 点击查看详情','http://www.phpe.net/club/index.php?act=ST&f=2&t=1416'));
$tpl->setVar("FILEPIC",file_pic('1year.gif','超越PHP一岁了','http://www.phpe.net/club/index.php?s=&act=ST&f=7&t=2419'));
*/
$tpl->setVar("CREATE",date('Y-m-d H:i:s'));
$tpl->setVar("DESC",$lang['sitedesc']);
$tpl->setVar("KEYWORDS",$lang['sitekeywork']);
$tpl->setVar("TITLE",$lang['sitetitle'].$title_more);
/*
DBInit();
extract($dbinfo,EXTR_OVERWRITE);
$rs = $dbconn->Execute('SHOW TABLES');
while ($result = $rs->FetchRow()) $tables .= $result["Tables_in_$dbname"].",";
$SQL = 'OPTIMIZE TABLE '.substr($tables,0,-1);
$dbconn->Execute($SQL);
*/
$indexlogin = '<script type="text/javascript" language="Javascript" src="/UploadFiles/2021-04-02/user_login.php"> $tpl->setVar("INDEXLOGIN",$indexlogin);
$space = '<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td><img src="images/spacer.gif">
ob_start();
//echo item_title($lang['stat'],'98%');
include("index_stat.inc.php");
$tpl->setVar("INDEXCOUNT",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['vote'],'98%');
include("index_vote.inc.php");
$tpl->setVar("INDEXVOTE",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['links'],'98%');
include("index_links.inc.php");
$tpl->setVar("INDEXLINK",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['intro'],'98%');
include("index_intro.inc.php");
$tpl->setVar("INDEXINTRO",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['news'].' '.make_link('/?n=RSS&t=news', '(rss)', '_blank', 'class="en2"'),'98%');
include("index_news.inc.php");
$tpl->setVar("INDEXNEW",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['articles'].' '.make_link('/?n=RSS&t=articles', '(rss)', '_blank', 'class="en2"'),'98%');
include("index_article.inc.php");
$tpl->setVar("INDEXARTICLE",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['recommendtopic'],'98%');
echo '
<table width="98%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<script language="Javascript" type="text/javascript" src="/UploadFiles/2021-04-02/'. $Global['bbs'] .'recommend_topic.php?cid=2,6,15,16,18"></td></tr>
<tr><td bgcolor="#DDDDDD" align="right"><a href="'. $Global['bbs'] .'" title="More...">更多推荐话题 ...</a> </td></tr>
</table>
';
$tpl->setVar("RECOMMENDTOPIC", ob_get_contents());
ob_end_clean();
ob_start();
echo '
<table width="98%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<script language="Javascript" type="text/javascript" src="/UploadFiles/2021-04-02/'. $Global['bbs'] .'recommend_topic.php?cid=13"></td></tr>
<tr><td bgcolor="#DDDDDD" align="right"><a href="'. $Global['bbs'] .'index.php?s=&act=SF&f=13" title="More...">更多招聘信息 ...</a> </td></tr>
</table>
';
$tpl->setVar("HRTOPIC", ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['faqs'].' '.make_link('/?n=RSS&t=faqs', '(rss)', '_blank', 'class="en2"'),'98%');
include("index_faq.inc.php");
$tpl->setVar("INDEXFAQ",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['nav'],'98%');
include("index_sitenav.inc.php");
$tpl->setVar("INDEXNAV",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['tips'],'98%');
include("index_tips.inc.php");
$tpl->setVar("INDEXTIPS",ob_get_contents());
ob_end_clean();
/*
ob_start();
echo item_title($lang['events'],'98%');
$tpl->setVar("INDEXEVENTS",ob_get_contents());
ob_end_clean();
*/
ob_start();
//echo item_title($lang['resouce'],'98%');
include("index_resource.inc.php");
$tpl->setVar("INDEXRESOURCE",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['souwang'],'98%');
echo '
<form action="/search.html" method="get" target="_blank">
互联网上的 php 资源<br>
<input style="width:100px" type="text" class="small" size="20" value="php" name="q">
<input type="submit" value="souwang" class="en1">
</form>
';
$tpl->setVar("INDEXSOUWANG",ob_get_contents());
ob_end_clean();
//$tpl->setVar("INDEXPARTNERS",item_title($lang['partners'],'98%'));
ob_start();
//echo item_title($lang['calendar'],'98%');
include_once "calendar.inc.php";
$c = new Calendar;
echo $c->getCurrentmonthView();
$tpl->setVar("INDEXCALENDAR",ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['newtopic'],'98%');
echo '
<table width="95%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<script language="Javascript" type="text/javascript" src="/UploadFiles/2021-04-02/'. $Global['bbs'] .'new_topic.php?cid=2,6,15,16,18"></td></tr>
</table>
';
$tpl->setVar("INDEXFORUM", ob_get_contents());
ob_end_clean();
ob_start();
//echo item_title($lang['maillist'],'98%');
echo '
<table>
<tr>
<td align="center">
<form method="post" action="/?n=Maillist">
<font class="en1">Join the mail list:</font>
<input style="width:100px" name="m" type="text" class="small" size="20" maxlength="100" title="加入邮件列表" value="Enter your mail" onFocus="if(this.value==\'Enter your mail\')this.value=\'\';" onBlur="if(this.value==\'\')this.value=\'Enter your mail\';"><br>
<input type="submit" value="Submit" class="en1">
</form>
</td>
</tr>
</table>
';
$tpl->setVar("INDEXMAIL",ob_get_contents());
ob_end_clean();
// My name :)
$s_name='index.php';
$tpl->setVar("SPACE",$space);
$tpl->setVar("FILEFOOT",file_foot());
$tpl->parse('output','main');
$output = $tpl->get("output");
// Rwrite to file
wfile($indexfile,$output);
require($indexfile);
}
?>
DDR爱好者之家 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
DDR爱好者之家 Design By 杰米
暂无评论...
更新日志
2024年11月25日
2024年11月25日
- 凤飞飞《我们的主题曲》飞跃制作[正版原抓WAV+CUE]
- 刘嘉亮《亮情歌2》[WAV+CUE][1G]
- 红馆40·谭咏麟《歌者恋歌浓情30年演唱会》3CD[低速原抓WAV+CUE][1.8G]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[320K/MP3][193.25MB]
- 【轻音乐】曼托凡尼乐团《精选辑》2CD.1998[FLAC+CUE整轨]
- 邝美云《心中有爱》1989年香港DMIJP版1MTO东芝首版[WAV+CUE]
- 群星《情叹-发烧女声DSD》天籁女声发烧碟[WAV+CUE]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[FLAC/分轨][748.03MB]
- 理想混蛋《Origin Sessions》[320K/MP3][37.47MB]
- 公馆青少年《我其实一点都不酷》[320K/MP3][78.78MB]
- 群星《情叹-发烧男声DSD》最值得珍藏的完美男声[WAV+CUE]
- 群星《国韵飘香·贵妃醉酒HQCD黑胶王》2CD[WAV]
- 卫兰《DAUGHTER》【低速原抓WAV+CUE】
- 公馆青少年《我其实一点都不酷》[FLAC/分轨][398.22MB]
- ZWEI《迟暮的花 (Explicit)》[320K/MP3][57.16MB]