// success message to show $focus = 'username'; // id of the field to focus to after loading the page $heading = $PHORUM['DATA']['LANG']['LogIn']; // The page heading // init for later use $redir = phorum_api_url(PHORUM_LIST_URL); // Determine to what URL the user must be redirected after login. if (!empty($PHORUM['args']['redir'])) { $redir = urldecode($PHORUM['args']['redir']); } elseif (!empty($_GET['redir'])) { $redir = $_GET['redir']; } elseif (!empty($_POST['redir'])) { $redir = $_POST['redir']; } elseif (!empty($_SERVER['HTTP_REFERER'])) { $base = strtolower(phorum_api_url_base()); $len = strlen($base); if (strtolower(substr($_SERVER['HTTP_REFERER'], 0, $len)) == $base) { $redir = $_SERVER['HTTP_REFERER']; } } // ---------------------------------------------------------------------------- // Handle a logout request // ---------------------------------------------------------------------------- if ($PHORUM['DATA']['LOGGEDIN'] && !empty($PHORUM['args']['logout'])) { /* * [hook] * before_logout * * [description] * This hook can be used for performing tasks before a user logout.
* A value of 0 (zero) will suppress all debug output. * * @var Integer */ debuglevel: 0, /** * @property http_path * * The base URL for the forum. JavaScript code can use this URL to build * URLs for this forum. * * @var String */ http_path: '<?php print phorum_api_url_base(); ?> ' }; /** * @class Phorum.jQuery * * <p> * The jQuery object for the jQuery library that Phorum loads is * stored in Phorum.jQuery. * </p> * <p> * A short length reference to the jQuery object is additionally stored * in the global variable <b>$PJ</b> instead of the default <b>$</b> * jQuery variable. * </p>