Ejemplo n.º 1
0
                    light_html_draw_top(array('title' => gettext("User Registration")));
                    light_navigation_bar();
                    light_html_display_msg(gettext("Successfully created user account"), gettext("Your user account has been created but before you can start posting you must confirm your email address. Please check your email for a link that will allow you to confirm your address."), 'index.php', 'get', array('continue' => gettext("Continue")), array('final_uri' => $final_uri));
                    light_html_draw_bottom();
                    exit;
                } else {
                    light_html_draw_top(array('title' => gettext("User Registration")));
                    light_navigation_bar();
                    light_html_display_msg(gettext("Successfully created user account"), gettext("Your user account has been created but the required confirmation email was not sent. Please contact the forum owner to rectify this. In this meantime please click the continue button to login."), 'index.php', 'get', array('continue' => gettext("Continue")), array('final_uri' => $final_uri));
                    light_html_draw_bottom();
                    exit;
                }
            } else {
                light_html_draw_top(array('title' => gettext("User Registration")));
                light_navigation_bar();
                light_html_display_msg(gettext("Successfully created user account"), gettext("Your user account has been created successfully! Click the continue button below to login"), 'index.php', 'get', array('continue' => gettext("Continue")), array('final_uri' => $final_uri));
                light_html_draw_bottom();
                exit;
            }
        } else {
            $error_msg_array[] = gettext("Error creating user record");
            $valid = false;
        }
    }
}
light_html_draw_top(array('title' => gettext('User Registration'), 'js' => array('js/register.js')));
light_navigation_bar();
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    light_html_display_error_array($error_msg_array);
}
echo "<form accept-charset=\"utf-8\" name=\"form_register\" action=\"", get_request_uri(), "\" method=\"post\" target=\"_self\">\n";
Ejemplo n.º 2
0
                            header_redirect("lthread_list.php?webtag={$webtag}&mode={$mode}&folder={$folder}&mark_read_success=true");
                            exit;
                        } else {
                            $error_msg_array[] = gettext("Failed to mark selected threads as read");
                            $valid = false;
                        }
                    } else {
                        if ($_REQUEST['mark_read_type'] == THREAD_MARK_READ_FOLDER && (isset($folder) && is_numeric($folder))) {
                            if (threads_mark_folder_read($folder)) {
                                header_redirect("lthread_list.php?webtag={$webtag}&mode={$mode}&folder={$folder}&mark_read_success=true");
                                exit;
                            } else {
                                $error_msg_array[] = gettext("Failed to mark selected threads as read");
                                $valid = false;
                            }
                        }
                    }
                }
            }
        } else {
            unset($_REQUEST['mark_read_submit'], $_REQUEST['mark_read_confirm']);
            light_html_draw_top();
            light_html_display_msg(gettext("Confirm"), gettext("Are you sure you want to mark the selected threads as read?"), 'lthread_list.php', 'post', array('mark_read_submit' => gettext("Confirm"), 'cancel' => gettext("Cancel")), array_merge($_REQUEST, array('mark_read_confirm' => 'Y')));
            light_html_draw_bottom();
            exit;
        }
    }
}
light_html_draw_top();
light_draw_thread_list($mode, $folder, $start_from);
light_html_draw_bottom();
Ejemplo n.º 3
0
function light_html_draw_error($message, $href = null, $method = 'get', array $buttons = array(), array $vars = array())
{
    light_html_draw_top();
    light_navigation_bar();
    light_html_display_msg(gettext('Error'), $message, $href, $method, $buttons, $vars);
    light_html_draw_bottom();
    exit;
}
Ejemplo n.º 4
0
function light_html_draw_error($error_msg, $href = false, $method = 'get', $button_array = false, $var_array = false, $target = "_self")
{
    light_html_draw_top();
    light_html_display_msg(gettext('Error'), $error_msg, $href, $method, $button_array, $var_array, $target);
    light_html_draw_bottom();
    exit;
}