Source for file config.php
Documentation is available at config.php
* Copyright (c) 2008, Atikae (Hugo Busiere) <atikae@gmail.com>
* See COPYING file for more informations
* Main class of ProxyDetector.
* @author Atikae (Hugo Busiere) <atikae@gmail.com>
* @licence COPYING BSD licence
* This is the config class of ProxyDetector Project.
* All config options MUST set here
* If false, think change {@link $errorFile} for don't display
* (Don't touch if you don't know what does it mean)
* Optional HTTP Headers you want to check
* (Don't touch if you don't know what does it mean)
* Non-default session_name
* (Don't uncomment if you don't know what does it mean)
//var $session_name = '';
* Error file without -{LANGUAGE} extension_loaded
* Example : if fileName is proxy.html-en, just set proxy.html
* File MAY be html and MUST implement {HEADERS_HERE} for headers
* detected and can (if {@link $useTor} is true) {TOR_HERE
* If you change {@link $errorFile} or {@link $language},
* don't forget clean cookie for refresh PHP_SESSION
* Language, needed for {@link $errorFile} personnification
* FileName pattern : {@link $errorFile}-{@link $language}
* All strings for translations
var $strings = array('en' => array('none' => 'None', 'yes' => 'Yes', 'no' => 'No'),
'fr' => array('none' => 'Aucun', 'yes' => 'Oui', 'no' => 'Non')
* Get conf or if not set or empty, return $default parameter
* @param string $name Config variable name
* @param string $default Default string return if config variable doesn't exist or is empty
* @return string Default or Attribut value
function getConf($name, $default) {
return $attributs[$name];
|