diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-06-03 01:03:39 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-06-03 01:03:39 +0200 |
commit | 626b9a81f303a07fab5be1302496d8823d1fede4 (patch) | |
tree | 17f9531895676fb9f68cc36edce00555964c9f92 /www-ssl/nonpublic/faq.php | |
parent | 32b3ce5f900cf0d378f77a6675b989ee0e641f13 (diff) |
admin faq
Diffstat (limited to 'www-ssl/nonpublic/faq.php')
-rw-r--r-- | www-ssl/nonpublic/faq.php | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/www-ssl/nonpublic/faq.php b/www-ssl/nonpublic/faq.php deleted file mode 100644 index fcc17158..00000000 --- a/www-ssl/nonpublic/faq.php +++ /dev/null @@ -1,73 +0,0 @@ -<?php -require_once ('../bootstrap.php'); - -$title = "Himmel"; -$header = "FAQ / Fragen an die Erzengel"; -include "includes/header.php"; - -// Erstaufruf, oder Frage bereits abgeschickt? -if (!isset ($_POST["eUID"])) { - Print_Text(35); -?> -<br /><br /> -<form action="./faq.php" method="POST"> - <input type="hidden" name="eUID" value="<?php echo $_SESSION['UID']; ?>"> - <textarea name="frage" cols="40" rows="10"><?php Print_Text(36); ?></textarea><br /><br /> - <input type="submit" value="<?php Print_Text("save"); ?>"> -</form> -<?php - - -} else { - // Auswertung d. Formular-Daten: - - echo "<b>" . Get_Text(37) . "</b><br /><br />\n" . nl2br($_POST["frage"]) . "<br /><br />\n" . Get_Text(38) . "<br />\n"; - - $SQL = "INSERT INTO `Questions` VALUES ('', '" . $_SESSION['UID'] . "', '" . $_POST["frage"] . "', '', '')"; - $Erg = mysql_query($SQL, $con); - -} -// Bisherige Anfragen: -echo "<br />\n<b>" . Get_Text(39) . "</b><br />\n"; -echo "<hr width=\"99%\">\n"; -echo "<br /><b>" . Get_Text(40) . "</b><br />\n"; - -$SQL = "SELECT * FROM `Questions` WHERE `UID` = " . $_SESSION['UID'] . " AND `AID`='0' ORDER BY 'QID' DESC"; -$Erg = mysql_query($SQL, $con); - -// anzahl zeilen -$Zeilen = mysql_num_rows($Erg); - -if ($Zeilen == 0) { - Print_Text(41); - -} else { - for ($n = 0; $n < $Zeilen; $n++) { - echo "<p class='question'>" . nl2br(mysql_result($Erg, $n, "Question")) . "<br />\n"; - // Es gibt ja noch keine Antwort: - // echo "<p class='answer'>".nl2br(mysql_result($Erg, $n, "Answer"))."</p>\n"; - echo "\n<br />---<br />"; - } -} - -echo "<hr width=\"99%\">\n"; -echo "<br /><b>" . Get_Text(42) . "</b><br />\n"; -$SQL = "SELECT * FROM `Questions` WHERE `UID`='" . $_SESSION['UID'] . "' and `AID`<>'0' ORDER BY 'QID' DESC"; -$Erg = mysql_query($SQL, $con); - -// anzahl zeilen -$Zeilen = mysql_num_rows($Erg); - -if ($Zeilen == 0) { - Print_Text(41); -} else { - for ($n = 0; $n < $Zeilen; $n++) { - echo "<p class='question'>" . nl2br(mysql_result($Erg, $n, "Question")) . "<br />\n"; - echo "<p class='answer'>" . nl2br(mysql_result($Erg, $n, "Answer")) . - "@" . UID2Nick(mysql_result($Erg, $n, "AID")) . "\n"; - echo "\n<br />---<br />"; - } -} - -include ("includes/footer.php"); -?> |