private static function load($key, $universe = 's1-de')
 {
     if (empty(self::$data[$key]['raw'])) {
         $url = sprintf(self::$data[$key]['url'], $universe);
         trigger_error($url);
         $raw = \components\utilites\CURL::url_get_contents($url, true);
         trigger_error(\components\utilites\Prettify::dump($raw));
         self::$data[$key]['raw'] = $raw;
     }
 }
Exemple #2
0
</p>
            <form class="input-group" target="">
                <input type="text" class="form-control" name="player" placeholder="<?php 
    echo components\language\Language::translate("player_search_placeholder");
    ?>
" />
                <span class="input-group-btn">
                    <input type="submit" class="btn btn-default" name="find_player" value="<?php 
    echo components\language\Language::translate("player_search_button");
    ?>
" />
                </span>
                <input type="hidden" name="page" value="ogame" />
            </form>
        <?php 
} else {
    ?>
            <?php 
    $player_name = components\input\Input::getGET('player');
    $universe_api = extensions\ogame\OGameAPI::getAPI('universes');
    ?>
    
            <pre><?php 
    echo \components\utilites\Prettify::dump($universe_api, true);
    ?>
</pre>
        <?php 
}
?>
    </div>
</div>