query("SELECT count(*) FROM ".$chatprefix."chatusers WHERE ipbanned ='1' AND lastip='$newip'"); if($db7->result() >= 1) { header("LOCATION: $zielerror"); } else { ##Linkschutz $aus="ja"; $refferer = $_SERVER['HTTP_REFERER']; $server = $_SERVER['SERVER_NAME']; if(!eregi("$server",$refferer) && !empty($refferer) && $linksecure == "ja" && $logout!="normal" && $logout!="fehler") { eval ("\$css .= \"".gettemplate("css")."\";"); eval("dooutput(\"".gettemplate("header")."\");"); echo "Aufruf von nicht erlaubter Domain.
$scopyrighttext
"; exit; } #Chat Options Auslesen und Starten der Datenbank Verbindung $db1=new db_local; $db2=new db_local; $db3=new db_local; $db1->query("SELECT * FROM ".$chatprefix."chat_options"); $db1->next_record(); $maxaway2 = $db1->record[maxaway]; $maxnoaway2 = $db1->record[maxnoaway]; $cookie = $db1->record[cookie]; $logchk = $db1->record[logincheck]; $regchk = $db1->record[regcheck]; $cookiechk = $db1->record[cookie]; $wiwchk = $db1->record[onlinecheck]; $tickerchk = $db1->record[tickercheck]; $statschk = $db1->record[statscheck]; $status = $db1->record[status]; $offlinemsg = $db1->record[offlinemsg]; $gastlogin = $db1->record[guest_addon]; $disclchk = $db1->record[disclaimcheck]; $werbeindexchk = $db1->record[werbung_index]; #Chat Options Auslesen Ende //offline-modus if($status==0) { if($offlinemsg) $offlinemsg2 = "$offlinemsg"; eval ("\$css .= \"".gettemplate("css")."\";"); eval("dooutput(\"".gettemplate("header")."\");"); eval("dooutput(\"".gettemplate("offlinemessagebit")."\");"); }else{ //kein offlinemodus, alles anzeigen #Wer ist Online Bug Behebung $db1->query("SELECT * FROM ".$chatprefix."chatusers where active = '1'"); while($db1->next_record()) { $time = time(); $onl = $time - $db1->record[lastaction]; $min = $onl/60; $min = sprintf("%.0lf",$min); $active = $db1->record[active]; $away = $db1->record[away]; $nick = $db1->record[nick]; $mode = $db1->record[mode]; $raum = $db1->record[room]; $streamabort = $db1->record[streamabort]; $streamchk = mktime() - $streamabort; if ($streamchk > 60 && $streamabort != 0) { $db5=new db_local; $db5->query("UPDATE ".$chatprefix."chatusers SET active='0', away='0', id='0', streamabort='0' WHERE nick = '$nick'"); } else if (($min >= "$maxnoaway2" && $away == "0") || $min >= "$maxaway2" ) { if ($mode >= "2" && $awayschutz=="ja") { } else { if ($active >="1") { $db5=new db_local; $db5->query("UPDATE ".$chatprefix."chatusers SET active='0', away='0', id='0', streamabort='0' WHERE nick = '$nick'"); } } } } #Wer ist Online Bug Behebung Ende #Logout Messages if($logout!="") { if ($logout=="del") { $logoutmessage = "$slogoutdel"; }else if($logout=="kick") { if($reason=="$standart_reason") { $logoutmessage = "$slogoutkick"; }else{ $logoutmessage = "$slogout_reason_kick"; $logoutmessage2 = "$reason"; } }else if ($logout=="ban") { $logoutmessage = "$slogoutban"; }else if ($logout=="autokick") { $logoutmessage = "$slogoutautokick"; }else if ($logout=="streamchk") { $logoutmessage = "$slogoutstream"; }else if ($logout=="normal") { $logoutmessage = "$slogoutnormal"; }else if ($logout=="fehler") $logoutmessage = "$slogouterror"; eval ("\$logoutmessagebit .= \"".gettemplate("logoutmessagebit")."\";"); } #Logout Messages Ende //Cookie Hack if ($cookie) { $username = $HTTP_COOKIE_VARS["chat_username"]; $userpass = $HTTP_COOKIE_VARS["chat_userpass"]; $chatroom = $HTTP_COOKIE_VARS["chat_chatroom"]; $time2=mktime(); $db1 -> query("UPDATE ".$chatprefix."chatusers SET streamabort='$time2' WHERE nick='$chatuser'"); // stream ist da if ($username && $userpass && $chatroom && !$logout) { eval ("\$autologinbit .= \"".gettemplate("autologinbit")."\";"); } } //ende cookie-hack #Login Raum Auswahl $db2->query("SELECT * FROM ".$chatprefix."chatrooms ORDER BY pos"); while ($db2->next_record()) { $room = $db2->record[name]; if(!eregi("sep_",$room) && !eregi("$adminroom",$room) && !eregi("$webbieroom",$room) && !eregi("$viproom",$room) ){ $db3->query("SELECT count(*) FROM ".$chatprefix."chatusers WHERE room = '$room' AND active= '1'"); $chatters = $db3->result(); eval ("\$raumwahlbit .= \"".gettemplate("raumwahlbit")."\";"); } } #Login Raum Auswahl Ende #Wer ist Wo Online #$db1 -> query("SELECT * FROM ".$chatprefix."chatrooms ORDER BY pos LIMIT 0,4"); $db1 -> query("SELECT * FROM ".$chatprefix."chatrooms ORDER BY pos LIMIT 0,$roomlisting"); while ($db1->next_record()) { $descr=$db1->record[descr]; $room = $db1->record[name]; $db2->query("SELECT * FROM ".$chatprefix."chatusers WHERE room='$room' AND active='1' ORDER BY mode,nick"); if(eregi("sep_",$room)) { $room='Sepraum'; } $num = $db2->num_rows(); if($num > 0) { while($db2->next_record()) { $username = $db2->record[nick]; if($profilcheckindex=="ja") { eval ("\$users .= \"".gettemplate("wiwoonlinebit_user")."\";"); } else { eval ("\$users .= \"".gettemplate("wiwoonlinebit_usernoprof")."\";"); } $users .= ", "; } $users = substr($users,0,-2); eval ("\$wiwoonlinebit .= \"".gettemplate("wiwoonlinebit")."\";"); $users = ""; }else{ eval ("\$wiwoonlinebit .= \"".gettemplate("wiwonobodyon")."\";"); } } #Wer ist Wo Online Ende #Newsticker $db2 -> query("SELECT * FROM ".$chatprefix."news"); while ($db2->next_record()) { $newsposter=$db2->record[newsposter]; $newstext=$db2->record[newstext]; $newstime = $db2->record[newstime]; $newsdate = $db2->record[newsdate]; $args = explode("-", $newsdate); $newsdate = "$args[2].$args[1].$args[0]"; if($tickerchk=="0") {eval ("\$newstickerbit .= \"".gettemplate("newstickerbit")."\";");} } #Newsticker Ende #Login Statistiken $db2->query("SELECT count(nick) from ".$chatprefix."chatusers WHERE mode >= 0"); $num=$db2->result(); $num_my=$num - 1; $db2->query("SELECT nick,creation FROM ".$chatprefix."chatusers WHERE mode >=0 ORDER BY creation ASC LIMIT ".$num_my." , 1 "); $db2->next_record(); $newest=$db2->record[nick]; $db2->query("SELECT count(*) FROM ".$chatprefix."chatusers WHERE active= '1'"); $chattersactive = $db2->result(); #jetzige zeit $zeit=time(); $datum=getdate($zeit); $zeit_null_uhr_heute=mktime(0,0,0,$datum[mon],$datum[mday],$datum[year]); $zeit_null_uhr_gestern=$zeit_null_uhr_heute - 86400; $db2->query("SELECT count(*) FROM ".$chatprefix."chatusers WHERE lastaction > '$zeit_null_uhr_gestern' AND lastaction < '$zeit_null_uhr_heute'"); $online_gestern=$db2->result(); $db2->query("SELECT count(*) FROM ".$chatprefix."chatusers WHERE lastaction > '$zeit_null_uhr_heute'"); $online_heute=$db2->result(); #zeilen zählen $db2->query("SELECT totalmsgs FROM ".$chatprefix."chatusers"); while($db2 -> next_record()) { $gesamt_post = $gesamt_post + $db2->record[totalmsgs]; } #Login Statistiken Ende #Registrierung if($disclchk=="1" && $regchk=="0") {eval ("\$registrationbit .= \"".gettemplate("registration_disclaimerbit")."\";");} else if($disclchk=="0" && $disclchk!="1" && $regchk=="0" && $regchk!="") {eval ("\$registrationbit .= \"".gettemplate("registrationbit")."\";");} ######## else {eval ("\$registrationbit .= \"".gettemplate("registrationoff")."\";");} if($logchk=="0") {eval ("\$loginbit .= \"".gettemplate("loginbit")."\";");} else {eval ("\$loginbit .= \"".gettemplate("loginoff")."\";");} if($wiwchk=="0") {eval ("\$wiwobit .= \"".gettemplate("wiwobit")."\";");} else {} if(!empty($bannerloginupper)) {eval ("\$bannerloginupperbit .= \"".gettemplate("bannerloginupperbit")."\";");} if(!empty($bannerloginbottom)) {eval ("\$bannerloginbottombit .= \"".gettemplate("bannerloginbottombit")."\";");} if($gastlogin=="1") {eval ("\$gastloginbit .= \"".gettemplate("gastloginbit")."\";");} else {} if($statschk=="0" && $profilcheckindex=="ja") { eval ("\$loginstatistikbit .= \"".gettemplate("loginstatistikbit")."\";"); } else if($statschk=="0" && $profilcheckindex!="ja") { eval ("\$loginstatistikbit .= \"".gettemplate("loginstatistikbitnoprof")."\";"); } else {} if($statschk=="0") {eval ("\$logincounterbit .= \"".gettemplate("logincounterbit")."\";");} if($werbeindexchk=="1") { $db1->query("SELECT count(*) FROM ".$chatprefix."chat_advertisement"); $idwert=$db1->result(); srand ((double)microtime()*1000000); $id2 = rand(1,$idwert); $result= mysql_query("SELECT * FROM ".$chatprefix."chat_advertisement limit 0,$id2"); while($row = mysql_fetch_array($result)){ $werbungsframe2 = $row[code]; } eval ("\$advertisementbit .= \"".gettemplate("advertisementbit")."\";"); } eval ("\$css .= \"".gettemplate("css")."\";"); eval ("\$chatfooter .= \"".gettemplate("chatfooter")."\";"); eval("dooutput(\"".gettemplate("index")."\");"); $db2->close(); $db3->close(); } } $db1->close(); #$db2->close(); #$db3->close(); $db7->close(); ?>