Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

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

<?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
heres some more responsive code if anyone wants to try on there theme

in shoutbox.php find and replace 12 with 18
    echo    '</td><td style="font-size: 12px;


next in theme.css find these and remove font-size
body {
.menu ul li a {
.myBlock-caption {
.myFrame-caption {
.shoutbox_msgbox {

then add this to bottom of theme.css
@media screen and (min-width: 601px) {
body {
   font-size: 20px;
 }
}

@media screen and (max-width: 600px) {
body {
   font-size:30px;
 }
}

@media screen and (min-width: 601px) {
.menu ul li a {
   font-size: 20px;
 }
}

@media screen and (max-width: 600px) {
.menu ul li a {
   font-size:27px;
 }
}

@media screen and (min-width: 601px) {
.myBlock-caption {
   font-size: 20px;
 }
}

@media screen and (max-width: 600px) {
.myBlock-caption {
   font-size:30px;
 }
}

@media screen and (min-width: 601px) {
.myFrame-caption {
   font-size: 20px;
 }
}

@media screen and (max-width: 600px) {
.myFrame-caption {
   font-size:30px;
 }
}

@media screen and (min-width: 601px) {
.shoutbox_msgbox {
   font-size: 15px;
 }
}

@media screen and (max-width: 600px) {
.shoutbox_msgbox {
   font-size:20px;
 }
}
TTv3 Modded — 2019-05-11 18:28:49 in v3 Download
Use the raversv3 branch m8
the above link i posted is for v2.08, it may need some edits to work with v3
mod adduser — 2019-05-03 13:57:02 in v3 Mods Requests
i think the above link is in the wrong forum lol, this is the mod for adding users  https://www.torrenttrader.xyz/index.php?threads/addon-add-new-user-in-admincp.4579/
with out mariaDB or sql 10 it is hard to help, but i do have some thoughts maybe we get lucky
these are not related so try one if it does not work change back. if different error from numfiles please share

1) contact your host to ask if strict mode is on this would cause errors ( i think its this)

2) we can try define the sql query so play around with it try each of these
try replace line 200 with these
    $filecount = $filecounts;
   $filecounts = (int)$_POST["numfiles"];
   $ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr,  image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr)."', '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecounts."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."')");

or
    $filecounts = (int)$filecount;
   $ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecounts."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."')");


3) try force the query to look for a number try change  '".$filecount."',  to
".$filecount.", or '.$filecount.',  or $filecount,
Is this on every torrent ?
The code seems fine, its been used for some time with no errors by others. So the issue could be mariaDB or sql version. I dont use mariaDB so the sensible thing to suggest is to lower your sql version if that fixes it tet us know and problem solved.

How ever if this solves the problem it might be useful to test why sqli10 does not work (backup database first)
go to cpanel-myphpadmin-tables-torrents-structure-numfiles-change int to varchar
does this change the error ?
External torrent scraper — 2019-05-01 22:07:57 in v3 Support
The mod for this to work hasn't been done for v3 yet
Post the torrents-upload so I can have a look it should be fine. That error might be the sql version.
Anti-Flood [TTv3] — 2019-04-30 15:12:15 in v3 Mods Completed
Updated for V3 credit to original author

Have it up on test site seems fine if anyone wants to test

[color=rgb(251, 160, 38)]in config.php add[/color]

$site_config["floodsize"]  = 1000;  // Maximum size of messages, forumposts, comments
$site_config["floodlimit"] = 10;    // Amount of sources before to be considered flood
$site_config["floodtime"]  = 10;    // Time between messages, forumposts, comments


[color=rgb(251, 160, 38)]in comments.php find[/color]
    if (!$body)
       show_error_msg(T_("ERROR"), T_("YOU_DID_NOT_ENTER_ANYTHING"), 1);


add after

//===| Anti-Flood
   if ( strlen($body) > $site_config['floodsize'] )
       show_error_msg("Error", "Your comment is too big, only $site_config[floodsize] characters are allowed.", 1);

   $res = SQL_Query_exec("SELECT COUNT(*) FROM `comments` WHERE user = $CURUSER[id] AND added > '" . get_date_time(gmtime() - ($site_config["floodtime"] * 60)) . "'");
   $row = mysqli_fetch_row($res);
   if ($row[0] > $site_config["floodlimit"])
       show_error_msg("Error", "You are only prohibited $site_config[floodlimit] comments in $site_config[floodtime] minutes.", 1);
   //===| End


[color=rgb(251, 160, 38)]in forums.php find[/color]
    $added = "'" . get_date_time() . "'";
   $body = sqlesc($body);


replace with
  //===| Anti-Flood
   if ( strlen($body) > $site_config['floodsize'] )
       show_error_msg("Error", "Your post is too big, only $site_config['floodsize'] characters are allowed.", 1);
   //===| End

   //Insert the new post
   $added = "'" . get_date_time() . "'";
   $body = sqlesc($body);

   //===| Anti-Flood
   $res = SQL_Query_exec("SELECT COUNT(*) FROM `forum_posts` WHERE userid = $CURUSER[id] AND added > '" . get_date_time(gmtime() - ($site_config['floodtime'] * 60)) . "'");
   $row = mysqli_fetch_row($res);
   if ($row[0] > $site_config['floodlimit'])
       show_error_msg("Error", "You are only prohibited $site_config[floodlimit] forumposts in $site_config[floodtime] minutes.", 1);
   //===| End    


[color=rgb(251, 160, 38)]in mailbox.php find[/color]
$status = (@$_POST['send'] ? 'yes' : 'no');


add after

