Future Hackers of America
open postings.php and find:
Code:
if ($threadinfo[open]==1)
{
$DB_site->query("UPDATE thread SET open=0 WHERE threadid=$threadid");
$action="closing";
}
This is where you want to start your hack. You will need to open newreply.php, see what the code does when a user posts a reply. Duplicate the required elements in postings.php inside the code above. You want to set $message to something like "Thread Closed". You already have the $username of the mod so you don't need to figure it out. You want to insert a post stating the thread is closed, which will be from the Mod right before the thread is really closed. It is really simple to do but I will leave it up to you guys to do it.
[sidenote]
Is there a way to call newreply.php from inside postings.php so that one wouldn't actually have to anything other than insert the call right before the thread close?
Code:
newreply.php?action=postreply&message=Closed%20Thread
The idea is to simulate what is sent when a user clicks on the "Post" button when entering a message. Possible? I don't know