peacestgt
11-22-2006, 10:24 PM
Hy all,
i`ve moved my board to a new ISP, and ive updated the board from 3.5.3 to 3.6.3 and the CMPS to 2.2.1.
Ive a Counterstrike Status Module on the Portalpage, and if this aktive so the page need a long time to build up, and this module is empty..
The module is:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>» Serverstatus</b></span></td>
</tr>
<tr>
<td class="$getbgrow" align="center">
<span class="smallfont">
<?
include("http://www......&game=cstrike&pic=1&ppl=1&bg=#CDCDCD");
?>
</td>
</span>
</form>
</td>
</tr>
</table>
<br/>
I dont know what happens.
Bevor i moves the board i made a preinstall and tests, everything looks fine, but i dont know whats going on.
some ideas?
ty
Mike
peacestgt
11-23-2006, 07:47 AM
ok problem solved,i cant run the file
<script type="text/javascript">
function FensterOeffnen (Adresse) {
Fenster1 = window.open(Adresse, "Zweitfenster", "width=300,height=300,left=100,top=200");
Fenster1.focus();
}
</script>
<?php
/*
*
* Copyright by allstats.de (c) 2005 Harald Stob
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
if(!$_GET["ip"]) {
echo "IP is missing!<br>&ip=...";
die;
}
if(!$_GET["port"]) {
$ipport = explode(':', $_GET['ip']);
if(!$ipport[1] && strpos($ipport[0], '.')) {
echo "PORT is missing!<br>&port=...";
die;
} else { $port = $ipport[1]; }
if(!$ipport[0] || !strpos($ipport[0], '.')) {
echo "IP is missing!<br>&ip=...";
die;
} else { $ip = $ipport[0]; }
} else {
$port = $_GET['port'];
$ip = $_GET['ip'];
}
require("hlquery_funcs.inc"); // relative path from here to the hlquery_funcs.inc (Default= the same dir)
require("binary_funcs.inc"); // relative path from here to the binary_funcs.inc (Default= the same dir)
$info = Source_A2S_Info($ip, $port);
$info['address'] = $ip . ":" . $port;
$challenge = Source_A2S_GetChallenge($ip, $port);
$rules = Source_A2S_Rules($ip, $port, $challenge);
$mpg = "http://maps.hlstats.net"; // MapPicsGallery: Somewhere you have mappics
// need the following structure:
// /misc - for replacment pics and other stuff
// /$game - for the games mappics
// /weapons/$game - for the games weapons
$info = Format_Info_Array($info, $rules, $mpg);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Status of <?php echo $info['hostname']; ?></TITLE>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<META NAME="AUTHOR" CONTENT="allstats.de - HLstats Hosting">
<META NAME="COPYRIGHT" CONTENT="Copyright (c) 2002 by allstats.de - HLstats Hosting">
<META NAME="KEYWORDS" CONTENT=" hlstats, hosting, serverstatus">
<META HTTP-EQUIV=Refresh CONTENT="180">
<style type="text/css">
<!--
body table {
font-family:tahoma, helvetica;
font-size:9px;
text-decoration:none;
}
a {text-decoration:none;}
-->
</style>
</HEAD>
<body bgcolor="#<?php echo $_GET['bg']; ?>"
text="#<?php echo $_GET['text']; ?>"
vlink="#<?php echo $_GET['text']; ?>"
alink="#<?php echo $_GET['text']; ?>"
link="#<?php echo $_GET['text']; ?>"
background="<?php echo $_GET['img']; ?>" >
<?php
echo "<center>\n"
."<TABLE width=\"132\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
if ($_GET['pic']) {
echo "<tr><td colspan=\"2\" align=\"center\"><!--<a href=\"http://www.allstats.de\" target=\"_blank\">www.allstats.de</a>--></td></tr>\n"
."<TR><TD colspan=\"2\" width=\"100%\" align=\"center\">\n";
echo $info['img']."\n";
echo "</TD></TR>\n";
}
?>
<TR><td align="center" width="100%" colspan="2"><?php echo $info['hostname']; ?></td></tr>
<tr><td align="center" width="100%" colspan="2"><?php echo $info['address']; ?></td></tr>
<tr><td align="left">Game: </td><td align="right"><?php echo $info['short_descr']; ?></td></tr>
<tr><td align="left">AntiCheat: </td><td align="right"><?php echo $info['anticheat']; ?></td></tr>
<tr><TD align="left">Map: </td><td align="right"><?php echo $info['map']?></TD></tr>
<tr><TD align="left"><a href="allstats/motd.htm" onclick="FensterOeffnen(this.href); return false">Motd: </td><td align="right"></a><?
$datum=date("w");
if ( $datum == 1 ) {
echo "de_chateau";
}
elseif ( $datum == 2 ){
echo "de_cbble";
}
elseif ( $datum == 3 ){
echo "de_torn";
}
elseif ( $datum == 4 ){
echo "de_prodigy";
}
elseif ( $datum == 5 ){
echo "de_train";
}
elseif ( $datum == 6 ){
echo "cs_survivor";
}
elseif ( $datum == 0 ){
echo "cs_italy";
}
/**<?php echo $info['nextmap']**/?></TD></tr>
<tr><td align="left">Players: </td><td align="right">
<?php echo $info['players']; ?> / <?php echo $info['max']; ?>
</td></tr>
</table>
</center>
<?php
if ($_GET['top']) {
$top=$_GET['top'];
$dbhost=""; //mysql host address
$dbname=""; // database name
$dbpass=""; // database password
$dbuname=""; //mysql user name
@mysql_connect($dbhost, $dbuname, $dbpass) or die ("Unable to connect to mysql server");
@mysql_select_db($dbname) or die ("Unable to select database");
$sql = 'SELECT lastName, skill, game FROM hlstats_Players where game="css" AND hideranking=0 ORDER BY skill DESC limit 10';
$result = mysql_query("SELECT lastName, skill FROM hlstats_Players where game='".$info['game']."' AND hideranking=0 ORDER BY skill DESC limit $top");
if($result) {
echo "<table width=\"132\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
."<tr><td colspan=\"2\" align=\"center\">Top $top</td></tr>\n"
."<tr><td width=\"102\" align=\"left\"><b><u>Name</b></u></font></td><td width=\"30\" align=\"right\"><b><u>Skill</b></u></td></tr>\n";
$i=0;
while ($i!=($_GET['top']) && $data = mysql_fetch_object($result)) {
echo "<TR><TD ALIGN=\"left\">";
$show_length = 17; //Set to however many characters you would like to show in players name
if(strlen($data->lastName)>$show_length){
$data->lastName = substr($data->lastName, 0, $show_length);
$data->lastName .= "..";
}
echo htmlentities($data->lastName);
echo "</TD><td align=\"right\">$data->skill</td></TR>\n";
$i++;
}
mysql_close();
echo "</table>";
}
}
if ($_GET["ppl"]) {
$players = Source_A2S_Player($ip, $port, $challenge); // already challenged for rules above
if ($players) {
echo "<table width=\"132\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n"
."<tr><td colspan=\"2\" align=\"center\"><b>Spieler</b></td></tr>\n"
."<tr><td width=\"102\" align=\"left\"><b><u>Name</b></u></font></td><td width=\"30\" align=\"right\"><b><u>Frags</b></u></td></tr>\n";
foreach($players as $name=>$value) {
echo "<TR bgcolor=\"".$_GET['bg']."\">"
."<TD align=\"left\">";
$show_length = 17; //Set to however many characters you would like to show in players name
if(strlen($value['name'])>$show_length){
$value['name'] = substr($value['name'], 0, $show_length);
$value['name'] .= "..";
}
echo htmlentities($value["name"])."</TD><TD align=\"right\"> ".$value["frags"]."</TD></TR>\n";
}
echo "</table>";
}
}
?>
</BODY>
</HTML>
on the new isp... dont know why..
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.