Install Directives
Welcome to TTrader Classic V1.04 By Flash, Hacked / Moded By Nightmare
All crédits goes to hack's owners.
Thanks to my virtual friends of TTClassic Dev Team and all hacks releasers.
Please Follow this directives if you want your tracker running fine.
Here we go:
Mods Added:
Hack
Description
Upload 2 images with torrent
This hack allow you to upload 2 images with your torrents, the images are stored in a directory on your website, they will be automaticly deleted when the torrent is deleted.
To make this hack work properly you have to edit some files:
First CHMOD uploads/images (images directory) to 777
Find in take-edit.php:
/home/yourdomaine/public_html/uploads/images/
And change this part of code : /home/yourdomaine/public_html/ to your direct tracker root directory (see phpinfo.php http://yourtrackerurl.com/phpinfo.php)
Find in torrents-delete.php
$img1 = "/home/yourdomaine/public_html/uploads/images/$row[image1]";
and
$img2 = "/home/yourdomaine/public_html/uploads/images/$row[image2]";
change in this two line the part of code: /home/yourdomaine/public_html/ to your direct tracker root directory (see phpinfo.php http://yourtrackerurl.com/phpinfo.php)
Overlib in torrent name in index
This hack display entire torrent name on a popup when you put your mouse over torrent name.
Thanks Hack
This hack allow your users to say thanks to the uploader by clicking in a button.
Show/hide Porn cat
This hack allow your users to set in their profile if they want to see porn cat or not.
To make this hack works, by default the porn cat is created with ID 21 and you need to do nothing.
If you want to change your porn cat, you should to edit following files: index.php, browse.php, torrents-search.php
Find:
if ($CURUSER["view_xxx"] != "yes")
$wherea[] = "category != '21'";
And change 21 to your porn cat ID
BBCodes Hack
Allow use tags like [center] [bold] font size etc.. in torrent description.
Casino Hack
This hack allow your members to play games where they can win and lost upload credits, like Bet P2P, Bet on a color, bet on a number, blackjack and a full automated lottery system.
Arcade Hack
This hack allow your members to play arcade games for fun, they highscores are stored in a database.
MP Recip Choice
This hack make MP sending, more easier, you can make a search by member name.
Email restriction
This hack allow to restrict emails adress on signup.
Torrent global speed
This hack display global torrent speed in index and torrent details.
Scroling all donators
This hack make a scrolling block in stats where all your donators are displayed.
No wait time for donators
This hack let your donators downloading torrents without wit time.
Torrents uploaded showed in shoutbox
This hack make a automatic shout in shoutbox when a torrent is uploaded.
Site URL to the torrent filename
This hack add your site URL at the end of the torrent name when a member grab it.
Torrents offer
This hack allow you to decide if users can upload torrents or if they shoul make an offer first, and upload the torrent when he reached 3 votes, you can tur this hack on/off.
Request reseed
This hack allow your members to request a ressed to all users that have finished to download a torrent, when the torrent have no seeders.
Torrent Temp Delete
This hack allow to delete torrent temp files.
Torrent info mod
This hack allow you to see what is the content of a torrent.
Update username
This hack allow Admins to reset the username of members.
Torrent banned Mod
This hack allow to ban users from downloading torrents.
Upload Banned Mod
This hack allow you to ban users from uploading a torrent.
PowerSeed Mod
This mod create a PowerSeed group, you should never change teh name or ID of the following cats: "Powerseed, Privatepowerseed, and PublicPowerSeed"
So I explain how this mod works:
First you pick in your members or uploaders the fastest and better seeder, you go to user details page and you set "Groupe Powerseeder" to yes.
After that, you or one powerseeder upload a torrent in "PowerSeed" cat, this torrent become only avalable to powerseeders group, when this torrent reach 4 completed downloads it automaticly goes to "PublicPowerSeed" cat and become avalable to all your users but with a great upload speed, after 10 days this torrent goes automaticly to "OldPowerSeed" cat and you can or let it some days in this cat or manualy edit this torrent and put it in his right cat.
If you don't want to use this mod you shoul make the following edits:
Edit cleanup.php, find and delete:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// POWERSEED MOD //
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//voir si le torrent a plus de 3 powerseeders
$power_seed = mysql_query("SELECT id, name, added, size, seeders, leechers FROM torrents WHERE category = 37 ORDER BY name") or sqlerr(__FILE__, __LINE__);
while ($row9 = mysql_fetch_array($power_seed, MYSQL_NUM))
if (mysql_num_rows($power_seed) > 0){
$query = mysql_query("UPDATE torrents SET category = 51 WHERE category = 37 AND seeders > 4 AND id = $row9[0]") or sqlerr(__FILE__, __LINE__);
}
//Fin de vérification
//Passage auto de privé a public
$hours = 240; // Hours to wait befor torrent go to anciens powerseed cat
$dt = sqlesc(get_date_time(gmtime() - ($hours * 3600)));
$res = mysql_query("SELECT id, name, added, size, seeders, leechers FROM torrents WHERE added < $dt") or sqlerr(__FILE__, __LINE__);
while ($arr = mysql_fetch_assoc($res))
{
mysql_query("UPDATE torrents SET category = 50 WHERE category = 51 AND id = '$arr[id]'") or sqlerr(__FILE__, __LINE__);
}
//Fin passage auto
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// END POWERSEED //
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Edit index.php, Find and delete:
////////////////////Mod powerSeed/////////////////////
//////////////Cacher au non logués Début/////////////////
if ($LOGGEDINONLY){
if (!$CURUSER){
begin_frame("POWERSEED'S");
echo "<BR><BR><b><CENTER>You are not logged In<br>Only registered members can view PowerSeed.</CENTER><BR><BR>";
end_frame();
}else{
////////////////////Public PowerSeed////////////////////////
begin_frame("POWERSEED'S");
$need_seeds = mysql_query("SELECT id, name, added, size, seeders, leechers FROM torrents WHERE category = 51 ORDER BY added DESC");
if (mysql_num_rows($need_seeds) > 0) {
print("<center><b><h4><font color=Red>Public PowerSeed</font></h4></b></center>");
print("<table align=center cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor=#D6D9DB width=100% border=1>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .TNAME. "</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .SIZE."</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>Date Upload</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .SEEDS. "</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .LEECH. "</td>
<tr>");
while ($row2 = mysql_fetch_array($need_seeds, MYSQL_NUM)) {
$torrname = htmlspecialchars($row2[1]);
if (strlen($torrname) > 40)
$torrname = substr($torrname, 0, 40) . "...";
echo "<td class=table_col1 align=left><a href=\"torrents-details.php?id=$row2[0]\">$torrname</a></td>";
print("<td class=table_col2 align=center><font size=1 face=Verdana>" . mksize($row2[3]) . "</td>\n");
echo "<td class=table_col1 align=center><font color=purple>$row2[2]</td>";
echo "<td class=table_col2 align=center><font color=green>$row2[4]</td>";
echo "<td class=table_col1 align=center><font color=red>$row2[5]</td>";
print("</font></tr>");
}
print("</table>");
}
else
{
print("<center><b><h4><font color=green>Public PowerSeed</font></h4></b></center>");
print("<table align=center cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor=#D6D9DB width=100% border=1>
<tr><td align=center><font color=red><b>No Public PowerSeed at this Time</b></font></td></tr></table>");
}
//////////////////////////////////////////////////////////////////////////////
////////////////////////Anciens PowerSeed/////////////////////////////////////
$need_seeds = mysql_query("SELECT id, name, added, size, seeders, leechers FROM torrents WHERE category = 50 ORDER BY added DESC");
if (mysql_num_rows($need_seeds) > 0) {
print("<center><b><h4><font color=blue>Old PowerSeed</font></h4></b></center>");
print("<table align=center cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor=#D6D9DB width=100% border=1>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .TNAME. "</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .SIZE."</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>Date Upload</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .SEEDS. "</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .LEECH. "</td>
<tr>");
while ($row2 = mysql_fetch_array($need_seeds, MYSQL_NUM)) {
$torrname = htmlspecialchars($row2[1]);
if (strlen($torrname) > 40)
$torrname = substr($torrname, 0, 40) . "...";
echo "<td class=table_col1 align=left><a href=\"torrents-details.php?id=$row2[0]\">$torrname</a></td>";
print("<td class=table_col2 align=center><font size=1 face=Verdana>" . mksize($row2[3]) . "</td>\n");
echo "<td class=table_col1 align=center><font color=purple>$row2[2]</td>";
echo "<td class=table_col2 align=center><font color=green>$row2[4]</td>";
echo "<td class=table_col1 align=center><font color=red>$row2[5]</td>";
print("</font></tr>");
}
print("</table>");
}
else
{
print("<center><b><h4><font color=green>PowerSeed Privés</font></h4></b></center>");
print("<table align=center cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor=#D6D9DB width=100% border=1>
<tr><td align=center><font color=red><b>No Old PowerSeed at this Time</b></font></td></tr></table>");
}
//////////////////////////////////////////////////////////////////////////////
////////////////////////PowerSeed Privés/////////////////////////////////////
$need_seeds = mysql_query("SELECT id, name, added, size, seeders, leechers FROM torrents WHERE category = 37 ORDER BY added DESC");
if (mysql_num_rows($need_seeds) > 0) {
print("<center><b><h4><font color=green>Private PowerSeed</font></h4></b></center>");
print("<table align=center cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor=#D6D9DB width=100% border=1>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .TNAME. "</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .SIZE."</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>Date Upload</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .SEEDS. "</td>
<td class=table_head align=center><font size=1 face=Verdana color=black>" .LEECH. "</td>
<tr>");
while ($row2 = mysql_fetch_array($need_seeds, MYSQL_NUM)) {
$torrname = htmlspecialchars($row2[1]);
if (strlen($torrname) > 40)
$torrname = substr($torrname, 0, 40) . "...";
echo "<td class=table_col1 align=left><a href=\"torrents-details.php?id=$row2[0]\">$torrname</a></td>";
print("<td class=table_col2 align=center><font size=1 face=Verdana>" . mksize($row2[3]) . "</td>\n");
echo "<td class=table_col1 align=center><font color=purple>$row2[2]</td>";
echo "<td class=table_col2 align=center><font color=green>$row2[4]</td>";
echo "<td class=table_col1 align=center><font color=red>$row2[5]</td>";
print("</font></tr>");
}
print("</table>");
}
else
{
print("<center><b><h4><font color=green>PowerSeed Privés</font></h4></b></center>");
print("<table align=center cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor=#D6D9DB width=100% border=1>
<tr><td align=center><font color=red><b>No Private PowerSeed at this time</b></font></td></tr></table>");
}
//////////////////////////////////////////////////////////////////////////////
end_frame();
}
}
//////////////////////FIN Mod POWER SEED//////////////////////////////
Log donation date and Auto expire donation.
This mod auto log the date of the donation of a member when you introduce his donation in his details page and auto calculate the expire date of the donation, at this date the donation of this member is set to 0.
You have to make some edits to customize this hack.
Edit modtask.php, find:
// Automatisation de la date de fin de don
if ($donated == '0'){
$donvalide ='0000-00-00 00:00:00';
}
elseif ($donated != $user["donated"] && $donated 1 mois
$dt1 = gmdate("Y-m-d H:i:s", time() + ($hours1 * 3600));
$donvalide = $dt1;
}
elseif ($donated != $user["donated"] && $donated '20'){
$hours2 = 1440;// Superieur a 20 et inférieure a 50 => 2 mois
$dt2 = gmdate("Y-m-d H:i:s", time() + ($hours2 * 3600));
$donvalide = $dt2;
}
elseif ($donated != $user["donated"] && $donated > '50'){
$hours3 = 2160;// Superieur a 50 => 3 mois
$dt3 = gmdate("Y-m-d H:i:s", time() + ($hours3 * 3600));
$donvalide = $dt3;
}
elseif ($donated == $donated){
$donvalide = $user["donvalide"];
}
// Fin d'automatisation de la date de fin de don
You can change the values $donated <='20', $donated <='50' && $donated >'20' and $donated > '50' by what you want, and change the values $hours1, $hours2 and $hours3 by the duration that you want in this case for a donation smaller or equal to 20 the expiration date is 720hours = 1 month, for a donation smaller or equal to 50 but higher than 20 the expiration date is 1440 hours = 2 months, and for a donation higher than 50 the expiration date is 2160 hours = 3 months.
Points system
This is a points sytem, the users can won points and trade it from stuffs.
For each hour that a user is sedding, he won 1 point.
Uploading a Torrent = 15 points
Making a Upload Offer (if avalable) = 10 points
Filling a Request = 10 points
Macking a comment to a torrent = 3 points!
Evaluating a torrent= 5 pointst.
If the user make a donation he won 100 points.
He can trade this points by upload bonus, unlock him from casino, invits, make donations to other users buy a custom tittle etc....
you have to ways to use this mod, edit cleanup.php:
Find:
//=== Update seeding bonus
/******************************************************
Use ONLY one of the two options below...
the first is per torrents seeded, the second will only give the bonus for ONE torrent no matter how many are seeded.
also you will have to play with how much bonus you want to give...
ie: seedbonus+0.0225 = 0.25 bonus points per hour
seedbonus+0.125 = 0.5 bonus points per hour
seedbonus+0.225 = 1 bonus point per hour
*****************************************************/
//======use this part to give seeding bonus per torrent
/*$res = mysql_query("SELECT DISTINCT userid FROM peers WHERE seeder = 'yes'") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res) > 0)
{
while ($arr = mysql_fetch_assoc($res))
{
$work = mysql_query("select count(*) from peers WHERE seeder ='yes' AND userid = $arr[userid]");
$row_count = mysql_result($work,0,"count(*)");
$seedbonus = 0.125*$row_count;
mysql_query("UPDATE users SET seedbonus = seedbonus + '$seedbonus' WHERE id = $arr[userid] AND enabled = 'yes' AND warned = 'no'") or sqlerr(__FILE__, __LINE__);
}
}*/
//==use this part to only give seeding bonus for 1 torrent no matter how many are being seeded
$res = mysql_query("SELECT DISTINCT userid FROM peers WHERE seeder = 'yes'") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res) > 0)
{
while ($arr = mysql_fetch_assoc($res))
{
//$bonus2 = 0.250;
//$useridb = $arr['userid'];
mysql_query("UPDATE users SET seedbonus = seedbonus + '0.225' WHERE id = $arr[userid] AND enabled = 'yes' AND warned = 'no'") or sqlerr(__FILE__, __LINE__);
}
}
//===end
If you let the code like that, the user won 1 point for seeding hour, if you use the first part of code and comment the second one, the user won 1 point for seedinr hour, for torrent (if the members is seeding 3 torrents we win 3 points per hour).
Total seeding time
This mod log total time the user has seed and display it in the users details page.
Added some option in user details page
Possibility to reset loggin trys to 0, possibility to enter a ammount of GB who is credited when a user make a donation etc....
Security adds
Image security when register a account, and maximum loggins try, if the user enter 5 times a wrong password his account are automaticly locked.
Torrents bookmark
Allow users to bookmark torrents.
Pager for PM
Added a Pager for PM's and a select all function to delete it.
Mass Email
Added Mass Email Function
Cleanup.php
Some clenup codes added to auto delete shoutbox, messages etc...
New way of admin account aproval
If you use Admin account aproval in your site(recomended) i added some new functions like:
- You can change the account from pending statut to confirmed.
- You can delete the pending account.
- You can aprove it and automaticly send a mail with the activation link for the user.
- You can denie teh account because the user use a bad email.
Etc... In all cases a email is automaticly sended to the users explaining what append
Edit admin.php to translate the mail content or customise it.
And some more improvements and modifications.
FRESH INSTALL INSTRUCTIONS ONLY!!!!
1) Copy ALL files to your webserver
2) Import via phpmyadmin "Database.sqll" (this will also create a admin user login)
3) Edit the file backend/config.php to suit your MYSQL connection, and set your paths (ALL OTHER SETTINGS CAN BE ADJUSTED ONCE LOGGED INTO SITE AS ADMIN.
4) Run check.php from your browser to check you have configured everything ok
check.php is designed for UNIX systems, if you are using WINDOWS it may not report correctly.
5) Login to site using the following
Username: Admin
Password: Adminpass
List of CHMODS to be applied (777 or 666):
backend/config.php
backend/oldconfig.php
banners.txt
sponsors.txt
disclaimer.txt
backups
uploads
uploads/images
Any problems please visit www.torrenttrader.org
Thanks to my virtual friends of TTClassic Dev Team and all hacks releasers.
Wyszukiwarka
Podobne podstrony:
Read Me Before Installing 114 Reflexive Arcade Gamesbefore installationread me installImportant Readme Before InstallationINSTALL READInstall Doc for IBM T23 model 2647 Read Me First2 BEFORE BEGINNING THE INSTALLATIONread this before usageid98001 Read This Before Taking the Courseread me for install 2014 2read this before usageinstallInstall (28)Energooszczędne instalacje oświetlenioweInstalacja systemu Windows z pendrive awięcej podobnych podstron