AzuriS an "1" appears in the end. Dont now why, great code thank you.
"Romano1, post: 88154":add to english.phpAzuriS an "1" appears in the end. Dont now why, great code thank you.
$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.";
"AzuriS, post: 88151":update with language system
find 4 times
add after everyone
$arr1 = mysql_fetch_row($res1);
$arr1[0] = T_("$arr1[0]");
$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";
Thanks mate :)
#-----------------------------------------------
# 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"));
}
SQL_Query_exec("UPDATE users SET uploaded = uploaded - ".strtobytes($_POST['gig2'])." WHERE status = 'confirmed'");
No users online
Torrents
Members
Online