Here is my index.php all the sections have been put in a different folder you can then place these anywhere by using the code from the index.
You can also config which ones you want to share, the mods recommended and vip only torrents are added but you can turn this off in config if you dont have them.
Replace all index.php with
Add to backend/config.php
Create root folder called pages
Upload index folder into pages folder
You can also config which ones you want to share, the mods recommended and vip only torrents are added but you can turn this off in config if you dont have them.
Replace all index.php with
<?php
require_once($_SERVER["DOCUMENT_ROOT"]."/backend/functions.php");
dbconn(true);
loggedinonly();
stdhead(T_("HOME"));
//check
if (file_exists($_SERVER["DOCUMENT_ROOT"]."/check.php") && $CURUSER["class"] == 11){
show_error_msg("WARNING", "Check.php still exists, please delete or rename the file as it could pose a security risk<br /><br /><a href='/check.php'>View Check.php</a> - Use to check your config!<br /><br />",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"){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/news.php");
}
// Shoutbox
if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes')){
begin_frame(T_("SHOUTBOX"));
echo '<iframe name="shout_frame" src="'.$site_config["SITEURL"].'/shoutbox.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="210" scrolling="no" align="middle"></iframe>';
printf(T_("SHOUTBOX_REFRESH"), 5)."<br />";
end_frame();
}
// Scroller
if ($site_config['SCROLLER']){
begin_frame(T_("LATEST_TORRENTS_SCROLLER"));
echo '<iframe src="'.$site_config["SITEURL"].'/pages/index/carroussel.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="160" scrolling="no" align="middle"></iframe>';
end_frame();
}
// Recommended
if ($site_config['RECOMMENDED']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/recommended.php");
}
// VIP Torrents
if ($site_config['VIPTORRENT']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/vip-torrents.php");
}
// Latest Fourm Post
if ($site_config['FORUMINDEX']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/forum-index.php");
}
// Top Free Leech
if ($site_config['FREELEECHINDEX']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/freeleech.php");
}
// Top Downloaded
if ($site_config['TOPDOWNLOADED']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/topdownloaded.php");
}
// Latest Torrents
if ($site_config['LATESTTORRENTS']){
include($_SERVER["DOCUMENT_ROOT"]."/pages/index/latest-torrents.php");
}
// Confidentiality declaration
if ($site_config['DISCLAIMERON']){
begin_frame(T_("DISCLAIMER"));
echo T_("DISCLAIMERTXT");
end_frame();
}
stdfoot();
?>Add to backend/config.php
$site_config['RECOMMENDED'] = true; //Enable recommended torrents
$site_config['VIPTORRENT'] = true; //Enable vip torrents
$site_config['FORUMINDEX'] = true; //Enable forum on index
$site_config['FREELEECHINDEX'] = true; //Enable freeleech on index
$site_config['SCROLLER'] = true; // Enable recent scroller
$site_config['TOPDOWNLOADED'] = true; //Enable top downloads
$site_config['LATESTTORRENTS'] = true; //Enable latest torrent list
Create root folder called pages
Upload index folder into pages folder
