} else { if ($_GET['signup_success'] == 'false') { $infobox_header = $l['Could_not_sign_up']; $infobox_green_red = 'red'; $infobox_body = "<p>" . $l['An_error_occured_creating_account__'] . "</p><p>" . $_GET['signup_message'] . "</p>"; } } // login if ($_GET['login_message']) { $infobox_header = $l['Failed_to_log_in']; $infobox_green_red = 'red'; $infobox_body = "<p>" . $l['An_error_occured_logging_in__'] . "</p><p>" . $_GET['login_message'] . "</p>"; } // email confirmation if ($_GET['hash'] && $_GET['email']) { if (Database::confirm_email($_GET['email'], $_GET['hash'])) { $infobox_header = $l['Email_address_confirmed']; $infobox_green_red = 'green'; $infobox_body = "<p>" . $l['Email_now_confirmed__'] . " " . $_GET['email'] . "</p>"; } else { $infobox_header = $l['Email_address_not_confirmed']; $infobox_green_red = 'red'; $infobox_body = "<p>" . $l['The_email_address_is_not_confirmed_'] . " " . $_GET['email'] . "</p>"; } } if (!is_null($infobox_body) && !is_null($infobox_green_red) && !is_null($infobox_header)) { echo ' <div class="box"> <div class="box-head ' . $infobox_green_red . '">' . $infobox_header . '</div> <div class="box-body">' . $infobox_body . '</div> </div>';