Menu

#5 Compatibility: some code broken after update to ALE 50.2

open
nobody
None
5
2010-01-05
2010-01-05
Iyotaka
No

Most of my app works as a cron job, so I have not tested it all. I do have a small bit that checks for the online status, and that goes from reporting the correct online status to saying EVE is offline.

My current code is:
try {
$ale = AleFactory::getEVEOnline();
$servStatus = $ale->server->serverStatus();
$serverTime = strrchr($servStatus->currentTime, " ");
$serverOpen = $servStatus->result->serverOpen;
$open = strcmp($serverOpen,"True") == 0;
$online = $open ? "Online" : "Offline";
$onlinePlayers = $servStatus->result->onlinePlayers;
$s->assign('evetime', $serverTime );
$s->assign('onlineStatus', $online );
$s->assign('players', $onlinePlayers );
$s->display('banner.tpl');
}
My only change is the version of ALE that gets pointed at:
<?php
# define("ALE", "/data/home/iy/src/php/classes/ale/");
define("ALE", "/data/home/iy/ale/");
require_once ALE . 'factory.php';
?>

The versions?
base.php: * @version $Id: base.php 190 2009-03-05 18:59:58Z kovalikp $
evecentral.php: * @version $Id: evecentral.php 205 2009-04-25 22:15:44Z kovalikp $
eveonline.php: * @version $Id: eveonline.php 195 2009-04-01 23:13:16Z kovalikp $
factory.php: * @version $Id: factory.php 204 2009-04-25 22:14:22Z kovalikp $

and 50.2
base.php: * @version $Id: base.php 210 2009-07-23 18:16:20Z kovalikp $
evecentral.php: * @version $Id: evecentral.php 210 2009-07-23 18:16:20Z kovalikp $
eveonline.php: * @version $Id: eveonline.php 212 2009-10-17 22:29:38Z kovalikp $
factory.php: * @version $Id: factory.php 207 2009-07-18 23:21:48Z kovalikp $

Discussion


Log in to post a comment.

MongoDB Logo MongoDB