//
// TorrentHane
// $LastChangedDate: 2011-11-17 00:13:07 +0000 (Thu, 17 Nov 2011) $
// $LastChangedBy: dj-howarth1 $
//
// http://www.torrenthane.in
//
//
require_once("backend/functions.php");
dbconn(true);
stdhead(T_("HOME"));
//check
if (file_exists("check.php") && $CURUSER["class"] == 7){
show_error_msg("WARNING", "Check.php still exists, please delete or rename the file as it could pose a security risk
View Check.php - Use to check your config!
",0);
}
//Site Notice
if ($site_config['SITENOTICEON']){
begin_frame(T_("NOTICE"));
echo $site_config['SITENOTICE'];
end_frame();
}
//Site News
if ($site_config['NEWSON'] && $CURUSER['view_news'] == "yes"){
begin_frame(T_("NEWS"));
$res = SQL_Query_exec("SELECT news.id, news.title, news.added, news.body, users.username FROM news LEFT JOIN users ON news.userid = users.id ORDER BY added DESC LIMIT 10");
if (mysql_num_rows($res) > 0){
print("\n");
$news_flag = 0;
while($array = mysql_fetch_assoc($res)){
if (!$array["username"])
$array["username"] = T_('UNKNOWN_USER');
$numcomm = get_row_count("comments", "WHERE news='".$array['id']."'");
// Show first 2 items expanded
if ($news_flag < 2) {
$disp = "block";
$pic = "minus";
} else {
$disp = "none";
$pic = "plus";
}
print("
");
print(" ". $array['title'] . " - ".T_("POSTED").": " . date("d-M-y", utc_to_tz_time($array['added'])) . " ".T_("BY").": $array[username]");
print("
");
$news_flag++;
}
print("
\n");
}else{
echo "
".T_("NO_NEWS")."";
}
end_frame();
}
if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes')){
begin_frame(T_("SHOUTBOX"));
echo '';
printf(T_("SHOUTBOX_REFRESH"), 5)."
";
end_frame();
}
// latest torrents
begin_frame(T_("LATEST_TORRENTS"));
print("
".T_("BROWSE_TORRENTS")." - ".T_("SEARCH_TORRENTS")."
");
if ($site_config["MEMBERSONLY"] && !$CURUSER) {
echo "
".T_("BROWSE_MEMBERS_ONLY")."
";
} else {
$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, categories.image AS cat_pic, categories.parent_cat AS cat_parent, users.username, users.privacy, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE visible = 'yes' AND banned = 'no' ORDER BY id DESC LIMIT 10";
$res = SQL_Query_exec($query);
if (mysql_num_rows($res)) {
torrenttable($res);
}else {
print("");
print("".T_("NOTHING_FOUND")."");
print("");
print T_("NO_UPLOADS");
print("");
print("");
}
if ($CURUSER)
SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");
}
end_frame();
stdfoot();
?>
Şu PHP Kodlarının neresine meta-description-keywords eklemem gerekiyor ? yardımcı olabilecek varmı ?