Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Debug phpBB installation path detections
*/
define('IN_PHPBB', true);
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path = (strpos(__FILE__, 'adm/') !== false) ? './../' : './';
include($phpbb_root_path . 'common.' . $phpEx);
<?php
/**
* POP3 authentication plugin for phpBB
*
* @package login
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @copyright (c) 2009 Chris Smith
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
<?php
/**
* phpBB authentication plugin to check multiple plugins
* Need to actually complete this
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
@cs278
cs278 / cache-test.php
Created February 11, 2010 13:35
phpBB Cache Tester
<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2009 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
@cs278
cs278 / hook_disable-admin-reauth.php
Created October 26, 2009 18:06
phpBB Hook - Disables admin reauthentication.
<?php
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
@cs278
cs278 / is_serialized.php
Created October 23, 2009 18:25
PHP is_serialized() function.
<?php
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
/**
<?php
/**
*
* @package acm
* @version $Id$
* @copyright (c) 2005, 2009 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
@cs278
cs278 / hook_enable-debug-for-founders.php
Created April 5, 2009 14:49
phpBB Hook - Enables debug mode for founders.
<?php
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
@cs278
cs278 / hook_trusted-users.php
Created March 15, 2009 17:50
phpBB Hook - Disables post queue for trusted users.
<?php
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
<?php
/**
*
* @package acm
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/