//===| Anti-Flood
   if ( strlen($msg) > $site_config["floodsize"] )
       show_error_msg("Error", "Your message is too big, only $site_config[floodsize] characters are allowed.", 1);

   $res = SQL_Query_exec("SELECT COUNT(*) FROM `messages` WHERE sender = $CURUSER[id] AND added > '" . get_date_time(gmtime() - ($site_config['floodtime'] * 60)) . "'");
   $row = mysqli_fetch_row($res);
   if ($row[0] > $site_config["floodlimit"])
       show_error_msg("Error", "You are only prohibited $site_config[floodlimit] messages in $site_config[floodtime] minutes.", 1);
   //===| End
ive added group name instead of user class
        $res2 = SQL_Query_exec("SELECT COUNT(*) FROM `torrents` WHERE `owner` = $posterid ");
       $arr2 = mysqli_fetch_row($res2);
       $torrentposts = $arr2[0];

       $res3 = SQL_Query_exec("SELECT class FROM `users` WHERE id=$posterid ");
       $arr3 = mysqli_fetch_row($res3);
       $group1 = $arr3[0];
       $res5 = SQL_Query_exec("SELECT level FROM `groups` WHERE group_id=$group1 ");
       $arr6 = mysqli_fetch_row($res5);
       $group = $arr6[0];

       
           print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i></center><br /><center><img width='80' height='80' src='$avatar' alt='' /></center><br />Class:$group<br />Uploaded: $useruploaded<br />Downloaded: $userdownloaded<br />Posts: $forumposts <br />Torrents: $torrentposts<br /><br />Ratio: $userratio<br />Location: $usercountry<br /><br /></td>");


at the weekend im going to play around with a php file im hoping its possible to list all users comments, uploads, completed etc so you could add these with links to the page on the forum, but also to a block maybe for that user to see his own or for staff
It depends on if you have invites on or off or invites enabled it would be something like
if ($site_config['INVITEONLY']){
    print("open");
}else{
    print("closed");
}    

you can put this near staff panel link code in header to see, then its just about positioning it to your liking you could add above infobar or below header you can always center code and add a space like
if ($site_config['INVITEONLY']){
    print("<center>open</center>");
}else{
    print("<center>closed</center>");
}    <br />
sorry it should be $posterid first reply updated
You can try on first line at end replace
$userid with $topic_userid
If not I'll have a play with it next time I get some free time, and get a link to a php file

It might be possible to add a php file useractivey.php with action uploaded torrents, action members comments so you could put all these on the forum
ive managed to get the class number and torrent posted number to show just need the group name to show now

find
print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i>


replace with full line with
    $res2 = SQL_Query_exec("SELECT COUNT(*) FROM `torrents` WHERE `owner` = '$posterid' ");
       $arr2 = mysqli_fetch_row($res2);
       $torrentposts = $arr2[0];

       $res3 = SQL_Query_exec("SELECT class FROM `users` WHERE id=$posterrid ");
       $arr3 = mysqli_fetch_row($res3);
       $group = $arr3[0];
     

     
           print ("<tr valign='top''><td width='150' align='left' class='comment-details'><center><i>$title</i></center><br /><center><img width='80' height='80' src='$avatar' alt='' /></center><br />Class:$group<br />Uploaded: $useruploaded<br />Downloaded: $userdownloaded<br />Posts: $forumposts <br />Torrents: $torrentposts<br /><br />Ratio: $userratio<br />Location: $usercountry<br /><br /></td>");
Do you mean where the users avatar, upload, download etc is so it would look like
Class - member
Torrents shared - 6 (this could be link to a list)
Using Git — 2019-04-28 05:53:17 in Tutorials
Took me a while to figure out how to use git lol, now its a few seconds process. So ill post this here if it helps anyone.

Git is used for working on new projects it allows you to work in groups, great for comparing files and generally a good way to share your work. The most known one is github, i prefer gitlab i find it easier and its worth learning how its done manually.

Firstly you will need gitbash for windows https://gitforwindows.org/

Once you have gitbash installed and you have a account on gitlab

Make a folder on your desktop, lets call it Master Git. Place a file in it, whatever its just to show you
this folder is linked to you project all uploads need to be placed in here so do not move or delete

Make a new project and you will receive a list with all the commands save these somewhere save
Git global setup
git config --global user.name "Mark  "
git config --global user.email "mark@hotmail.com"

Create a new repository
git clone https://gitlab.com/M-jay/git.git
cd git
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Push an existing folder
cd existing_folder
git init
git remote add origin https://gitlab.com/M-jay/git.git
git add .
git commit -m "Initial commit"
git push -u origin master

Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.com/M-jay/git.git
git push -u origin --all
git push -u origin --tags



Now go inside the desktop/Master Git/folder, right click and select Git bash here


A window will pop up add these 3 commands from the saved list one by one this will set the folder to your project


Then add command link
git remote add origin https://gitlab.com/M-jay/git.git


Now enter these commands one by one ( after setup you only need to use these 3 commands for uploading)
git add .
git commit -m "Initial commit"
git push -u origin master

Lastly you will be asked for your username this is the gitlab username and your gitlab password


Once you have your project uploaded on gitlab add a branch this will be a copy of your original files.

A clone is basically like the desktop folder thats linked to your project i prefer doing it the way above but on github you can download your clone open gitbash and go through the commands above.  On a clone the command link git remote add origin https://gitlab.com/M-jay/git.git is already added

After setup you just need to enter these 3 commands you can change the comment each time so its easier to find edited files
Add another file to the desktop master git folder and open git bash
git add .
git commit -m "new changes"
git push -u origin master
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728