location.href = "bbs.php?category=" + sel.options[ sel.selectedIndex ].value; }); }); //--> </script> <? return $s; } }; /////////////////////////////////////////////////////////////////////////////// $p = new PouetBoxBBSTopicList(); $p->Load(); $q = new PouetBoxBBSOpen(); $q->Load(); $TITLE = "BBS"; if ($p->page > 1) $TITLE .= " :: page ".(int)$p->page; require_once("include_pouet/header.php"); require("include_pouet/menu.inc.php"); echo "<div id='content'>\n"; echo "<form action='bbs.php' method='get'>\n"; foreach($_GET as $k=>$v) if ($k != "type" && $k != "platform" && $k != "page")
{ $box = new PouetBoxBBSPost($_POST["which"]); $thing = "BBS post"; $data = $_POST["message"]; $message->returnPage = "topic.php?which=".(int)$_POST["which"]; } break; case "comment": { $box = new PouetBoxProdPost($_POST["which"]); $thing = "comment"; $data = $_POST["comment"]; $message->returnPage = "prod.php?which=".(int)$_POST["which"]; } break; case "bbs": { $box = new PouetBoxBBSOpen(); $thing = "bbs"; $data = $_POST["message"]; $message->returnPage = "index.php"; } break; default: { $message->message = "not implemented!"; } break; } } if ($box) { $csrf = new CSRFProtect(); if (!$csrf->ValidateToken()) { $message->classes[] = "errorbox";