sql_qry("SELECT id FROM $rubriktable"); if($_GET["logout"]=="true") { $DB->sql_qry("UPDATE $usertable SET lastlogin=time, unread='', online=0 WHERE user='".$_SESSION["SESSION"]["user"]."'"); setcookie("COOKIE_user"); setcookie("COOKIE_pw"); unset($_SESSION["SESSION"]); session_destroy(); if(is_array($_GET)) $akturl=preg_replace("/([&|\?]+)logout=true/","",build_url()); header("location: ".$_SERVER["PHP_SELF"].$akturl); } $design=$DB->sql($designtable,"*"," WHERE name='Odyssee'"); if(!$DB->sql_num($designtable,"maximgheight"," WHERE name='Odyssee'")) die ("
ERROR: Sie haben keinen \"Style\" geladen
Gehen Sie in den Adminbereich und wählen Sie den Menüpunkt \"Styles\" an. Dort klicken Sie bei dem gewünschten Style auf \"Load\"
"); if(isset($_COOKIE["COOKIE_user"]) && isset($_COOKIE["COOKIE_pw"]) && ($_SESSION["SESSION"]['loggedin']=="false" || $_SESSION["SESSION"]["id"]=="") && $_POST['loginsession']!="true") $error_login=sessionlogin($_COOKIE["COOKIE_user"],$_COOKIE["COOKIE_pw"]); elseif($_SESSION["SESSION"]["id"]=="" or $_SESSION["SESSION"]['loggedin']=="" or $_POST['loginsession']=="true") { $error_login=sessionlogin($_POST['user_login'],md5($_POST['pw_login'])); if($_SESSION["SESSION"]['loggedin']=="true" && !isset($_COOKIE["COOKIE_user"]) && !isset($_COOKIE["COOKIE_pw"])) { $continue="true"; } elseif($_SESSION["SESSION"]['loggedin']=="true" && $_COOKIE["COOKIE_user"]!=$_SESSION["SESSION"]['user'] or $_SESSION["SESSION"]['loggedin']=="true" && $_COOKIE["COOKIE_pw"]!=$_SESSION["SESSION"]['pw']) { $continue="true"; } if($continue=="true") { setcookie("COOKIE_user",$_SESSION["SESSION"]['user'],zeit()+3600*24*356); setcookie("COOKIE_pw",$_SESSION["SESSION"]['pw'],zeit()+3600*24*356); } } if($error_login=="" && $_SESSION["SESSION"]['id']=="") header("location: ".$_SERVER["PHP_SELF"].$akturl); if(isset($_GET['rid'])) $_USERMODSTATUS=modquery ($_SESSION["SESSION"]['user'],$_GET['rid']); $actionarray=array("editbeitrag","pm","newpoll","newtermin","newthread","regelverstoss","register","userdetails","threadedit","newmail"); if((!in_array($_GET["action"],$actionarray) && $_GET["post"]!="newentry" && (($_GET["insertsql"]==1 && $error_report=="") OR $_GET["insertsql"]=="") && is_array($_SESSION["ERROR"])) || ($_GET["newpm"]!="true" && $_GET["option"]!="new_pm" && $_GET["action"]=="pm" && is_array($_SESSION["ERROR"]))) { foreach($_SESSION["ERROR"] as $key => $arsch) { unset($_SESSION["ERROR"][$key]); } } if($_SESSION["SESSION"]['loggedin']=="true" && $_GET["logout"]!="true") { usercheck ($_SESSION["SESSION"]['user'],$_SESSION["SESSION"]['pw']); if((($x!="change" or $error_report!="") && ($_SESSION["SESSION"][user]==$_POST[ud_user] or $error_report!="")) or $_GET["insertsql"]!=1) update_list(); } delete_ips(); logout_user(); if($_GET['insertsql']!="") include("inc/insertsql.php"); ?> <? echo $design['forumname']; ?> " : ""; include("inc/header_odyssee.htm"); // ########################### Rubriken Anzeigen ########################### // ######################################################################### echo "\n"; echo "\n"; echo "
\n"; if($_GET['rid']=="" && $_GET['tid']=="") { toptable ("Home"); if($_GET['action']!="" && $error_report=="") include("inc/".$_GET['action'].".php"); else { if($error_report!="") { include("inc/errors.php"); eval("echo \"".$TMP->tmp_compile("templates/errors.htm",1)."\";"); } else { if($_GET['register']=="true" or $chdaten=="true") { $text_ins=($design["account_act"]==1) ? "Sie erhalten eine E-mail sobald der Administrator Ihren Account aktiviert hat" : "Bitte haben Sie einen Augenblick Geduld. Sie werden in wenigen Sekunden weitergeleitet oder klicken Sie hier"; eval("echo \"".$TMP->tmp_compile("templates/redirect.htm",0,true)."\";"); } else { eval("echo \"".$TMP->tmp_compile("templates/rubriken.htm",0,true)."\";"); $rubrikgroupquery=$DB->sql_qry("SELECT * FROM $rubrikgrouptable order by sortgroup ASC"); while($rubrikgroupdaten=mysql_fetch_array($rubrikgroupquery)) { $rubrikquery=$DB->sql_qry("SELECT * FROM $rubriktable WHERE gruppe='".$rubrikgroupdaten['id']."'"); $rubriknum=mysql_num_rows($rubrikquery); if($rubriknum!="0") { eval("echo \"".$TMP->tmp_compile("templates/rubriken.htm",1)."\";"); while($rubrikdaten=mysql_fetch_array($rubrikquery)) { if($_SESSION["SESSION"]['loggedin']=="true") $alreadyread=unread_rubrik($rubrikdaten['id']); if($rubrikdaten['beschreibung']!="") $beschr_ins="
- ".$rubrikdaten['beschreibung']; $threads_ins=$DB->sql_num ($threadstable,"id"," WHERE rubrikid='".$rubrikdaten['id']."'"); $beitraege_ins=$DB->sql_num ($beitraegetable,"id"," WHERE rubrikid='".$rubrikdaten['id']."'"); $lastpost_ins=getlastpost ($rubrikdaten['id'],"rubrikright","rubrikid"); $mods_ins=getmods ($rubrikdaten['moderator'],"rubrikright"); eval("echo \"".$TMP->tmp_compile("templates/rubriken.htm",2)."\";"); } } } eval("echo \"".$TMP->tmp_compile("templates/rubriken.htm",3)."\";"); } } } } // ########################### Threads Anzeigen ########################### // ######################################################################## elseif($_GET['rid']!="" && $_GET['tid']=="") { $rubrikdaten=$DB->sql($rubriktable,"*"," WHERE id='".$_GET['rid']."'"); $rubriknameshow=(strlen($rubrikdaten['name']) > 30) ? substr($rubrikdaten['name'],0,30)." [...]" : $rubrikdaten['name']; $rgdaten=$DB->sql($rubrikgrouptable,"groupname"," WHERE id='".$rubrikdaten['gruppe']."'"); toptable ("Home | ".$rgdaten['groupname']." -> $rubriknameshow"); if($_GET['action']!="") @include("inc/".$_GET['action'].".php"); else { if($error_report!="") include("inc/errors.php"); else { $threadnum=$DB->sql_num($threadstable,"id"," WHERE rubrikid='".$_GET['rid']."'"); $previousrubrik=getpreviousthread ($rubriktable,$_GET['rid'],2); $nextrubrik=getnextthread ($rubriktable,$_GET['rid'],2); showrtjump ($design['roundbg'],"top",$previousrubrik,$nextrubrik,"","","","main"); if($rubrikdaten['type']!="default" && !check_intern_access()) { echo "
\n"; include("inc/intern.php"); echo "\n\n"; } else { if(!$threadnum) eval("echo \"".$TMP->tmp_compile("templates/threads.htm",0,true)."\";"); else { show_threads(); showrtjump ($design['roundbg'],"bottom",$previousrubrik,$nextrubrik,"","","","main"); eval("echo \"".$TMP->tmp_compile("templates/threads.htm",5)."\";"); } $end=(isset($_GET['tps'])) ? $_GET["tps"] : $design["tps"]; $result=beitragzahl($end,$threadnum); if($temp==1) $_GET['tps']="all"; seitenaufteilung ($result['final'],$threadnum,$_GET['site'],5,3,"main","main",$design['roundbg'],$_SERVER["PHP_SELF"]."?rid=".$_GET['rid']."&order=".$_GET['order']."&ascdesc=".$_GET['ascdesc']."&tps=$end&"); if($threadnum > 0) { $order_ins=create_options(array("beginn" => "Veranstaltungsdatum","time" => "Datum des Eintrags","name" => "Name","type" => "Threadtyp","posts" => "Beiträge","views" => "Aufrufe"),$_GET['order'],"order"); $ascdesc_ins=create_options(array("ASC" => "Aufwärts","DESC" => "Abwärts"),$_GET['ascdesc'],"ascdesc"); $tps_ins=create_options(array(5 => 5,8 => 8,10 => 10,15 => 15, 30 => 30,"all" => "Alle"),$end,"tps"); eval("echo \"".$TMP->tmp_compile("templates/threads.htm",4)."\";"); } eval("echo \"".$TMP->tmp_compile("templates/threads.htm",6)."\";"); } } } } // ########################### Beiträge Anzeigen ########################### // ######################################################################### elseif($_GET['rid']!="" && $_GET['tid']!="") { $_USERMODSTATUS=modquery ($_SESSION["SESSION"]['user'],$_GET['rid']); if(($design['viewspamm']=="checked" && check_view_ip()) or $design['viewspamm']!="checked") { $DB->sql_qry("UPDATE $threadstable SET views=views+1 WHERE id='".$_GET['tid']."'"); if($design['viewspamm']=="checked") $DB->sql_qry("INSERT INTO $iptable (ip,time,type) VALUES ('".$_SERVER["REMOTE_ADDR"]."','".zeit()."','view_".$_GET['tid']."')"); } $rubrikdaten=$DB->sql($rubriktable,"*"," WHERE id='".$_GET['rid']."'"); $threaddaten=$DB->sql($threadstable,"*"," WHERE id='".$_GET['tid']."'"); update_unread($threaddaten[id]); if(strlen($rubrikdaten['name']) > $design['maxthreadlen']) { $rubriknameshow=substr($rubrikdaten['name'],0,$design['maxthreadlen'])." [...]"; } else { $rubriknameshow=$rubrikdaten['name']; } if(strlen($threaddaten['name']) > $design['maxthreadlen']) { $threadnameshow=substr(stripslashes($threaddaten['name']),0,$design['maxthreadlen'])." [...]"; } else { $threadnameshow=stripslashes($threaddaten['name']); } $rgdaten=$DB->sql($rubrikgrouptable,"groupname"," WHERE id='".$rubrikdaten['gruppe']."'"); toptable ("Home | ".$rgdaten['groupname']." -> $rubriknameshow"); if($_GET['action']!="") @include("inc/".$_GET['action'].".php"); else { if($error_report!="") include("inc/errors.php"); else { echo "\n"; echo "\n"; $previousid=getpreviousthread ($threadstable,$_GET['tid'],1); $nextid=getnextthread ($threadstable,$_GET['tid'],1); showrtjump ($design['roundbg'],"top",$previousid,$nextid,"","","","main"); if($rubrikdaten['type']!="default" && !check_intern_access()) include("inc/intern.php"); else { if($threaddaten['type']!="thread" && $threaddaten["type"]!="event") include("inc/poll.php"); elseif($threaddaten["type"]=="event") include("inc/termine.php"); if($threaddaten["type"]=="event") $threadtype="Termin"; elseif($threaddaten["type"]=="thread") $threadtype="Thread"; else $threadtype="Poll"; if($_GET['site']=="") $_GET['site']=1; $threadname_ins=stripslashes($threaddaten["name"]); $beitragnum=$DB->sql_num($beitraegetable,"id"," WHERE rubrikid='".$_GET['rid']."' and threadid='".$_GET['tid']."'"); $end=$design['eps']; $result=beitragzahl ($end,$beitragnum); $sasinsert=sabtop($result["start"],$result["final"],$beitragnum); if(!$beitragnum) { eval("echo \"".$TMP->tmp_compile("templates/beitrag.htm",0,true)."\";"); if($design['forumbgpic']=="") $hdsse="bgcolor=".$design['roundbg'].""; eval("echo \"".$TMP->tmp_compile("templates/beitrag.htm",6)."\";"); if($_SESSION["SESSION"]['intern']==md5("permission") && $interndaten['type']!="default") echo ""; } else { $ende_ins=($design['bgpictype']==2) ? " " : "
"; eval("echo \"".$TMP->tmp_compile("templates/beitrag.htm",0,true)."\";"); $gerunger=0; $beitragqueryreal=$DB->sql_qry("SELECT * FROM $beitraegetable WHERE rubrikid='".$_GET['rid']."' and threadid='".$_GET['tid']."' order by id ASC LIMIT ".$result['start'].",$end"); while($beitragdaten=mysql_fetch_array($beitragqueryreal)) { include("inc/beitrag.php"); $gerunger++; } } eval("echo \"".$TMP->tmp_compile("templates/beitrag.htm",5,true)."\";"); if($beitragnum > 0) showrtjump ($design['roundbg'],"bottom",$previousid,$nextid,"","","","main"); if($threaddaten['type']!="thread" && $beitragnum!=0) echo ""; seitenaufteilung ($result['final'],$beitragnum,$_GET['site'],5,3,"main","main",$design['roundbg'],$_SERVER["PHP_SELF"]."?rid=".$_GET['rid']."&tid=".$_GET['tid']."&"); echo "
"; echo ""; if($_GET['post']=="newentry" && $threaddaten['comallow']==1) { $locationgo=$_SERVER["PHP_SELF"]."?rid=".$_GET['rid']."&tid=".$_GET['tid']."&insertsql=1&post=true&site=".$_GET['site']; $locationback=$_SERVER["PHP_SELF"]."?rid=".$_GET['rid']."&tid=".$_GET['tid'].""; include("inc/newentry.php"); } } } } if(!isset($_GET["action"]) && $error_report=="") { echo ""; $bottomwidth=95; } if(!$beitragnum) echo ""; } echo "\n"; echo "\n"; // ########################### BOTTOM ########################### // ############################################################## if(!isset($bottomwidth)) $bottomwidth=100; $baa=array("memberlist","faq","register","kalender","search","newpoll","sendpw"); if((isset($_GET["action"]) || $error_report!="") && $_SESSION["SESSION"]["loggedin"]!="true") { echo ""; $bottomwidth=95; } echo "\n"; echo "\n"; if($_GET['rid']=="" && $_GET['tid']=="" && $_GET['action']=="" && $_GET["register"]!="true" && $error_report=="") { $lastlogin_stats=getlastlogin ("bottomstats"); $useronline_stats=useronline ("bottomstats"); $birthdays_stats=getbirthdays(); $rnum=$DB->sql_num ($rubriktable,"id",""); $rubriken_stats=$rnum." ".(($rnum==1) ? "Rubrik" : "Rubriken"); $tnum=$DB->sql_num ($threadstable,"id",""); $threads_stats=$tnum." ".(($tnum==1) ? "Thread" : "Threads"); $bnum=$DB->sql_num ($beitraegetable,"id",""); $beitraege_stats=$bnum." ".(($bnum==1) ? "Beitrag" : "Beiträge"); $userregt=$DB->sql_num ($usertable,"id","")." registrierte"; if($userregt==1) { $userregt.="r"; } eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",0,true)."\";"); if($_SESSION["SESSION"]["loggedin"]=="true") eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",1)."\";"); eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",2)."\";"); } elseif($_GET['rid']!="" && $_GET['tid']=="" && $_GET['action']=="" && $_GET["insertsql"]!=1) { eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",0,true)."\";"); eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",3,true)."\";"); } $array_prompt=hmt_push(); if($_SESSION["SESSION"]['status']=="admin") $jump_ins_admin= "\n"; $reg_profil=($_SESSION["SESSION"]['loggedin']!="true") ? "\n" : "\n"; $mem_ins=(check_perm_section("membersperm")) ? "" : ""; $stat_ins=(check_perm_section("statsperm")) ? "" : ""; $kal_ins=(check_perm_section("kalenderperm")) ? "" : ""; $search_ins=(check_perm_section("searchperm")) ? "" : ""; $faq_ins=""; $pm_ins=($_SESSION["SESSION"]["loggedin"]=="true") ? "" : ""; eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",4,true)."\";"); $rubrikgroupquery=$DB->sql_qry("SELECT * FROM $rubrikgrouptable order by sortgroup"); while($rubrikgroupdaten=mysql_fetch_array($rubrikgroupquery)) { eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",5)."\";"); $rubrikquery=$DB->sql_qry("SELECT * FROM $rubriktable WHERE gruppe='".$rubrikgroupdaten['id']."'"); while($rubrikdaten=mysql_fetch_array($rubrikquery)) { eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",6)."\";"); } } eval("echo \"".$TMP->tmp_compile("templates/bottom.htm",7)."\";"); include("inc/footer_odyssee.htm"); ?>