0 ) {
$mods = '
Moderators: ';
while($row = db_fetch_assoc($erg) ) {
$mods .= ''.$row['name'].', ';
}
$mods = substr ( $mods , 0 , -2 );
return ($mods);
} else {
return ('');
}
}
# forum oder topic las update zeit
# id ( forum oder topic id )
# fid ( 0 is forum, > 0 is forum_id_vom_topic )
function icq_status($icq) {
#$fp = fsockopen ("status.icq.com", 80, &$errno, &$errstr, 1) or $online="0";
fputs($fp, "GET /online.gif?icq=$icq&img=5&online= HTTP/1.0\n\n");
while(!feof($fp) && !$icq_finished) {
$line = fgets ($fp,128);
if (substr($line,0,9) == 'Location:') {
if (substr($line,13,11) == 'online1.gif') { $online = "1"; $icq_finished = true;}
elseif (substr($line,13,11) == 'online0.gif') { $online = "0"; $icq_finished = true;}
elseif (substr($line,13,11) == 'online2.gif') { $online = "2"; $icq_finished = true;}
}
}
fclose($fp);
if($online == "1") { return "1"; }
elseif($online=="0") { return "0";; }
elseif($online=="2") { return "2"; }
else { echo("da stimmt was nicht"); }
}
function forum_get_ordner ( $ftime, $id, $fid =0 ) {
if ( $ftime >= $_SESSION['lastlogin'] ) {
if ( $fid == 0 ) {
$anzOpenTopics = db_result(db_query("SELECT COUNT(*) FROM prefix_topics LEFT JOIN prefix_posts ON prefix_posts.id = prefix_topics.last_post_id WHERE prefix_topics.fid = ".$id." AND prefix_posts.time >= ".$_SESSION['lastlogin'] ),0);
if ( (($anzOpenTopics > 0 ) AND !isset($_SESSION['forumSEE'][$id]))
OR $anzOpenTopics > count($_SESSION['forumSEE'][$id])
OR max ( $_SESSION['forumSEE'][$id] ) <= ( $ftime - 4 )
) {
return ( 'nord' );
} else {
return ( 'ord' );
}
} else {
if ( isset ($_SESSION['forumSEE'][$fid][$id]) AND $ftime <= $_SESSION['forumSEE'][$fid][$id] ) {
return ( 'ord' );
} else {
return ( 'nord' );
}
}
} else {
return ('ord');
}
}
function check_for_pm_popup () {
# opt_pm_popup
if (1 == db_result(db_query("SELECT COUNT(*) FROM prefix_user where id = ".$_SESSION['authid']." AND opt_pm_popup = 1"),0,0) AND 1 <= db_result(db_query("SELECT COUNT(*) FROM prefix_pm WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid'] ),0) ) {
$x = <<< html
|
|