示例#1
0
         echo "Server is under scheduled maintenance so your data is being updated. (between 11:00-11:20 AM GMT everyday)";
         cachedTable($con, $user_session);
         exit;
     }
     if ($timenow < strtotime($cached)) {
         cachedTable($con, $user_session);
         //echo "<meta http-equiv='refresh' content='0; url=dashboard.php?character=$idcharacter'>";
         exit;
     }
 }
 /////////////////////////////////
 ///Account balance update
 /////////////////////////////////
 $pheal = new Pheal($apikey, $vcode, "char");
 //set scope
 $response = $pheal->AccountBalance(array("characterID" => $idcharacter));
 //add parameters
 foreach ($response->accounts as $row) {
     $balance = $row->balance;
 }
 ///////////////////
 //Broker relations
 ////////////////
 $level_acc = 0;
 $level_broker = 0;
 //Using Pheal
 $pheal_broker = new Pheal($apikey, $vcode, "char");
 //set scope
 $response = $pheal_broker->CharacterSheet(array("characterID" => $idcharacter));
 //add parameters
 foreach ($response->skills as $skills) {