]> git.sur5r.net Git - bacula/docs/blobdiff - docs/home-page/de/pages/news.php
Fix links
[bacula/docs] / docs / home-page / de / pages / news.php
index d57cad3ad4c61b7f2f01df83227b4123dd5cc25e..2d1e39980306016ea32dbaca27e12573591ab1de 100644 (file)
@@ -2,15 +2,15 @@
 
 <table width="100%">
 <tr>
-       <td class="contentTopic">
-               News
-       </td>
+        <td class="contentTopic">
+                News
+        </td>
 </tr>
 </table>
 <table width="90%" align="center">
 <tr>
-       <td class="content">
-       <table class="news" style="width: 99%">
+        <td class="content">
+        <table class="news" style="width: 99%">
 <?
 
 $max_news = 5;
@@ -20,46 +20,46 @@ $news_counter = 0;
 // revert cause array_pop always gets the last element
 //
 //currently the english-version from above
-$file = "../news.txt";
+$file = "news.txt";
 $lines = array_reverse(file($file)) or
-       die("Kein Newsfile gefunden!");
+        die("Kein Newsfile gefunden!");
 
 // as long as there are lines ...
 //
 while(count($lines) > 0 && $news_counter < $max_news) {
-       // next line
-       $line = array_pop($lines);
+        // next line
+        $line = array_pop($lines);
 
-       // start of news
-       if(eregi("^[a-z0-9]+;;;", $line)) {
-               // news header
-               list($author,$date,$time) = explode(";;;",$line);
+        // start of news
+        if(eregi("^[a-z0-9]+;;;", $line)) {
+                // news header
+                list($author,$date,$time) = explode(";;;",$line);
 
-               // news subject
-               $subject = array_pop($lines);
-               printf('<tr><td class="newsHeader">%s</td></tr>', $subject);
-               printf('<tr><td class="newsContent"><pre class="newsContent">');
+                // news subject
+                $subject = array_pop($lines);
+                printf('<tr><td class="newsHeader">%s</td></tr>', $subject);
+                printf('<tr><td class="newsContent"><pre class="newsContent">');
 
-               continue;
-       }
+                continue;
+        }
 
-       // end of news
-       if(eregi("^;;;", $line)) {
-               printf('</pre></td></tr>');
-               printf('<tr>');
-               printf('<td class="newsFooter">%s - %s, %s</td>', $date, $time, $author);
-               printf('</tr>');
-               printf('<tr><td><img src="../images/spacer.gif" width="1px" height="15px"></td></tr>');
-               $news_counter++;
-               continue;
-       }
+        // end of news
+        if(eregi("^;;;", $line)) {
+                printf('</pre></td></tr>');
+                printf('<tr>');
+                printf('<td class="newsFooter">%s - %s, %s</td>', $date, $time, $author);
+                printf('</tr>');
+                printf('<tr><td><img src="../images/spacer.gif" width="1px" height="15px"></td></tr>');
+                $news_counter++;
+                continue;
+        }
 
-       // news content
-       printf('%s', $line);
+        // news content
+        printf('%s', $line);
 }
 ?>
-       </table>
-       </td>
+        </table>
+        </td>
 </tr>
 </table>
 <? require_once("inc/header.php"); ?>