0 użytkowników i 1 Gość przegląda ten wątek.
<?$adres_huba = "dcmaniak.hopto.org";$port_huba = "888";$fp = @fsockopen($adres_huba, $port_huba, $errno, $errstr, 3);if (!$fp){ echo "<font color=red>Hub jest offline</font>";}else{ echo "<font color=green>Hub jest online</font>";}?>
<?$adres_huba = "adres.hub.pl";$port_huba = "411";header('Content-type: image/gif');$fp = @fsockopen($adres_huba, $port_huba, $errno, $errstr, 3);if (!$fp){ include('twoje_zdjęcie_offline.gif');}else{ include('twoje_zdjęcie_online.gif');}?>
$adres_huba = "adres.hub.pl";$port_huba = "411";header('Content-type: image/gif');$fp = @fsockopen($adres_huba, $port_huba, $errno, $errstr, 3);if (!$fp){ include('[url]http://images29.fotosik.pl/262/5a7c8dcac90d8d4e.gif[/url]');}else{ include('[url]http://images32.fotosik.pl/339/ed23efd3c3d1041b.gif[/url]');}
Hub jest offline"; } else { echo "Hub jest online"; } ?>
$adres_huba = "adres.hub.pl";$port_huba = "411";header('Content-type: images/status/gif');$fp = @fsockopen($adres_huba, $port_huba, $errno, $errstr, 3);if (!$fp){ include('[url]http://pro-channel.eu/images/status/online.gif[/url]');}else{ include('images/status/offline.gif');}
<? $hub[] = "89.248.169.27:4111" ; for( $a = 0 ; $a < count( $hub ) ; $a++ ) { $ent = explode( ":", $hub[$a] ) ; $adres = $ent[0] ; $port = $ent[1] ; $fp = @fsockopen($adres, $port, $errno, $errstr, 1); if ($fp) { ?> <img border="0" src="images/huboff.gif" align="center"> <? } else { ?> <img border="0" src="images/hubon.gif" align="center"> <? } } ?>
openside("Status Doliny");require_once "hub.php";closeside();
To chociaz adres strony bys podal gdzie ten link jest, wtedy powiem w czym problem
Ok, a jak zrobić tryb graficzny? Zrobiłem tak jak powinno być i nic, jak wygląda można zobaczyć tutaj > http://www.pro-channel.eu/
Sry nie zauwazylem
<?php/*-------------------------------------------------------+| PHP-Fusion Content Management System| Copyright (C) 2002 - 2008 Nick Jones| http://www.php-fusion.co.uk/+--------------------------------------------------------+| Filename: welcome_message_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_035']); $hub[0] = "dc.pro-channel.eu:7800" ; for( $a = 0 ; $a < count( $hub ) ; $a++ ) { $ent = explode( ":", $hub[$a] ) ; $adres = $ent[0] ; $port = $ent[1] ; $fp = @fsockopen($adres, $port, $errno, $errstr, 1); if ($fp) { ?> <img border="0" src="themes/SubFusion/images/hub/huboff.gif" align="center" alt="off" /> <?php } else { ?> <img border="0" src="themes/SubFusion/images/hub/hubon.gif" align="center" alt="on"> <?php } }echo stripslashes($settings['siteintro'])."\n";closetable();?>