From 75448045cfe70054c8f4bae1bcfaf9bb0f70d330 Mon Sep 17 00:00:00 2001 From: Moritz helios Rudert Date: Wed, 1 Jun 2011 12:13:39 +0200 Subject: fixes --- www-ssl/nonpublic/faq.php | 59 ++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 31 deletions(-) mode change 100755 => 100644 www-ssl/nonpublic/faq.php (limited to 'www-ssl/nonpublic/faq.php') diff --git a/www-ssl/nonpublic/faq.php b/www-ssl/nonpublic/faq.php old mode 100755 new mode 100644 index 79044c2c..7f768282 --- a/www-ssl/nonpublic/faq.php +++ b/www-ssl/nonpublic/faq.php @@ -1,35 +1,32 @@ -

+

- -

- "> + +

+ ">
-".Get_Text(37)."

\n".nl2br($_POST["frage"])."

\n".Get_Text(38)."
\n"; +echo "".Get_Text(37)."

\n".nl2br($_POST["frage"])."

\n".Get_Text(38)."
\n"; $SQL = "INSERT INTO `Questions` VALUES ('', '".$_SESSION['UID']."', '". $_POST["frage"]. "', '', '')"; $Erg = mysql_query($SQL, $con); } // Bisherige Anfragen: -echo "
\n".Get_Text(39)."
\n"; +echo "
\n".Get_Text(39)."
\n"; echo "
\n"; -echo "
".Get_Text(40)."
\n"; +echo "
".Get_Text(40)."
\n"; $SQL = "SELECT * FROM `Questions` WHERE `UID` = ". $_SESSION['UID']. " AND `AID`='0' ORDER BY 'QID' DESC"; $Erg = mysql_query($SQL, $con); @@ -38,19 +35,19 @@ $Erg = mysql_query($SQL, $con); $Zeilen = mysql_num_rows($Erg); if ($Zeilen==0){ - Print_Text(41); + Print_Text(41); } else { - for ($n = 0 ; $n < $Zeilen ; $n++) { - echo "

".nl2br(mysql_result($Erg, $n, "Question"))."
\n"; + for ($n = 0 ; $n < $Zeilen ; $n++) { + echo "

".nl2br(mysql_result($Erg, $n, "Question"))."
\n"; // Es gibt ja noch keine Antwort: -// echo "

".nl2br(mysql_result($Erg, $n, "Answer"))."

\n"; - echo "\n
---
"; - } +// echo "

".nl2br(mysql_result($Erg, $n, "Answer"))."

\n"; + echo "\n
---
"; + } } echo "
\n"; -echo "
".Get_Text(42)."
\n"; +echo "
".Get_Text(42)."
\n"; $SQL = "SELECT * FROM `Questions` WHERE `UID`='".$_SESSION['UID']."' and `AID`<>'0' ORDER BY 'QID' DESC"; $Erg = mysql_query($SQL, $con); @@ -58,14 +55,14 @@ $Erg = mysql_query($SQL, $con); $Zeilen = mysql_num_rows($Erg); if ($Zeilen==0){ - Print_Text(41); + Print_Text(41); } else { - for ($n = 0 ; $n < $Zeilen ; $n++) { - echo "

".nl2br(mysql_result($Erg, $n, "Question"))."
\n"; - echo "

".nl2br(mysql_result($Erg, $n, "Answer")). - "@". UID2Nick(mysql_result($Erg, $n, "AID"))."\n"; - echo "\n
---
"; - } + for ($n = 0 ; $n < $Zeilen ; $n++) { + echo "

".nl2br(mysql_result($Erg, $n, "Question"))."
\n"; + echo "

".nl2br(mysql_result($Erg, $n, "Answer")). + "@". UID2Nick(mysql_result($Erg, $n, "AID"))."\n"; + echo "\n
---
"; + } } include ("../../../camp2011/includes/footer.php"); -- cgit v1.2.3-70-g09d2