Beispiel #1
0
                default:
                    $view = 0;
                    $page_title = sprintf(_('notas de %s'), $user->username);
                    $globals['search_options']['u'] = $user->username;
                    $where = "post_user_id={$user->id}";
                    $order_by = "ORDER BY post_id desc";
                    $limit = "LIMIT {$offset},{$page_size}";
                    $rows = $db->get_var("SELECT count(*) FROM posts WHERE post_user_id={$user->id}");
                    $rss_option = "sneakme_rss2.php?user_id={$user->id}";
            }
        }
}
if (isset($globals['canonical_server_name']) && $globals['canonical_server_name'] != get_server_name()) {
    $globals['noindex'] = true;
}
do_header($page_title, _('nótame'), get_posts_menu($tab_option, $user->username));
$conversation_extra = '';
if ($tab_option == 4) {
    if ($current_user->user_id == $user->id) {
        //$conversation_extra = ' ['.Post::get_unread_conversations($user->id).']';
        $conversation_extra = ' [<span id="p_c_counter">0</span>]';
        $whose = _('mías');
    } else {
        $whose = _('suyas');
    }
    $options = array($whose => post_get_base_url($user->username), _('amigos') => post_get_base_url("{$user->username}/_friends"), _('favoritos') => post_get_base_url("{$user->username}/_favorites"), _('conversación') . $conversation_extra => post_get_base_url("{$user->username}/_conversation"), sprintf(_('debates con %s'), $user->username) => $globals['base_url'] . "between.php?type=posts&amp;u1={$current_user->user_login}&amp;u2={$user->username}", sprintf(_('perfil de %s'), $user->username) => get_user_uri($user->username));
} elseif ($tab_option == 1 && $current_user->user_id > 0) {
    //$conversation_extra = ' ['.Post::get_unread_conversations($user->id).']';
    $conversation_extra = ' [<span id="p_c_counter">0</span>]';
    $view = 0;
    $options = array(_('todas') => post_get_base_url(''), _('amigos') => post_get_base_url("{$current_user->user_login}/_friends"), _('favoritos') => post_get_base_url("{$current_user->user_login}/_favorites"), _('conversación') . $conversation_extra => post_get_base_url("{$current_user->user_login}/_conversation"), _('últimas imágenes') => "javascript:fancybox_gallery('post');", _('debates') . '&nbsp;&rarr;' => $globals['base_url'] . "between.php?type=posts&amp;u1={$current_user->user_login}");
Beispiel #2
0
switch ($argv[1]) {
    case 'sent':
        $where = "privates.user = {$current_user->user_id}";
        $order_by = "ORDER BY date desc";
        $limit = "LIMIT {$offset},{$page_size}";
        $view = 1;
        break;
    default:
        $where = "privates.to = {$current_user->user_id}";
        $order_by = "ORDER BY date desc";
        $limit = "LIMIT {$offset},{$page_size}";
        $view = 0;
        User::reset_notification($current_user->user_id, 'private');
}
$rows = $db->get_var("select count(*) from privates where {$where}");
do_header($page_title, _('privados'), get_posts_menu(5, $user->username));
$options = array(_('recibidos') => post_get_base_url('_priv'), _('enviados') => post_get_base_url('_priv') . '/sent');
do_priv_subheader($options, $view);
/*** SIDEBAR ****/
echo '<div id="sidebar">';
do_banner_right();
//do_best_stories();
if ($rows > 20) {
    do_best_posts();
    do_best_comments();
}
echo '</div>' . "\n";
/*** END SIDEBAR ***/
echo '<div id="newswrap"><!-- sneakme/priv.php -->' . "\n";
if (check_email($current_user->user_email)) {
    Haanga::Load('priv_notify.html');