• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Rehashing after Chat is Locked

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
1 post • Page 1 of 1

Rehashing after Chat is Locked

Postby LoopAdmin » Fri Aug 23, 2013 12:15 pm

I only want to make the chat room available during a single period of a few hours each week. So, I have two different versions of my index.php file. The only difference is:

ON version:
//$params['islocked'] = false;


OFF version:
//$params['islocked'] = true;
//$params['lockurl'] = 'http://{WEBSITE}/chat-not-available.html';

During most of the week, the OFF version resides in index.php Then, at the start of the period (using a cron job), I simply copy the ON version from a temporarily location into index.php. And, at the end of the period (using a different cron job), I simply copy the OFF version back to index.php.

However, for the parameters to be updated properly, rehashing is required. Obviously, I can't do an automated rehash once the chat is locked.

I have read the suggestions at: http://www.phpfreechat.net/rehash but have some questions... How would you go about using the 'die' command in this instance? My goal is to prevent problems that may happen with the manual rehashing (by deleting the 'cache' and 'chat' folders with another cron job (or consolidated script file).

Thanks!

Note: Using PHPFreeChat version 1.6
LoopAdmin
New member
 
Posts: 1
Joined: Fri Aug 23, 2013 12:05 pm
Top

Post a reply
1 post • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 26 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub