Öffne 
portal.php
suche:
Code: Select all
// output page
page_header($user->lang['PORTAL']);
füge 
davor ein:
Code: Select all
include($phpbb_root_path . 'portal/block/server_status.'.$phpEx);
 
erstelle eine neue Datei, namens 
server_status.php, speichern in 
portal/block/ - Inhalt:
Code: Select all
<?php
if (!defined('IN_PHPBB') || !defined('IN_PORTAL'))
{
exit;
}
    $ip = "adresse"; // this is the host of the monitored server
    $onlinetext = "Server ist On" ; // this is the on-line message
    $offlinetext = "Server ist Off" ; // this is the off-line message
    $port = "5901"; // this is the port that you check
      if(@fsockopen($ip,$port,$errno,$errstr,1)) 
      {
         $onlinestatus = $onlinetext;
         $onlineimage = serveron.png;
      }
      else
      {
         $onlinestatus = $offlinetext;
         $onlineimage = serveroff.png;
      }
   $template->assign_vars(array(
       'ONLINESTATUS' => $onlinestatus,
       'ONLINEIMAGE' => $onlineimage,
    
    ));
?>
(natürlich die Parameter anpassen)
erstelle eine neue Datei, namens 
server_status.html, speichern in 
\styles\prosilver\template\portal\block\ - Inhalt:
Code: Select all
    <div class="panel">
       <div class="inner">
          <span class="corners-top"><span></span></span>
             <h3>Serverstatus</h3>
               <a href='http://www.XXXXXX.XX/' ><img src='{ONLINEIMAGE}' width='17' height='17' border='0'></a>
               <br /> 
               {ONLINESTATUS}
          <span class="corners-bottom"><span></span></span>
       </div>
    </div>
    <br style="clear:both" />
Das wäre dann ein seitlicher Block. Ggf. noch den Pfad zu den On- / Offline Bildern anpassen.
Öffne 
styles\prosilver\template\portal\portal_body.html
suche:
Code: Select all
		<!-- IF S_DISPLAY_MAINMENU -->
		<!-- INCLUDE portal/block/main_menu.html -->
		<!-- ENDIF -->
füge danach ein:
Code: Select all
<!-- INCLUDE portal/block/server_status.html -->
 
Das sollte es gewesen sein - ohne Gewähr - nicht getestet!
Ist ein Schnellschuß von der Arbeit aus.  
