2012-01-14 15:33:44 +00:00
|
|
|
|
<?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');
|
2012-01-18 20:43:26 +00:00
|
|
|
|
\wcf\util\HeaderUtil::sendNoCacheHeaders();
|
|
|
|
|
$images = explode('8b7908231504de26ce32f70744b5cb2b6da6fd46', file_get_contents(__FILE__, null, null, __COMPILER_HALT_OFFSET__));
|
|
|
|
|
echo $images[array_rand($images)];
|
2012-01-14 15:33:44 +00:00
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
__halt_compiler();<EFBFBD>PNG
|
|
|
|
|
|
|
|
|
|
|