mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Run the subpages.
I really wanna have PHP 5.4 ready :(
This commit is contained in:
parent
366b7207ca
commit
93ea9c8341
@ -158,21 +158,26 @@ public function readParameters() {
|
||||
|
||||
switch ($this->action) {
|
||||
case 'Message':
|
||||
new ChatMessagePage();
|
||||
$page = new ChatMessagePage();
|
||||
$page->__run();
|
||||
exit;
|
||||
case 'Log':
|
||||
exit;
|
||||
case 'RefreshRoomList':
|
||||
new ChatRefreshRoomListPage();
|
||||
$page = new ChatRefreshRoomListPage();
|
||||
$page->__run();
|
||||
exit;
|
||||
case 'Send':
|
||||
new \wcf\form\ChatForm();
|
||||
$form = new \wcf\form\ChatForm();
|
||||
$form->__run();
|
||||
exit;
|
||||
case 'Leave':
|
||||
new \wcf\action\ChatLeaveAction();
|
||||
$action = new \wcf\action\ChatLeaveAction();
|
||||
$action->__run();
|
||||
exit;
|
||||
case 'Copyright':
|
||||
new ChatCopyrightPage();
|
||||
$page = new ChatCopyrightPage();
|
||||
$page->__run();
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user