I'm doing authentication on my own and once the admin logs out, the whole channel gets deleted (say: remove the whole phpfreechat/data/private/chat/*channel* directory). On logout there should be no way to track back an old chat-session, so this seemed to be the easiest way to go.
Now I'm getting tons of Ajax-warnings.
Could anybody give me a hint how to write a quick hack to avoid those Ajax-warnings for the other still logged-in users and redirect them to a different page?
phpfreechat/src/phpfreechatcontainerfile.class.php, line 170 (function updateNick()):
- Code: Select all
if (!@touch($my_filename)) {
// do something like a header("Location: http://..."); here
// but in the ajax-way ...I'm pretty new to Ajax.
}
Thx a lot!!