Autor Wątek: Jak dodac status online - offline naszego huba na strone www lub forum  (Przeczytany 1151 razy)

0 użytkowników i 2 Gości przegląda ten wątek.

Offline Marco

  • Stały bywalec
  • ***
  • Wiadomości: 54
  • Reputacja: 1
    • Status GG
    • ..:: eXodus DC HuB™ ::..
Odp: Jak dodac status online - offline naszego huba na strone www lub forum
« Odpowiedź #15 dnia: Lipiec 23, 2010, 20:18:02 pm »
po lewej stronie nic nie widzE:P
Po prawej stronie, jest ikonka... lecz pokazuje status jako "offline", a powinno być jako "online". A to dlatego że hub działa normalnie, i dodam że chcę jeszcze dopisać do tego kodu statusu pod ikonką adres huba.

Dodam tylko mój kod w PHP.
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: user_info_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

opentable($locale['global_303']);
        
$hub[0] = "dc.pro-channel.eu:7800" ;
        for( 
$a $a count$hub ) ; $a++ )
        {
                
$ent explode":"$hub[$a] ) ;
                
$adres $ent[0] ;
                
$port $ent[1] ;
                
$fp = @fsockopen($adres$port$errno$errstr1);
                if (
$fp) {
                        
?>

                        <img border="0" src="themes/SubFusion/images/hub/huboff.gif" align="center" title="wyłączony" />
                        <?php
                
} else {
                
?>

                        <img border="0" src="themes/SubFusion/images/hub/hubon.gif" align="center" title="włączony">
                <?php
                
}
        }
closetable();
?>
...żeby było wiadomo jak wygląda.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal