Created
November 1, 2015 21:17
-
-
Save 3D-I/4d77eb828917516d4557 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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