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

Thank you so much ArcticWolft

It seems that now everything is working perfectly. No SQL errors and still have not come back H&R points.  :)

How to disable seedbonus trading? When a user downloads and 100GB and trade H&R to 100 seedbonus points  is not normal,  :P
"ArcticWolf, post: 91873":

[size=18px]all[/size] of

modcomment = '$modcomment'
with

modcomment = " . sqlesc($modcomment) . "
[size=18px]Also If posting about "Database Error. Please report this to an administrator." or something along that lines,[/size]

does no good if you don't also add the last info from your_siteurl/admincp.php?action=sqlerr


I made the appropriate changes required.php but it did not help.

if delete H&R points "Trade to Delete" system then, after Force Cleanup they are all back.

and see SQL error

Quote:
Database Error in backend/cleanup.php on line 295: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 're warned because you have accumulated 5 HnR','2013-08-30 16:57:01','13-Sep-2013' at line 1. Query was: INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES (378,'You're warned because you have accumulated 5 HnR','2013-08-30 16:57:01','13-Sep-2013 15:57:01','0','HnR').
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6933"]cleanup.php[/url][url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6934"]required.php[/url]
this error has appeared

Quote:
Database Error in backend/cleanup.php on line 219: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 're warned because you have accumulated 2 HnR','2013-08-17 11:46:37','24-Aug-2013' at line 1. Query was: INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES (6,'You're warned because you have accumulated 2 HnR','2013-08-17 11:46:37','24-Aug-2013 10:46:37','0','HnR').

backend/cleanup.php

$rev = SQL_Query_exec("SELECT enabled FROM users WHERE id = $user");
$rov = mysql_fetch_assoc($rev);
if ($rov["enabled"] == "yes") :
SQL_Query_exec("UPDATE users SET warned = 'yes' WHERE id = $user");
SQL_Query_exec("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ($user,'".$reason."','".get_date_time()."','".$expiretime."','0','HnR')");
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, subject, msg, poster) VALUES (0, $user, '".get_date_time()."', ".sqlesc($subject).", ".sqlesc($msg).", 0)");
endif;
endif;

I compared the file itself, and the other ones are all the same, I'm confused  :unsure:
Thank you very much for help  :)

but it shows my choice at all torrents on site
VPS host for trackers — 2013-08-16 15:14:15 in General Chat
+10 Admin-Hosting ...I use their service  :)
Thanks Tiloup, but anyway not working, but it still does not work. Can not change the choices under your account, if I choose YES and store settings remains to NO???

SQL created

ALTER TABLE `users` ADD `pcoff` ENUM( 'yes', 'no' ) DEFAULT 'yes' NOT NULL;

account.php

$updateset[] = "pcoff = " . sqlesc($pcoff);


// PC on-off night
print ("<TR><TD align=right class=table_col2><B>PC ON:</B> </td><td class=table_col2><input type=radio name=pcoff" . ($CURUSER["pcoff"] == "yes" ? " checked" : "") . " value=yes><B>PC on at night</B><input type=radio name=pcoff" . ($CURUSER["pcoff"] == "no" ? " checked" : "") . " value=no><B>PC off at night.</B></td></tr>");
// PC on-off night END

admin-modtask.php

$pcoff = $_POST["pcoff"];

torrents-details.php


// PC on-off night
if ($CURUSER["pcoff"] == 'yes')
{
print ("<br /><b> PC on the night </b><font color='green'><b> Yes </b></ font>");
}
else
{
print ("<br /><b> PC on the night </b><font color='red'><b> NO </b></ font>");
}
// PC on-of night END
Upload Activity — 2013-08-15 06:45:57 in v2.08 Mods Completed
Sorry, I wrote wrong

The idea was that, from class 3, see this page

Solution

Now see this page from the Power Users


if ($CURUSER["class"] > "1")
Upload Activity — 2013-08-14 15:58:15 in v2.08 Mods Completed
Thanks for the nice work  :)  

But one question, how to grade it from the power user (level 3 and up)
This is a working code,  the author has a few bugs


// PC on-off night
if ($cURus ['pcoff '] ==' yes')
{
print ("<br> <b> PC on the night <font size="" color="green"> </ b> <B> Yes </ B> </ font>");
}
else
{
print ("<br> <b> PC on the night <font size="" color="red"> </ b> <B> NO </ B> </ font>");
}
// PC on-of night END
"PyhaJumal, post: 89936":

How to remove H&R ban

30% users is banned  :D

It is possible to change how the table SNATCHED

Edit row where H&R

Add uload number same if dload

Change ltime marke needed seedtime (24H, 36H, 72H....)

The last line of H&R mark NO

....and click OK

H&R removed @ user

The big problem is further, I have these buttons klikinud already since yesterday but I still have the same return

seedtime stands since yesterday 1 day. How to solve this problem?

Upload Manager — 2013-08-05 21:46:02 in v2.08 Mods Completed
Thanks, nice work  :)
files for translation — 2013-07-31 15:12:59 in General Chat
Language files locate LANGUAGE folder and the translation of some of the places are in different files
Thanks kickass, now running without SQL errors  :)  

Now the next problem;

if the user has uploaded 25 + GB and ratio is 0.8 then nothing happens. However, should the user autopromote class 2

if the user has uploaded 950 + GB and ratio is 0.8 then he will be 2 classes of users. However, should go to class 3
There is a mistake somewhere but can not find...please help?

