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
Upload Manager
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2013-01-13 18:07:42
AzuriS an "1" appears in the end. Dont now why, great code thank you.

2013-01-13 18:57:59
Thanks you AzuriS, beaucoup plus propre comme ca! lol  ;)


Unknown User
2013-01-13 19:54:59
"Romano1, post: 88154":
AzuriS an "1" appears in the end. Dont now why, great code thank you.


add to english.php



$LANG["ALL1"] = "ALL";

add to french.php




$LANG["ALL1"] = "TOUTES";






also change in english.php







$LANG["MSG_ADD"] = "Hey, we have added %s GB upload to your account!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";

;




for





$LANG["MSG_ADD"] = "Hey, we have added %s upload to your account!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";






and





$LANG["MSG_DED"] = "Hey, we have deducte %s GB upload to your account!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";




for





$LANG["MSG_DED"] = "Hey, we have deducte %s upload to your account!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";





post updated
Unknown User
2013-02-10 10:34:35
"AzuriS, post: 88151":
update with language system

find 4 times



$arr1 = mysql_fetch_row($res1);

add after everyone




$arr1[0] = T_("$arr1[0]");




Where do i find that ?
Unknown User
2013-02-10 11:38:41
in the file <_<
Unknown User
2013-02-10 12:54:53
Nice job on this one AzuriS (Nice and clean )

minor clean in english.php

Replace:

$LANG["MSG_MUL"] = "Hey, we have MULTIPLIED your upload by %s!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";
with:


$LANG["MSG_MUL"] = "[size=2][color=#FF2500][b]Hey, we have MULTIPLIED your upload by %s!


Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";






replace:



$LANG["MSG_DIV"] = "Hey, we have DIVIDED your upload by %s!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";



with:



$LANG["MSG_DIV"] = "[size=2][color=#FF2500][b]Hey, we have DIVIDED your upload by %s!

Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...

So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";




Big THANKS!
Unknown User
2013-02-10 13:32:28
you're welcome and thanks to bigmax who port it from TBDEV

post updated
Unknown User
2013-02-10 16:15:50
Azuris you made a great job for this mod    Thanks mate  :)
2013-02-10 16:38:06
Thanks DARKNOVA! ;)
Unknown User
2013-02-11 07:19:59
I found a big problem in "Deduct from upload", if the value of deduction is greater than the current upload of user, the result will be 16 PB upload...

A very good way to make all leechers happy  
Unknown User
2013-02-11 08:19:58
LOL!!!

this should fix that.. its modication to

[url="https://www.torrenttrader.org/index.php?/topic/17466-upload-manager/#entry88151"]https://www.torrentt...ger/#entry88151[/url]

so many different versions of this just in this topic...

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6573"]upload-bonus.php[/url]

Basically if under the / by or - amount sets it to 0..
upload-bonus.php
Download
Unknown User
2013-02-11 12:55:58
Thanks ArcticWolf but exactly this script it is with that problem.

If you deduct an amount greater than upload (check 'To all members', check 'System') the result will be 16 PB for users that have a smaller upload.

You can check to see, I've already do this for several times... Maybe you can find  a solution?
Unknown User
2013-02-11 13:39:56
i try that, but no success



#-----------------------------------------------

# DEDUCT

#-----------------------------------------------

if($_POST['gig2'])

{



if ( !is_numeric($_POST['class']))

{

 $res = SQL_Query_exec("SELECT id, uploaded FROM users");

 $arr1[0] = T_("ALL1");

}

else

{

 $res = SQL_Query_exec("SELECT id, uploaded FROM users WHERE class=".$_POST['class']." AND status = 'confirmed'");

 $res1 = SQL_Query_exec("SELECT level FROM groups WHERE group_id=".$_POST['class']."");

 $arr1 = mysql_fetch_row($res1);

}



$sender = ( $_POST["fromsystem"] == "yes" ) ? "0" : $CURUSER["id"];

$subject = T_("SUBJECT_DED");

$msg = sprintf( T_("MSG_DED"), $_POST['gig2'], $arr1[0]);

while($arr = mysql_fetch_row($res))

{



 $gig = strtobytes($_POST['gig2']);

 $gig2 = ( $arr[1] < $gig ) ? $arr[1] : $gig;



 if ( !is_numeric($_POST['class']))

 {

  SQL_Query_exec("UPDATE users SET uploaded = uploaded - ".$gig2." WHERE status = 'confirmed'");

 }

 else

 {

  SQL_Query_exec("UPDATE users SET uploaded = uploaded - ".$gig2." WHERE class=".$_POST['class']." AND status = 'confirmed'");

 }



 SQL_Query_exec("INSERT INTO messages (sender, receiver, added, subject, msg, poster) VALUES ($sender, $arr[0], '".get_date_time()."', ".sqlesc($subject).", ".sqlesc($msg).", $sender)");

}



write_log( sprintf(T_("UP_DEDUCTED"), class_user($CURUSER["username"]), $_POST['gig2'], htmlspecialchars($arr1[0])) );

autolink("upload-bonus.php", T_("UP_UPDATED"));

}



all values are ok but doesn't work, don't understand why
Unknown User
2013-02-11 15:57:09
This line is in addition and generates this problem:



SQL_Query_exec("UPDATE users SET uploaded = uploaded - ".strtobytes($_POST['gig2'])." WHERE status = 'confirmed'");



I removed it and now everything works perfectly  :D
Unknown User
2013-02-11 16:54:22
don't well understand

can you post code working ?
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