Skip to content

Instantly share code, notes, and snippets.

@3D-I
Created November 1, 2015 21:17
Show Gist options
  • Save 3D-I/4d77eb828917516d4557 to your computer and use it in GitHub Desktop.
Save 3D-I/4d77eb828917516d4557 to your computer and use it in GitHub Desktop.
<?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