Example #1
0
 public static function get($param)
 {
     $config = array('site_name' => 'The Computer Shop', 'base_url' => 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']), 'base_path' => realpath(__DIR__ . '/../..'), 'home' => 'home', 'write_log' => false, 'db_host' => '127.0.0.1', 'db_username' => 'dev', 'db_password' => '1337dev', 'db_name' => 'tcs-webstore', 'shared_folder' => realpath(__DIR__ . '/../..') . DS . 'upload', 'new_dir_mode' => 0755, 'time_format' => 'd/m/y', 'max_files' => 50, 'max_filesize' => 20971520, 'accept_file_extensions' => array('*'), 'restricted_files' => array('.htaccess', 'Thumbs.db'), 'cookie_name' => 'hash', 'cookie_expiry' => 86400, 'search_limit' => 15, 'table_limit' => 20);
     $config = File::validateConf($config, $param);
     if (isset($config[$param])) {
         return $config[$param];
     }
 }