Skip to content

Instantly share code, notes, and snippets.

@3D-I 3D-I/hook_troll.php
Created Nov 1, 2015

Embed
What would you like to do?
<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2008 evil3
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* Hook into the session system
*/
function troll_user_session_handler(&$hook)
{
if (!class_exists('trollmod'))
{
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . 'includes/functions_troll.' . $phpEx);
}
trollmod::common();
if (trollmod::is_troll())
{
trollmod::process_troll();
}
return;
}
$phpbb_hook->register('phpbb_user_session_handler', 'troll_user_session_handler');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.