NewStar

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [06-Apr-2024 08:08:01] NOTICE: "A non well formed numeric value encountered"

    File: /home/Luz-Pardida-Clasico/web/xnova.nat.cu/public_html/includes/pages/game/ShowInformationPage.class.php | Line: 134

    URL: xnova.nat.cu/game.php?page=inf…&missile%5B503%5D=1.283.5 | Version: 2.4.git

    Stack trace:

    #0 /includes/pages/game/ShowInformationPage.class.php(134): errorHandler(8, 'A non well form...', '/home/Luz-Pardi...', 134, Array)

    #1 /game.php(40): ShowInformationPage->destroyMissiles()

    #2 {main}
  • PHP Source Code: ShowInformationPage.class.php

    1. public function destroyMissiles()
    2. {
    3. global $resource, $PLANET;
    4. $db = Database::get();
    5. $Missle = HTTP::_GP('missile', array());
    6. $PLANET[$resource[502]] -= max(0, min($Missle[502], $PLANET[$resource[502]]));
    7. $PLANET[$resource[503]] -= max(0, min($Missle[503], $PLANET[$resource[503]]));
    8. $sql = "UPDATE %%PLANETS%% SET ".$resource[502]." = :resource502Val, ".$resource[503]." = :resource503Val WHERE id = :planetID;";
    9. $db->update($sql, array(
    10. ':resource502Val' => $PLANET[$resource[502]],
    11. ':resource503Val' => $PLANET[$resource[503]],
    12. ':planetID' => $PLANET['id']
    13. ));
    14. $this->sendJSON(array($PLANET[$resource[502]], $PLANET[$resource[503]]));
    15. }
    Display All