PHP Code:
$mult = $numPosts*2*1024*1024;
There it is, it's the "2" in the line.
2 * 1024 = 2 Kilo Octet
2 * 1024 * 1024 = 2 Mega Octet
As for explaining the code: first, the number of post of the user is fetched:
PHP Code:
$numPosts = mysql_num_rows(mysql_query("SELECT poster_id FROM phpbb_posts WHERE poster_id = '".$resSess['session_user_id']."'"));
Then, the script computes what "extension" of the limit the user is allowed to have
PHP Code:
$mult = $numPosts*2*1024*1024; $limit = $limit + $mult;
And then, the script does something with those infos, but the code being cut-off, I cannot say more...
I think you have badly cut the file (to preview it to us) , because the } sign indicate that all of this is done into a "if" block, or a loop maybe, but I think more likely a if.
Because the rest of the script is related to an not logged user, or unknown user that is treated as a guest.
But 99% chances that simply changing that 2 in 5 on the 3rd line will do what you are looking for.
__________________
Listen to the ducky: "This is awesome!!!"
Last edited by tripy : 06-21-2008 at 07:24 PM.
|