//===| Start Auto Promote/Demote Users |===//
//===| config
$minratio = 0.8; # ratio for demotion to user
$gigs2 = 25 * 26843545600; # 25 GB / uploaded amount for promote as Tegutsev Pump
$delay2 = sqlesc(get_date_time(gmtime() - 86400 * 30)); # Joined > 1 month
$class2 = 2; // Tegutsev Pump Class
$gigs3 = 950 * 1020054732800; # 950 GB / uploaded amount for promote as Tegija Pump
$delay3 = sqlesc(get_date_time(gmtime() - 86400 * 45)); # Joined > 1 month
$class3 = 3; // Tegija Pump Class+
//===| auto promote to power user
$res = SQL_Query_exec("SELECT id, username, modcomment FROM users WHERE class = 1 AND warned = 'no' AND (added < $delay2 AND uploaded >= $gigs2 AND uploaded >= downloaded");
$time = get_date_time();
while ($arr = mysql_fetch_assoc($res)) {
   $res_classname = SQL_Query_exec("SELECT level FROM groups WHERE group_id=$class2 LIMIT 1");
   if (mysql_num_rows($res_classname) == 1) {
       $arr_classname = mysql_fetch_assoc($res_classname);
       $new_classname = "$arr_classname[level]";
   }
   $username = $arr[username];
   $modcomment = $arr[modcomment];
   $modcomment2 = gmdate("d-M-Y") . " - Has been promoted by System to " . $new_classname . " class n";
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

   SQL_Query_exec("UPDATE users SET class = $class2, modcomment = CONCAT($modcom,modcomment) WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'Congratulations, you were automatically promoted to Power User class. Please note that if your ratio drops below " . $minratio . " at any time,  you will be demoted back to User', 'You have been promoted as " . $new_classname . "')");
   write_log("<a href=account-details.php?id=$arr[id]><b>$username</b></a> has been promoted by System to <b>" . $new_classname . "</b> class");
   unset($res, $arr, $res_classname, $arr_classname,$new_classname);
}
//===| auto promote to power user+
$res = SQL_Query_exec("SELECT id, username, modcomment FROM users WHERE class = $class2 AND warned = 'no' AND (added < $delay3 AND uploaded >= $gigs3 AND uploaded >= downloaded");
$time = get_date_time();
while ($arr = mysql_fetch_assoc($res)) {
   $res_classname = SQL_Query_exec("SELECT level FROM groups WHERE group_id=$class3 LIMIT 1");
   if (mysql_num_rows($res_classname) == 1) {
       $arr_classname = mysql_fetch_assoc($res_classname);
       $new_classname = "$arr_classname[level]";
   }
   $username = $arr[username];
   $modcomment = $arr[modcomment];
   $modcomment2 = gmdate("d-M-Y") . " - Has been promoted by System to Power User+ class n";
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

   SQL_Query_exec("UPDATE users SET class = $class3, modcomment = CONCAT($modcom,modcomment) WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'Congratulations, you were automatically promoted to Power User class. Please note that if your ratio drops below " . $minratio . " at any time,  you will be demoted back to User', 'You have been promoted as " . $new_classname . "')");
   write_log("<a href=account-details.php?id=$arr[id]><b>$username</b></a> has been promoted by System to <b>" . $new_classname . "</b> class");
}
//===| auto demote to user
$res = SQL_Query_exec("SELECT id, username, modcomment FROM users WHERE (class = $class2 || class = $class3) AND uploaded / downloaded < $minratio");
while ($arr = mysql_fetch_assoc($res)) {
   $username = $arr[username];
   $modcomment = $arr[modcomment];
   $modcomment2 = gmdate("d-M-Y") . " - Has been demoted by System to User class n";
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

   SQL_Query_exec("UPDATE users SET class = 1, modcomment = CONCAT($modcom,modcomment) WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'You were automatically demoted as User. That happened because your ratio dropped below " . $minratio . "', 'You have been demoted as User')");
   write_log("<a href=account-details.php?id=$arr[id]><b>$username</b></a> has been demoted by System to <b>User</b> class");
}
//===| End Auto Promote/Demote Users |===//

and see SQL error

Quote:
Database Error in backend/cleanup.php on line 313: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND uploaded >= 671088640000 AND uploaded >= downloaded' at line 1. Query was: SELECT id, username, modcomment FROM users WHERE class = 1 AND warned = 'no' AND (added < AND uploaded >= 671088640000 AND uploaded >= downloaded.
It seems that I also finally got it to work   :)  

Thanks, good job this system
Very nice job and works perfectly  ;)
YES   :)   ...now works perfectly. Thank you so much BigMax1
Hi,

After installing this mod I get DB error

Quote:
Database Error in bookmark.php on line 49: Unknown column 'torrents.sticky' in 'field list'. Query was: SELECT bookmarks.id as bookmarkid, torrents.sticky, torrents.rosub, torrents.description, torrents.size, torrents.freeleech, torrents.external, torrents.id, torrents.category, torrents.name, torrents.filename, torrents.added, torrents.banned, torrents.comments, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name, categories.parent_cat AS cat_parent, categories.image AS cat_pic FROM bookmarks LEFT JOIN torrents ON bookmarks.torrentid = torrents.id LEFT JOIN categories ON category = categories.id WHERE bookmarks.userid = 1 ORDER BY added DESC LIMIT 0,25.
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728