mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-23 21:50:09 +00:00
8b29cbb557
-> Moving Link into chatControls
60 lines
2.4 KiB
PHP
60 lines
2.4 KiB
PHP
<?php
|
||
namespace wcf\page;
|
||
use \wcf\system\WCF;
|
||
|
||
/**
|
||
* Shows information about Tims chat.
|
||
*
|
||
* @author Tim Düsterhus
|
||
* @copyright 2010-2011 Tim Düsterhus
|
||
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||
* @package timwolla.wcf.chat
|
||
* @subpackage page
|
||
*/
|
||
class ChatCopyrightPage extends AbstractPage {
|
||
public $neededModules = array('CHAT_ACTIVE');
|
||
//public $neededPermissions = array('user.chat.canEnter');
|
||
|
||
/**
|
||
* @see \wcf\page\IPage::readParameters()
|
||
*/
|
||
public function readParameters() {
|
||
// ###
|
||
// ## ##
|
||
// # #
|
||
// # ##### #
|
||
// # # # #
|
||
// # # * * # #
|
||
// # # # #
|
||
// # # # #
|
||
// # ### #
|
||
// # #
|
||
// #######
|
||
// # # # #
|
||
// # # # #
|
||
// # # # #
|
||
|
||
if (isset($_GET['sheep'])) $this->useTemplate = false;
|
||
}
|
||
|
||
/**
|
||
* @see \wcf\page\IPage::show()
|
||
*/
|
||
public function show() {
|
||
// guests are not supported
|
||
if (!WCF::getUser()->userID) {
|
||
throw new \wcf\system\exception\PermissionDeniedException();
|
||
}
|
||
|
||
parent::show();
|
||
if ($this->useTemplate) exit;
|
||
@header('Content-type: image/png');
|
||
echo file_get_contents(__FILE__, null, null, __COMPILER_HALT_OFFSET__);
|
||
exit;
|
||
}
|
||
}
|
||
__halt_compiler();‰PNG
|
||
|
||
|