diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php index 48b3764c..5d725c13 100644 --- a/includes/pages/user_news.php +++ b/includes/pages/user_news.php @@ -80,22 +80,22 @@ function user_news_comments() { $html .= ""; $html .= ' -
-
-

Neuer Kommentar:

-   - -
- - - - - - -
Text:
-
- -
'; +
+
+

Neuer Kommentar:

+   + +
+ + + + + + +
Text:
+
+ +
'; } else { $html .= "Fehlerhafter Aufruf!"; } @@ -108,7 +108,7 @@ function user_news() { $html = ""; - if (isset ($_POST["text"]) && isset ($_POST["betreff"])) { + if (isset ($_POST["text"]) && isset ($_POST["betreff"]) && in_array("admin_news", $privileges)) { if (!isset ($_POST["treffen"]) || !in_array("admin_news", $privileges)) $_POST["treffen"] = 0; sql_query("INSERT INTO `News` (`Datum`, `Betreff`, `Text`, `UID`, `Treffen`) " . @@ -137,32 +137,34 @@ function user_news() { else $html .= '' . ($i +1) . '  '; } - $html .= ' -

-

' . Get_Text(6) . '

-   - -
- - - - - - - - - '; - if (in_array('admin_news', $privileges)) { - $html .= ' - - - '; + $html .= ''; + if (in_array("admin_news", $privileges)) { + $html .= '

+

' . Get_Text(6) . '

+   + + +
' . Get_Text(7) . '
' . Get_Text(8) . '
' . Get_Text(9) . '
+ + + + + + + + '; + if (in_array('admin_news', $privileges)) { + $html .= ' + + + '; + } + $html .= '
' . Get_Text(7) . '
' . Get_Text(8) . '
' . Get_Text(9) . '
+
+ +
'; } - $html .= ' -
- - '; return $html; } ?> \ No newline at end of file