Problems with WEB Site CMS changibg codes
Posted: Fri Jan 21, 2011 3:21 am
I have been struggling along with trying to make a private pkor room for my friends and family.....I have the link to the game server up and running, and now trying to add-on a few extras like a chip leader board and system stats...let;s discuss the simple one first: systems stats
I have created the Poker_API file and posted it in the wwwroot...
I then use a HTML Module to install the original code from your examples....as seen here
<html>
<body>
<?php
include "API.php"; // $pw and $url set in this file
$params = "Password=" . $pw . "&Command=SystemStats";
$api = Poker_API($url,$params,true);
echo "<h3>Poker Server Status</h3>\r\n";
if ($api["Result"] == "Error") die("Error: " . $api["Error"]);
echo "Logins: " . $api["Logins"] . "<br/>\r\n";
echo "Filled Seats: " . $api["FilledSeats"] . "<br/>\r\n";
echo "Occupied Tables: " . $api["OccupiedTables"] . "<br/>\r\n";
echo "Up Time: " . $api["UpTime"] . "<br/>\r\n";
?>
</body>
</html>
I update the module and nothig happens, and when I go back into the html module, I can see the following changes....WHY?
<html>
<head>
<title></title>
</head>
<body>
<!--p
include "API.php"; // $pw and $url set in this file
$params = "Password=" . $pw . "&Command=SystemStats";
$api = Poker_API($url,$params,true);
echo "<h3>Poker Server Status</h3>\r\n";
if ($api["Result"] == "Error") die("Error: " . $api["Error"]);
echo "Logins: " . $api["Logins"] . "<br/>\r\n";
echo "Filled Seats: " . $api["FilledSeats"] . "<br/>\r\n";
echo "Occupied Tables: " . $api["OccupiedTables"] . "<br/>\r\n";
echo "Up Time: " . $api["UpTime"] . "<br/>\r\n";
-->
</body>
</html>
I have created the Poker_API file and posted it in the wwwroot...
I then use a HTML Module to install the original code from your examples....as seen here
<html>
<body>
<?php
include "API.php"; // $pw and $url set in this file
$params = "Password=" . $pw . "&Command=SystemStats";
$api = Poker_API($url,$params,true);
echo "<h3>Poker Server Status</h3>\r\n";
if ($api["Result"] == "Error") die("Error: " . $api["Error"]);
echo "Logins: " . $api["Logins"] . "<br/>\r\n";
echo "Filled Seats: " . $api["FilledSeats"] . "<br/>\r\n";
echo "Occupied Tables: " . $api["OccupiedTables"] . "<br/>\r\n";
echo "Up Time: " . $api["UpTime"] . "<br/>\r\n";
?>
</body>
</html>
I update the module and nothig happens, and when I go back into the html module, I can see the following changes....WHY?
<html>
<head>
<title></title>
</head>
<body>
<!--p
include "API.php"; // $pw and $url set in this file
$params = "Password=" . $pw . "&Command=SystemStats";
$api = Poker_API($url,$params,true);
echo "<h3>Poker Server Status</h3>\r\n";
if ($api["Result"] == "Error") die("Error: " . $api["Error"]);
echo "Logins: " . $api["Logins"] . "<br/>\r\n";
echo "Filled Seats: " . $api["FilledSeats"] . "<br/>\r\n";
echo "Occupied Tables: " . $api["OccupiedTables"] . "<br/>\r\n";
echo "Up Time: " . $api["UpTime"] . "<br/>\r\n";
-->
</body>
</html>