Example #1
0
    $modSettings['enableCompressedOutput'] = '0';
    // !!! Do we want these hard coded?
    $modSettings['defaultMaxMessages'] = 5;
    $modSettings['defaultMaxTopics'] = 9;
    // Wireless protocol header.
    if (WIRELESS_PROTOCOL == 'wap') {
        header('Content-Type: text/vnd.wap.wml');
    }
}
// Restore post data if we are revalidating OpenID.
if (isset($_GET['openid_restore_post']) && !empty($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post']) && empty($_POST)) {
    $_POST = $_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post'];
    unset($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]);
}
// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());
// Call obExit specially; we're coming from the main area ;).
obExit(null, null, true);
// The main controlling function.
function smf_main()
{
    global $modSettings, $settings, $user_info, $board, $topic, $board_info, $maintenance, $sourcedir;
    // Special case: session keep-alive, output a transparent pixel.
    if (isset($_GET['action']) && $_GET['action'] == 'keepalive') {
        header('Content-Type: image/gif');
        die("GIF89a€!ù,D;");
    }
    // Load the user's cookie (or set as guest) and load their settings.
    loadUserSettings();
    // Load the current board's information.
    loadBoard();
Example #2
0
    // !!! Do we want these hard coded?
    $modSettings['defaultMaxMessages'] = 5;
    $modSettings['defaultMaxTopics'] = 9;
    // Wireless protocol header.
    if (WIRELESS_PROTOCOL == 'wap') {
        header('Content-Type: text/vnd.wap.wml');
    }
}
// Restore post data if we are revalidating OpenID.
if (isset($_GET['openid_restore_post']) && !empty($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post']) && empty($_POST)) {
    $_POST = $_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post'];
    unset($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]);
}
// What function shall we execute? (done like this for memory's sake.)
// Hack's Park Shoutbox -->
call_user_func(Shoutbox_Load(smf_main()));
// <-- Hack's Park Shoutbox
// Call obExit specially; we're coming from the main area ;).
obExit(null, null, true);
// The main controlling function.
function smf_main()
{
    global $modSettings, $settings, $user_info, $board, $topic, $board_info, $maintenance, $sourcedir;
    // Special case: session keep-alive, output a transparent pixel.
    if (isset($_GET['action']) && $_GET['action'] == 'keepalive') {
        header('Content-Type: image/gif');
        die("GIF89a€!ù,D;");
    }
    // Load the user's cookie (or set as guest) and load their settings.
    loadUserSettings();
    // Load the current board's information.