Hello to all
I have a forum in which we post only one post per thread. It is used for sell/buy/trade stuff.
Then the first admin that see's a new thread has to go to the forum and close the thread.
Here is my idea: I would like to make this locking automatic. So, when user sets the post to databse (addpost.php) I would somehow check which forum is this and if this is the forum we are doing autoLock (best option would be $config['autolock']) we send a doclosethreads.php.
A problem
doclosethreads.php can be done only by the moderator of the forum or by admin. We have a "fake" moderator that coulg be used to authenticate but dunno how.
[] if ( ($user['U_Status'] != 'Moderator') && ($user['U_Status'] != 'Administrator')){ [/]
This if statement should somehow includ another || condition something like || $config['autolock']==$Number
[] if ( (($user['U_Status'] != 'Moderator') && ($user['U_Status'] != 'Administrator')) || $config['autolock']==$Number ){ [/]
Is there another, better way to do this?