Esempio n. 1
0
     exit;
 }
 $uid = $userdata['userid'];
 if (get_user_right($f_id) == 0) {
     show_error('ln_error_10', $modul_name);
     exit;
 }
 $topic_count = 1;
 $last_post_id = 0;
 $a_count = 0;
 $result = $db->query("SELECT * FROM cc" . $n . "_forum_posts where si_forum_id = '" . $f_id . "' and si_topic_id='" . $ft_id . "' ORDER BY si_post_time ASC");
 while ($row = $db->fetch_array($result)) {
     $post_name_t = $row['si_poster_name'];
     $post_new_id = $row['si_post_id'];
     $post_id_t = $row['si_poster_id'];
     $post_name = generate_userlink($post_id_t, $post_name_t);
     $post_text = bb2html($row['si_post_text']);
     $post_date_t = $row['si_post_time'];
     $post_date = date("d.m.Y, H:i", $post_date_t);
     if ($last_post_id < $post_new_id) {
         $last_post_id = $post_new_id;
     }
     if ($post_id_t == $userdata['userid']) {
         $post_edit_pic = "<a href=\"forum.php?action=edit&ft_id={$ft_id}&f_id={$f_id}&fp_id={$post_new_id}\"><img src=\"" . LITO_IMG_PATH_URL . $modul_name . "/edit.png\" title=\"Bearbeiten\" alt=\"Bearbeiten\" border=\"0\"></a>";
     } else {
         $post_edit_pic = "";
     }
     // l�schen
     $ali_admin = $userdata['isadmin'];
     if ($post_id_t == $userdata['userid'] || $ali_admin == 1) {
         $post_del_pic = "<a href=\"forum.php?action=delete&ft_id={$ft_id}&f_id={$f_id}&fp_id={$post_new_id}\"><img src=\"" . LITO_IMG_PATH_URL . $modul_name . "/del.png\" title=\"L�schen\" alt=\"L�schen\" border=\"0\"></a>";
Esempio n. 2
0
     } else {
         $online = "<span class=\"red\">&nbsp;(off)</span>";
     }
     $alli = $row['allianzid'];
     $chpt = $row['points'] - $row['lastpoints'];
     if ($chpt > 0) {
         $chpt = "(+{$chpt})";
     } elseif ($chpt < 0) {
         $chpt = "({$chpt})";
     } else {
         $chpt = "";
     }
     $lastlog = strftime("%d.%m. %H:%M", $row['lastlogin']);
     $allianzname = generate_allilink($row['allianzid']);
     $nn++;
     $inhalt[$nn]['username'] = generate_messagelink_smal($row['username']) . " " . generate_userlink($row['userid'], $row['username']) . $online;
     $inhalt[$nn]['ali_name'] = $allianzname;
     $inhalt[$nn]['ali_id'] = $row['allianzid'];
     $inhalt[$nn]['points'] = $row['points'] . " " . $chpt;
     $inhalt[$nn]['online'] = $online;
     $inhalt[$nn]['user_id'] = $row['userid'];
     $inhalt[$nn]['login'] = $lastlog;
     $inhalt[$nn]['platz'] = $i;
 }
 for ($i = 0; $i < $maxpage + 1; $i++) {
     $pagesbit .= "<option value=\"{$i}\">" . ($i + 1) . "</option>";
 }
 $tpl->assign('page', $pagesbit);
 $tpl->assign('daten', $inhalt);
 template_out('ranking.html', $modul_name);
 exit;
Esempio n. 3
0
        }
        $alli = $row['allianzid'];
        $chpt = $row['points'] - $row['lastpoints'];
        $lastlog = strftime("%d.%m. %H:%M", $row['lastlogin']);
        if ($row['allianzid'] == 0) {
            $allianzname = "";
        } else {
            $allianzname = allianz($row['allianzid']);
        }
        $userpic = "";
        if ($row['userpic'] == "") {
            $userpic = LITO_IMG_PATH_URL . "members/no_user_pic.jpg";
        } else {
            $userpic = $row['userpic'];
        }
        $daten[$i]['profile_link'] = generate_userlink($row['userid'], $row['username']);
        $daten[$i]['name'] = $username;
        $daten[$i]['u_points'] = $userpoints;
        $daten[$i]['image'] = $userpic;
        $daten[$i]['u_online'] = $online;
        $daten[$i]['lastlogin'] = $lastlog;
        $daten[$i]['alianz'] = $allianzname;
        $daten[$i]['message'] = generate_messagelink_smal($username);
        $i++;
    }
    if ($i > 0) {
        $tpl->assign('daten', $daten);
    }
    template_out('search.html', $modul_name);
    exit;
}
Esempio n. 4
0
 $id = intval($_GET['id']);
 if (!$id) {
     show_error('ln_allianz_e_4', $modul_name);
     exit;
 }
 $result = $db->query("SELECT * FROM cc" . $n . "_allianz WHERE aid='{$id}'");
 $row = $db->fetch_array($result);
 $banner = trim($row['imageurl']);
 if ($banner == "") {
     $banner = LITO_IMG_PATH_URL . $modul_name . "/no_ali_banner.png";
 }
 $description = bb2html($row['text_long']);
 $ibit = "";
 $result = $db->query("SELECT userid,username,is_ali_admin,status FROM cc" . $n . "_users WHERE allianzid='{$id}' ORDER BY is_ali_admin DESC");
 while ($i = $db->fetch_array($result)) {
     $ibit .= generate_messagelink_smal($i[username]) . " " . generate_userlink($i[userid], $i[username]);
     if ($i['is_ali_admin'] == 1) {
         $ibit .= " (Leiter)";
     }
     $ibit .= " {$img}<br>";
 }
 $is_in_ali = 0;
 if (intval($userdata['allianzid']) > 0) {
     $is_in_ali = 1;
 }
 $tpl->assign('is_in_ali', $is_in_ali);
 $tpl->assign('banner', $banner);
 $tpl->assign('name', $row['name']);
 $tpl->assign('text', $row['text']);
 $tpl->assign('points', intval($row['points']));
 $tpl->assign('ibit', $ibit);
Esempio n. 5
0
    $time = date("d.m.Y, H:i", $row['time']);
    $M_USER_ID = $row['fromuserid'];
    $M_USER_NAME = $row['username'];
    if ($op_use_badwords == 1) {
        $result_bad = $db->query("select badword from cc" . $n . "_badwords where in_mail ='1'");
        while ($row_bad = $db->fetch_array($result_bad)) {
            $text = str_replace($row_bad['badword'], "**ZENSIERT**", $text);
        }
    }
    $tpl->assign('M_USER_ID', $M_USER_ID);
    $tpl->assign('M_USER_NAME', $M_USER_NAME);
    $tpl->assign('M_SUBJECT', $row['subject']);
    $tpl->assign('M_TEXT', $text);
    $tpl->assign('M_ID', $row['pmid']);
    $tpl->assign('M_DATE', $time);
    $link = generate_userlink($row['fromuserid'], $row['username']);
    $tpl->assign('PROFIL_LINK', $link);
    template_out('message_read.html', $modul_name);
    exit;
}
if ($action == "remove") {
    $pmid = intval($_GET['pmid']);
    if (!$pmid) {
        show_error('ln_system_error_m', $modul_name);
        exit;
    }
    $db->unbuffered_query("DELETE FROM cc" . $n . "_messages WHERE pmid='{$pmid}' AND touserid='" . $userdata['userid'] . "'");
    header("LOCATION: message.php");
    exit;
}
if ($action == "OK") {