Exemplo n.º 1
0
    ui_top();
    echo '<p>I think I know I mean "Yes," but it\'s all wrong.</p>';
    ui_bottom();
    exit;
    //Important!
}
if (userblock_checkblock($user_id)) {
    ui_top();
    echo '<p class="error">IXΘYΣ! Du har blivit blockad, var snel hest så slipper du sånt ;)<br /><em>Visste du förresten att IXΘYΣ betyder Fisk på grekiska?</em></p>';
    ui_bottom();
    exit;
}
/* Fetch profile data... */
$params['user_id'] = $user_id;
$params['show_removed_users'] = isset($_GET['show_removed_users']) && is_privilegied('use_ghosting_tools');
$profile = profile_fetch($params);
/* lvl 3+ benefit */
if (is_privilegied('use_ghosting_tools')) {
    $_GET['override'] = false;
}
/* ...and check for errors. */
if (strlen($profile['error_message']) > 0 && !$_GET["override"]) {
    $ui_options['title'] .= 'Presentationsfel - Hamsterpaj.net';
    ui_top($ui_options);
    echo '<h1>Presentationsfel</h1>';
    echo '<p>' . $profile['error_message'] . '</p>';
    ui_bottom();
    exit;
    //Important!
}
/* Set page title */
Exemplo n.º 2
0
                }
            }
            $out .= '<input type="submit" value="Spara" />' . "\n";
            $out .= '</form>' . "\n";
            $out .= '</div>' . "\n";
        }
        $out .= '<div id="flags_customize_message" style="color: red; font-weight: bold;"></div>' . "\n";
        $out .= '</div>' . "\n";
        echo $out;
        $output .= rounded_corners_tabs_bottom();
    } else {
        $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '/installningar/profilesettings.php', 'label' => 'Ändra presentationen', 'current' => TRUE);
        $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=theme_select', 'label' => 'Byt tema');
        $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=flags_select', 'label' => 'Välj flaggor');
        $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '/traffa/profile.php', 'label' => 'Till min presentation');
        $output .= rounded_corners_tabs_top($rounded_corners_tabs_options);
        $profile = profile_fetch(array('user_id' => $user_id));
        echo profile_presentation_change_form($profile);
        $output .= rounded_corners_tabs_bottom();
    }
    //$rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?show=boys', 'label' => 'Förhandsgranska');
    //$output .= rounded_corners_tabs_top($rounded_corners_tabs_options);
    //$profile = profile_fetch( array('user_id' => $user_id) );
    //echo profile_presentation_change_form($profile);
    //echo "test";
    //$output .= rounded_corners_tabs_bottom();
} else {
    $output .= 'Men tjockis, du måste vara inloggad för att se den här sidan!';
}
echo $output;
ui_bottom();