* @author Tomasz Wolniewicz * * @package Configuration */ class Config { /** * Database server that contains all the user data * @var string */ public static $KB_HOST="leopard-www.uci.umk.pl"; /** * Database name on the server * @var string */ public static $KB_DB="eduroam_configurator"; /** * Username to access the database * @var string */ public static $KB_USER="stefan"; /** * Password to access the database * @var string */ public static $KB_PASS="p234jsyxt"; /** * Base path for temporary files (these will hold site installer data) * @var string */ public static $TMP_BASE_PATH="User_files/"; /** * Installation path of CAT on the system * @var string */ public static $BASE_DIR="/srv/www/htdocs/cat/"; /** * Path to the web subdir of CAT on the system * @var string */ public static $WEB_DIR="/srv/www/htdocs/cat/web/"; /** * The CAT uses Google places to guess a location based on the country and name. You need to have a valid Google Places API key for that. Note that this is different from the Google Maps API key, below. * @var string */ public static $PLACES_API_KEY="somekey"; /** * Your API key for Google Maps. If this config variable is invalid, all the map parts won't work. * @var string */ public static $MAPS_API_KEY="someotherkey"; /** * Maximum size of files to be uploaded. Clever people can circumvent this; in the end, the hard limit is configured in php.ini * @var int */ public static $MAX_UPLOAD_SIZE = 10000000; /** * Verbosity of some of the core code. The following debug levels are supported: * 1 = production (silence) * 2 = normal debug * 3 = more debug * 4 = annoyingly much debug output * 5 = way too much debug output (level 4 + SQL query dump) * * @var int * */ public static $DEBUG_LEVEL=5; /** * Destination for debug logs * @var string */ public static $DEBUG_FILE='/tmp/cat.log'; /** * The RADIUS proxies to contact for static realm reachability checks * @var array */ public static $RADIUS_HOSTS=array ( array ('display_name' => 'Europe/Luxembourg', 'ip' => '5.6.7.8', 'secret' => 'somesecret', 'timeout' => 5), array ('display_name' => 'Otherregion', 'ip' => '1.2.3.4', 'secret' => 'whatever', 'timeout' => 5), ); /** * Available languages. * In this array, the key is the shortname; the value is an array of * 'display' (display name) * 'locale' (the system locale to map to this shortname * NOTE: your OS must have this locale installed - if not, switching to the * language won't work, even if you have the corresponding language * pack installed! */ public static $LANGUAGES = array ( 'de' => array ('display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'win_cp' => 'cp1252'), 'en' => array ('display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'win_cp' => 'cp1252'), 'hr' => array ('display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'win_cp' => 'cp1250'), 'pl' => array ('display' => 'Polski', 'locale' => 'pl_PL.utf8', 'win_cp' => 'cp1250'), ); public static $LANGUAGES = array ( 'de' => array ('display' => 'Deutsch', 'locale' => 'de_DE.utf8'), 'en' => array ('display' => 'English(GB)', 'locale' => 'en_GB.utf8'), ); /** * Sets the default locale. * If a user signals a preferred (and supported) language via browser settings, or clicks * on a language, this field is not used. * @var string */ public static $DEFAULT_LOCALE = array('lang_index' => 'en', 'locale' => 'en_GB.utf8'); } ?>