mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-11-01 14:20:07 +00:00
109 lines
4.7 KiB
PHP
109 lines
4.7 KiB
PHP
<?php
|
|
namespace wcf\page;
|
|
use \wcf\system\WCF;
|
|
|
|
/**
|
|
* Shows information about Tims chat.
|
|
*
|
|
* @author Tim Düsterhus
|
|
* @copyright 2010-2012 Tim Düsterhus
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
|
* @package be.bastelstu.wcf.chat
|
|
* @subpackage page
|
|
*/
|
|
class ChatCopyrightPage extends AbstractPage {
|
|
/**
|
|
* @see \wcf\page\AbstractPage::$neededModules
|
|
*/
|
|
public $neededModules = array('CHAT_ACTIVE');
|
|
|
|
/**
|
|
* @see \wcf\page\AbstractPage::$neededPermissions
|
|
*/
|
|
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');
|
|
\wcf\util\HeaderUtil::sendNoCacheHeaders();
|
|
$images = explode("\n\n", file_get_contents(__FILE__, null, null, __COMPILER_HALT_OFFSET__+2));
|
|
echo base64_decode($images[array_rand($images)]);
|
|
exit;
|
|
}
|
|
}
|
|
__halt_compiler();/*iVBORw0KGgoAAAANSUhEU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