示例#1
0
<?php

// Kofradia
// game funksjoner
// hent inn innstillinger, info om bydelene og rankene
// hentes fra cache hvis mulig
if (!game::$settings) {
    game::init();
}
class game
{
    /** Innstillinger */
    public static $settings;
    /** Bydeler */
    public static $bydeler;
    /** Rankene */
    public static $ranks;
    /** For [nobb] */
    public static $nobb = array();
    /** For [linkonly] */
    public static $linkonly = array();
    public static $bb_music = array();
    public static $bb_music_c = 0;
    // init
    public static function init()
    {
        // hent innstillinger
        self::$settings = cache::fetch("settings");
        if (!self::$settings) {
            // hent ny data
            require PATH_APP . "/scripts/update_db_settings.php";