Jump to content
MakeWebGames

[mccode]Clear Hospital And Jail Shout Boxes Hourly


subman

Recommended Posts

This lets you setup a cron and clears the shoutboxes in the jail and hospital if you have that mod.

What you need-->

http://criminalexistence.com/ceforums/i ... pic=2069.0

You also need to change the permissions on jailshouts.txt and hospshouts.txt too 0777 for this too work!

NOW lets get to codin' :)

 

Code

Save this file as clearshouts.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then go to your cron manager and do this--->

0 * * * * curl http://yourgamename.com/clearshouts.php

 

And your done :)

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 months later...
  • 3 weeks later...
  • 1 month later...

Re: [mccode v1&2]Clear Hospital And Jail Shout Boxes Hourly

Only one minor thing I see wrong with it, but shouldn't be an issue- If users wanted to access that page they could just rapidly delete all posts... You could add this to your daily cron or code it in for your 5 minute cron to do it once an hour. But I will say well done for the effort just missed a minor detail

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...