[ADD] Chat
This commit is contained in:
parent
305d0e4cc9
commit
b79bd6ae8e
18
public/include/pages/about/chat.inc.php
Normal file
18
public/include/pages/about/chat.inc.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
|
||||
|
||||
// ACL check
|
||||
switch($setting->getValue('acl_chat_page', 1)) {
|
||||
case '0':
|
||||
if ($user->isAuthenticated()) {
|
||||
$smarty->assign("CONTENT", "default.tpl");
|
||||
}
|
||||
break;
|
||||
case '1':
|
||||
$smarty->assign("CONTENT", "default.tpl");
|
||||
break;
|
||||
case '2':
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Page currently disabled. Please try again later.', 'TYPE' => 'errormsg');
|
||||
$smarty->assign("CONTENT", "disabled.tpl");
|
||||
break;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user