Quote:
Originally Posted by Sonik
Hello, i found this source on this forum and i want to discuss about this. Bugs, security and others.
I have some errors :
PHP Code:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/ruo/public_html/mysite/include/cleanup.php on line 86
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ruo/public_html/mysite/include/cleanup.php on line 87
What can i do ?
|
Line 85 should be
Code:
$user = mysql_query("SELECT invitedby FROM users WHERE status = 'pending' AND added < FROM_UNIXTIME($deadtime) AND last_access = '0000-00-00 00:00:00'");
Quote:
Originally Posted by Sonik
I found another problem, when a user register on my site, he get VIP class. If you can "repair' this source and re-post it here, you are the man ;) . Thank you !
|
For this you need to edit the db and in the User table you need to change the user class default from 2 to 0