require_once BH_INCLUDE_PATH . 'timezone.inc.php'; require_once BH_INCLUDE_PATH . 'user.inc.php'; // End Required includes // Where are we going after we've logged on? if (isset($_GET['final_uri']) && strlen(trim($_GET['final_uri'])) > 0) { $available_files_preg = implode("|^", array_map('preg_quote_callback', get_light_mode_files())); if (preg_match("/^{$available_files_preg}/u", trim($_GET['final_uri'])) > 0) { $final_uri = href_cleanup_query_keys($_GET['final_uri']); } } // check to see if user registration is available if (forum_get_setting('allow_new_registrations', 'N')) { light_html_draw_error(gettext("Sorry, new user registrations are not allowed right now. Please check back later.")); } // Get an array of available emoticon sets $available_emoticons = emoticons_get_available(); // Get an array of available languages $available_langs = lang_get_available(); // Get an array of available timezones. $available_timezones = get_available_timezones(); // Initialise the text captcha $text_captcha = new captcha(6, 15, 25, 9, 30); // Array to hold error messages $error_msg_array = array(); $logon = null; $nickname = null; $email = null; $private_key = null; $password = null; $check_password = null; if (isset($_GET['private_key']) && strlen(trim($_GET['private_key'])) > 0) {
require_once BH_INCLUDE_PATH . 'constants.inc.php'; require_once BH_INCLUDE_PATH . 'emoticons.inc.php'; require_once BH_INCLUDE_PATH . 'form.inc.php'; require_once BH_INCLUDE_PATH . 'format.inc.php'; require_once BH_INCLUDE_PATH . 'forum.inc.php'; require_once BH_INCLUDE_PATH . 'html.inc.php'; require_once BH_INCLUDE_PATH . 'session.inc.php'; // End Required includes // Check we're logged in correctly if (!session::logged_in()) { html_guest_error(); } // Array to hold the emoticons $emoticon = array(); // Get array of available emoticon sets $emoticon_sets_array = emoticons_get_available(false); // Check for preview argument in URL. if (isset($_GET['pack']) && emoticons_set_exists($_GET['pack'])) { // Get the emoticon pack from the URL. $emoticon_set = basename($_GET['pack']); } else { if (isset($_SESSION['EMOTICONS']) && strlen(trim($_SESSION['EMOTICONS'])) > 0) { $emoticon_set = $_SESSION['EMOTICONS']; } else { // Get the user's emoticon pack. $emoticon_set = basename(forum_get_setting('default_emoticons', null, 'default')); } } // Check the emoticon set exists. if (!emoticons_set_exists($emoticon_set)) { // Use the forum default emoticon pack.