ProxyDetector
[ class tree: ProxyDetector ] [ index: ProxyDetector ] [ all elements ]

Class: Config

Source Location: /config.php

Class Overview


This is the config class of ProxyDetector Project.


Variables

Methods



Class Details

[line 23]
This is the config class of ProxyDetector Project.

This is the config class of ProxyDetector Project. All config options MUST set here




[ Top ]


Class Variables

$errorFile =  'proxy-with-tor.html'

[line 75]

Error file without -{LANGUAGE} extension_loaded

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 $useTor is true) {TOR_HERE} for tor checking




Tags:

access:  protected

Type:   string


[ Top ]

$headers = array()

[line 51]

Optional HTTP Headers you want to check

Optional HTTP Headers you want to check (Don't touch if you don't know what does it mean)




Tags:

access:  protected

Type:   array


[ Top ]

$language =  'en'

[line 92]

Language, needed for $errorFile personnification

Language, needed for $errorFile personnification FileName pattern : $errorFile-$language Defaut value : en, fr




Tags:

access:  protected

Type:   string


[ Top ]

$strings = array('en' => array('none' => 'None', 'yes' => 'Yes', 'no' => 'No'),'fr'=>array('none'=>'Aucun','yes'=>'Oui','no'=>'Non'))

[line 99]

All strings for translations

All strings for translations




Tags:

access:  protected

Type:   array


[ Top ]

$torNodeAddr =  'ip-port.exitlist.torproject.org'

[line 42]

URI of TORdnsel server

URI of TORdnsel server (Don't touch if you don't know what does it mean)




Tags:

access:  protected

Type:   string


[ Top ]

$useTor =  true

[line 33]

Using Tor Check ?

Using Tor Check ? If false, think change $errorFile for don't display "Use Tor" field




Tags:

access:  protected

Type:   boolean


[ Top ]



Class Methods


method getConf [line 109]

string getConf( string $name, string $default)

Get conf or if not set or empty, return $default parameter

Get conf or if not set or empty, return $default parameter




Tags:

return:  Default or Attribut value


Parameters:

string   $name   Config variable name
string   $default   Default string return if config variable doesn't exist or is empty

[ Top ]


Documentation generated on Tue, 26 Aug 2008 18:42:01 +0200 by phpDocumentor 1.4.1