elementz Posted June 24, 2007 Share Posted June 24, 2007 <?php /*************************************************************************** * page_header.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : support@phpbb.com * * $Id: page_header.php,v 1.106.2.25 2005/10/30 15:17:14 acydburn Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); } define('HEADER_INC', TRUE); $timeout = 1; $pvpgn = array( 'check' => true, // Should we check the status of the PvPGN server? (true or false) 'ip' => '127.0.0.1', // IP of the PvPGN server 'port' => 6112, // Port of the PvPGN server ); $output = ''; if ($pvpgn['check']) { if ($fp = @fsockopen($pvpgn['ip'], $pvpgn['port'], $errno, $errstr, $timeout)) { fclose($fp); $output .= "<p>\n"; $output .= "Diablo realm is <font color="#00FF00">online</font>\n"; $output .= "</p>\n"; } else { $output .= "<p>\n"; $output .= "Diablo realm is <font color="#FF0000">offline</font>\n"; $output .= "</p>\n"; } } test Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 24, 2007 Share Posted June 24, 2007 What are you testing? Whats your problem/question? We are not mind readers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.