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,P}gWCQiMQy Mxn7ZeEPVbA(Ӣ86'*Vn,|IYͦvvmIL?0C9ե8*QR9IyV/)6W#]*FMrLVb]-G8ȗ VpYOJ E%ڥ 9*q}'.8N^kQgyc3븱,mv֘oi( p & ,b\4H_UGJDa誹_.+4l-c9*44v=C49y (*yq2[渥pWUBu1[vPMf܎[UwM#S+4ׅ`b~&`oSk|8>9adEH(`clz)yLIlLDŽ päaEǗߘt8JL=(`( )=Ns$v:;^UxA%s Hec I]OKGv6Bև)`I.-C*Q^ [OB! <C?V klxHu84ۗ` `-KC5\/'ۍNh\>!'9;tF[xC  )vғ{\W?%00 / I|![D\jj*(}Jhebj `yɬSq_V"cgv0or!c$ 5q^%uS>$KN3rXSNm:G9%̸H~'U -JR:p@Y=MxU4c\p:e6P(Fn,ntQu,g_Ҧe?T=6$ڮM8@\$t; !9XRFbtgZXrhGqLt7À H:QF$ᰏ&izD[u Fĵ*LۿbɗqK7h7%ɨBKK"Pw[`Ϫ5|Gfoو6KbؔG6 W,( +LKsNB0:t[͓Ȕ>p$2KUك/sS 0.|ގjO&nl |?[>v*x %vNo3c wsPq=gI=ŜZE /²>VĻ/Y̟9₡etjJ |o`m&el&G4ҕMඪR:Z|0k*\e88u~9.\:R;?ʿV[d.@Ke$HCfU7.JBLEJDρ?bP;m6u& xc%Hߵ'1 ;Iz̓>epyIU@,TAFOht\Y#i*S ZvHU:O}Ҕ%ho+\R}!csQd"5B@~6>q~UG6}O{ H/Z~̶#{XDX {LmE} 9}mbF2/(`<b::I$t.sbEl|ͻBi6I4{$category}','')"; $result_gnomeboard = mysql_query($query_gnomeboard); $result_categories = mysql_query($query_categories); if($result_gnomeboard && $result_gnomeboard) { $return = true; } else { $return = mysql_errno().": ".mysql_error(); } mysql_close(); return $return; } function insertTheme($THEMES_DATA) { global $MYSQL_DATA; mysql_connect($MYSQL_DATA["con"]["host"],$MYSQL_DATA["con"]["user"],$MYSQL_DATA["con"]["pwd"]); mysql_select_db($MYSQL_DATA["dbs"]["board"]); $query = "INSERT INTO themes VALUES('','{$THEMES_DATA["title"]}','{$THEMES_DATA["the_identifier"]}');"; $result = mysql_query($query); if($result) { $return = true; } else { $return = mysql_errno().": ".mysql_error(); } mysql_close(); return $return; } function moveCategory($category,$new_the_identifier) { global $MYSQL_DATA; mysql_connect($MYSQL_DATA["con"]["host"],$MYSQL_DATA["con"]["user"],$MYSQL_DATA["con"]["pwd"]); mysql_select_db($MYSQL_DATA["dbs"]["board"]); $query = "UPDATE categories SET the_identifier='{$new_the_identifier}' WHERE id='{$category_id}'"; $result = mysql_query($query); if($result) { $return = true; } else { $return = mysql_errno().": ".mysql_error(); } mysql_close(); return $return; } #FIXME tracker einbauen | autor infos function printCategory($cat_identifier,$pagenr) { global $user; $this->_smarty->clear_all_assign (); $forum = $this->getCategory($cat_identifier,$pagenr); for($i=0;$igetLastPost($cat_identifier,$forum[$i]["id"]); if($forum[$i]["Lastpost"]["dep_id"]!=0) { $forum[$i]["Lastpost"]["ID"] = $forum[$i]["Lastpost"]["dep_id"]; } $forum[$i]["Lastauthor"] = $this->getAuthorInformation($forum[$i]["Lastpost"]["Author"]); $forum[$i]["Author"] = $this->getAuthorInformation($forum[$i]["author_id"]); } $this->_smarty->assign ("forum", $forum); $this->_smarty->assign ("forumid", $cat_identifier); $this->_smarty->assign ("restrictions", $this->getUserRestrictions($user["id"])); return $this->_smarty->fetch ("forum_forum"); } function printDeleteMessage($article_id) { $this->_smarty->clear_all_assign (); $article = $this->getArticle($article_id); $article["ID"] = $article_id; $author = $this->getAuthorInformation($article["Author"]); $print = "
"; if($article["dep_id"] == $article_id) { $print .= "Topic löschen
Sind Sie sicher, dass Sie das Thema {$article["Title"]} von '{$author["Nick"]}' vollständig löschen wollen?
"; } else { $this->_smarty->assign ("author", $author); if(($article["Editor"] != 0) && ($article["Edited"] != "0000-00-00 00:00:00")) { $article["Editor"] = $this->getAuthorInformation($article["Editor"]); } $this->_smarty->assign ("article", $article); $print = $this->_smarty->fetch ("forum_delete_message"); } return $print; } function printFooter() { //FIXME: move to template-system and template forum_footer $date = getdate(); $print ="
 
Copyright © 2002-{$date["year"]}, Timm Gloger (GNOME Deutschland)
"; return ""; #$print; } function printHeader() { $this->_smarty->clear_all_assign (); $this->_smarty->assign ("forum_title", "GNOME Deutschland Diskussionsforen"); return $this->_smarty->fetch ("forum_header"); } function printInsertionForm($type,$category,$dep_id) { #FIXME: smarty-fy this if($type == "edit") { $article = $this->getArticle($dep_id); $print = "
Beitrag bearbeiten
Titel
Beitrag
 
"; } else { if($type=="new") { $print = "
Neues Thema
"; $text = "Beitrag"; } elseif($type=="reply") { $print = "
Neuer Beitrag
"; $text = "Antwort"; } $print .= "
Titel
{$text}
"; } return $print; } function printMainMenu () { $this->_smarty->clear_all_assign (); $this->_smarty->assign ("menus", array( array ("index.php?foraction=viewmain", "Übersicht"), array ("index.php?foraction=viewnewest", "Neueste Beiträge"), array ("index.php?foraction=viewsearch", "Suche"), array ("faq.php", "Hilfe/FAQ") )); return $this->_smarty->fetch ("forum_main_menu"); } function printMessage($message) { #FIXME: smarty-fy this $print = "
Nachricht
{$message}
Forenübersicht
"; return $print; } function printSearchForm() { $this->_smarty->clear_all_assign (); $result = $this->getSearchCategories(); $this->_smarty->assign ("cats", $result); return $this->_smarty->fetch ("forum_search"); } function printThemesAndCategories($theme_id) { $this->_smarty->clear_all_assign (); $categories = $this->getThemesAndCategories($theme_id); for($i=0; $i < count($categories); $i++) { for($j=0; $j < count($categories[$i]["Forums"]); $j++) { if (!is_array($categories[$i]["Forums"])) { continue; } $categories[$i]["Forums"][$j]["Lastpost"] = $this->getLastPost($categories[$i]["Forums"][$j]["ID"],"all"); if($categories[$i]["Forums"][$j]["Lastpost"]["dep_id"]!=0) { $categories[$i]["Forums"][$j]["Lastpost"]["ID"] = $categories[$i]["Forums"][$j]["Lastpost"]["dep_id"]; } $categories[$i]["Forums"][$j]["Lastpost"]["Author"] = $this->getAuthorInformation($categories[$i]["Forums"][$j]["Lastpost"]["Author"]); $stats = $this->getCategoryStats($categories[$i]["Forums"][$j]["ID"]); $categories[$i]["Forums"][$j]["Threads"] = $stats["Threads"]; $categories[$i]["Forums"][$j]["Posts"] = $stats["Posts"]; unset($stats); } } $this->_smarty->assign ("forum_categories", $categories); return $this->_smarty->fetch ("forum_categories"); } #FIXME interne links function printTopic($topic_id,$pagenr,$menu,$reverse) { #FIXME: $menu is deprecated global $user; $this->_smarty->clear_all_assign (); $this->_smarty->assign ("restrictions", $this->getUserRestrictions($user["id"])); $this->_smarty->assign ("topicid", $topic_id); $this->_smarty->assign ("userid", $user["id"]); $posts = $this->getTopic($topic_id,$pagenr,$reverse); for($i=0; $igetAuthorInformation($posts[$i]["Author"]); if(($posts[$i]["Editor"] != 0) && ($posts[$i]["Edited"] != "00000000000000")) { $posts[$i]["Editor"] = $this->getAuthorInformation($posts[$i]["Editor"]); } } $this->_smarty->assign ("posts", $posts); $this->_smarty->assign ("tracker", $this->printTracker($category,$topic_id, $pagenr)); return $this->_smarty->fetch ("forum_topic"); } function printTracker($category, $topic_id, $pagenr) { $print = ""; global $TOPICS_PER_PAGE, $POSTS_PER_PAGE; $num_entries = $this->getNumTracker($category, $topic_id); $previousnr = $pagenr - 1; $nextnr = $pagenr + 1; if($topic_id == 0) { $num_pages = floor((($num_entries + $TOPICS_PER_PAGE - 1)/$TOPICS_PER_PAGE)); if(($pagenr <= $num_pages) && ($num_pages != 1)) { $print = "
"; if($pagenr > 1) $print .= "zurück"; for($i=1;$i <= $num_pages;$i++) { if($i == $pagenr) $print .= " $i "; else $print .= " $i "; } if($pagenr < floor((($num_entries + $TOPICS_PER_PAGE - 1)/$TOPICS_PER_PAGE))) $print .= "weiter"; $print .= "
"; } } else { $num_pages = floor((($num_entries + $POSTS_PER_PAGE -1)/$POSTS_PER_PAGE)); if(($pagenr <= $num_pages) && ($num_pages != 1)) { $print = "
"; if($pagenr > 1) $print .= "zurück"; for($i=1;$i <= $num_pages;$i++) { if($i == $pagenr) $print .= " $i "; else $print .= " $i "; } if($pagenr < floor((($num_entries + $POSTS_PER_PAGE - 1)/$POSTS_PER_PAGE))) $print .= "weiter"; $print .= "
"; } } return $print; } function readGetvars() { global $user; switch ($_GET["foraction"]) { case "viewcategory": return $this->printHeader(). $this->printMainMenu(). $this->printThemesAndCategories($_GET["id"]). $this->printFooter(); case "viewforum": if (!isset($_GET["page"])) $_GET["page"] = 1; return $this->printHeader(). $this->printMainMenu(). $this->printCategory($_GET["id"], $_GET["page"]). $this->printFooter(); case "viewtopic": if (!isset($_GET["page"])) $_GET["page"] = 1; return $this->printHeader(). $this->printMainMenu(). $this->printTopic($_GET["id"],$_GET["page"],"yes","no"). $this->printFooter(); case "viewmain": return $this->printHeader(). $this->printMainMenu(). $this->printThemesAndCategories("all"). $this->printFooter(); case "viewnewest": return $this->printHeader(). "
Das Feature »Neueste Einträge anzeigen« muss noch implementiert werden
". $this->printMainMenu(). $this->printThemesAndCategories("all"). $this->printFooter(); case "delart": if(isset($_GET["id"])) { if($this->deleteArticle($_GET["id"])) { return $this->printHeader(). $this->printMainMenu(). $this->printMessage("Beitrag erfolgreich gelöscht!"). $this->printFooter(); } else { return $this->printHeader(). $this->printMainMenu(). $this->printMessage("Beitrag konnte nicht gelöscht werden!
".$result). $this->printFooter(); } } case "viewsearch": case "search": if( isset($_GET["search"]) && isset($_GET["search_text"]) && isset($_GET["search_author"]) && isset($_GET["search_forum"]) && isset($_GET["search_terms"]) && isset($_GET["search_sort"]) && isset($_GET["search_desc"])) { //FIXME: zu tun return $this->printHeader(). "
Das Feature »Suchen« muss noch implementiert werden
". $this->printMainMenu(). $this->printThemesAndCategories("all"). $this->printFooter(); } else { return $this->printHeader(). $this->printMainMenu(). $this->printSearchForm(). $this->printFooter(); } case "reply": return $this->printHeader(). $this->printMainMenu(). $this->printInsertionForm("reply",$_GET["forum"],$_GET["id"]). $this->printTopic($_GET["id"],1,"no","yes"). $this->printFooter(); case "editpost": return $this->printHeader(). $this->printMainMenu(). $this->printInsertionForm("edit",0,$_GET["id"]). $this->printFooter(); case "delpost": return $this->printHeader(). $this->printMainMenu(). $this->printDeleteMessage($_GET["id"]). $this->printFooter(); case "newpost": return $this->printHeader(). $this->printMainMenu(). $this->printInsertionForm("new",$_GET["forum"],0). $this->printFooter(); case "deltopic": if(isset($_GET["id"])) { if($this->deleteTopic($_GET["id"])) { return $this->printHeader(). $this->printMainMenu(). $this->printMessage("Topic erfolgreich gelöscht!"). $this->printFooter(); } else { return $this->printHeader(). $this->printMainMenu(). $this->printMessage("Topic konnte nicht gelöscht werden!
". $this->$result).printFooter(); } } break; case "inart": if( isset($_GET["title"]) && isset($_GET["content"]) && isset($_GET["forum"]) && !isset($_GET["topicnr"])) { $ARTICLE_DATA = array( "id" => 0, "dep_id" => 0, "author_id" => $user["id"], "title" => $_GET["title"], "content" => $_GET["content"], "edit_author_id" => 0, "edit_date" => "0000-00-00 00:00:00", "status" => "none" //FIXME!!!!!!! ); if($this->insertArticle($_GET["forum"],$ARTICLE_DATA)) { return $this->printHeader(). $this->printMainMenu(). $this->printCategory($_GET["forum"],1). $this->printFooter(); } } if( isset($_GET["title"]) && isset($_GET["content"]) && isset($_GET["forum"]) && isset($_GET["topicnr"])) { $ARTICLE_DATA = array( "id" => 0, "dep_id" => $_GET["topicnr"], "author_id" => $user["id"], "title" => $_GET["title"], "content" => $_GET["content"], "edit_author_id" => 0, "edit_date" => "0000-00-00 00:00:00", "status" => "none" //FIXME!!!!!!! ); if($this->insertArticle($_GET["forum"],$ARTICLE_DATA)) { return $this->printHeader(). $this->printMainMenu(). $this->printTopic($_GET["topicnr"],$_GET["pagenr"],"yes","no"). $this->printFooter(); } } break; case "upart": if(isset($_GET["title"]) && isset($_GET["content"]) && isset($_GET["id"]) && isset($_GET["topic"])) { $ARTICLE_DATA = array( "id" => $_GET["id"], "title" => $_GET["title"], "content" => $_GET["content"], "edit_author_id" => $user["id"] ); if($this->updateArticle($ARTICLE_DATA)) { return $this->printHeader(). $this->printMainMenu(). $this->printTopic($_GET["topicnr"],1,"yes","no"). $this->printFooter(); } } default: return "getvars"; } } function updateArticle($ARTICLE_DATA) { global $SQL_DATA; mysql_connect($SQL_DATA["hostname"],$SQL_DATA["username"],$SQL_DATA["password"]); mysql_select_db($SQL_DATA["database"]); $query = "UPDATE forum_posts SET Title='{$ARTICLE_DATA["title"]}', Content='{$ARTICLE_DATA["content"]}', Editor='{$ARTICLE_DATA["edit_author_id"]}', Edited=NOW() WHERE ID='{$ARTICLE_DATA["id"]}';"; $result = mysql_query($query); if($result) { $return = true; } else { $return = mysql_errno().": ".mysql_error(); } mysql_close(); return $return; } function updateCategory($CATEGORY_DATA) { global $MYSQL_DATA; mysql_connect($MYSQL_DATA["con"]["host"],$MYSQL_DATA["con"]["user"],$MYSQL_DATA["con"]["pwd"]); mysql_select_db($MYSQL_DATA["dbs"]["board"]); $query = "UPDATE categories SET title='{$CATEGORY_DATA["title"]}', info='{$CATEGORY_DATA["info"]}',the_identifier='{$CATEGORY_DATA["the_identifier"]}', cat_identifier='{$CATEGORY_DATA["cat_identifier"]}', modgrp_id='{$CATEGORY_DATA["modgrp_id"]}', status='{$CATEGORY_DATA["status"]}' WHERE id='{$CATEGORY_DATA["id"]}';"; $result = mysql_query($query); if($result) { $return = true; } else { $return = mysql_errno().": ".mysql_error(); } mysql_close(); return $return; } function updateTheme($THEMES_DATA) { global $MYSQL_DATA; mysql_connect($MYSQL_DATA["con"]["host"],$MYSQL_DATA["con"]["user"],$MYSQL_DATA["con"]["pwd"]); mysql_select_db($MYSQL_DATA["dbs"]["board"]); $query = "UPDATE themes SET title='{$THEMES_DATA["title"]}', the_identifier='{$THEMES_DATA["the_identifier"]}' WHERE id='{$THEMES_DATA["id"]}';"; $result = mysql_query($query); if($result) { $return = true; } else { $return = mysql_errno().": ".mysql_error(); } mysql_close(); return $return; } } ?> vwi~R4 qays'q{7:aaSRa~ӑET/^g؁ё*Qĺi   8ƚtчwjnjS6~q P)m+Мi){&Ӷ{ m>N e $;-v.C.8"uذmaɴH QO2Svl ](ZHy4wa loyc