Creating the top navigation menu for 1.8 as in the xtterium

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

  • foreach($reslist['resstype'][1] as $resourceID) { $resourceTable[$resourceID]['name'] = $resource[$resourceID]; $resourceTable[$resourceID]['current'] = $PLANET[$resource[$resourceID]]; $resourceTable[$resourceID]['max'] = $PLANET[$resource[$resourceID].'_max']; $resourceTable[$resourceID]['percent'] = round($PLANET[$resource[$resourceID]] * 100 / $PLANET[$resource[$resourceID].'_max']); if($PLANET['planet_type'] == 1){ $resourceTable[$resourceID]['information'] = pretty_number($PLANET[$resource[$resourceID].'_perhour'] + $config->{$resource[$resourceID].'_basic_income'} * $resourceSpeed); $resourceTable[$resourceID]['informationd'] = pretty_number(($PLANET[$resource[$resourceID].'_perhour'] + $config->{$resource[$resourceID].'_basic_income'} * $resourceSpeed) *24); $resourceTable[$resourceID]['informationz'] = pretty_number(($PLANET[$resource[$resourceID].'_perhour'] + $config->{$resource[$resourceID].'_basic_income'} * $resourceSpeed) * 24 * 7); }else{ $resourceTable[$resourceID]['information'] = 0; $resourceTable[$resourceID]['informationd'] = 0; $resourceTable[$resourceID]['informationz'] = 0; } if($USER['urlaubs_modus'] == 1 || $PLANET['planet_type'] != 1) { $resourceTable[$resourceID]['production'] = $PLANET[$resource[$resourceID].'_perhour']; } else { $resourceTable[$resourceID]['production'] = $PLANET[$resource[$resourceID].'_perhour'] + $config->{$resource[$resourceID].'_basic_income'} * $resourceSpeed; } } foreach($reslist['resstype'][2] as $resourceID) { $resourceTable[$resourceID]['name'] = $resource[$resourceID]; $resourceTable[$resourceID]['used'] = $PLANET[$resource[$resourceID].'_used']; $resourceTable[$resourceID]['max'] = $PLANET[$resource[$resourceID]]; $resourceTable[$resourceID]['used1'] = abs($PLANET[$resource[$resourceID].'_used']); if($PLANET[$resource[$resourceID]] == 0){ $resourceTable[$resourceID]['percent'] = 0; $resourceTable[$resourceID]['percenta'] = 0; }else{ $resourceTable[$resourceID]['percent'] = 100 / $PLANET[$resource[$resourceID]] * ($PLANET[$resource[$resourceID]] - abs($PLANET[$resource[$resourceID].'_used'])) / 2; $resourceTable[$resourceID]['percenta'] = abs(100 / $PLANET[$resource[$resourceID]] * ($PLANET[$resource[$resourceID]] - abs($PLANET[$resource[$resourceID].'_used'])) / 2); } }
    Fatal error: Class 'AbstractGamePage' not found in D:\2MOONS\OPESERVER\OpenServer\domains\OXWARS\includes\pages\game\ShowErrorPage.class.php on line 20
  • Warning: Cannot modify header information - headers already sent by (output started at D:\2MOONS\OPESERVER\OpenServer\domains\OXWARS\includes\pages\game\AbstractGamePage.class.php:1) in D:\2MOONS\OPESERVER\OpenServer\domains\OXWARS\includes\common.php on line 39
    WARNING
    Message: Cannot modify header information - headers already sent by (output started at /includes/pages/game/AbstractGamePage.class.php:1)
    File: /includes/classes/HTTP.class.php
    Line: 35
    URL: oxwars/game.php
    PHP-Version: 5.3.29
    PHP-API: apache2handler
    2Moons Version: 1.8.git
    Debug Backtrace:
    #0 [internal function]: errorHandler(2, 'Cannot modify h...', 'FILEPATH ...', 35, Array)
    #1 /includes/classes/HTTP.class.php(35): header('P3P: CP="IDC DS...')
    #2 /includes/common.php(66): HTTP::sendHeader('P3P', 'CP="IDC DSP COR...')
    #3 /game.php(24): require('FILEPATH ...')
    #4 {main}