95 lines
2.9 KiB
PHP
95 lines
2.9 KiB
PHP
<?php
|
|
Class ConfigurationGenerique
|
|
{
|
|
public static $debug = true;
|
|
public static $redevance_insee = 3.295;
|
|
public static $api = '2.0.2';
|
|
public function __construct(){set_limit(0);}
|
|
}
|
|
|
|
Class ConfigurationCiblage extends ConfigurationGenerique
|
|
{
|
|
public static $index = 'ciblage';
|
|
|
|
public static $nb_results = 1000;
|
|
public static $max_results = 500000;
|
|
|
|
public static $mysql_host = MYSQL_HOST;
|
|
public static $mysql_user = MYSQL_USER;
|
|
public static $mysql_password = MYSQL_PASS;
|
|
public static $mysql_database = MYSQL_DEFAULT_DB;
|
|
|
|
|
|
public static $sphinx_host = '192.168.78.252';
|
|
public static $sphinx_port = 3312;
|
|
public static $sphinx_match = SPH_MATCH_EXTENDED2;
|
|
public static $sphinx_sort = SPH_SORT_EXTENDED;
|
|
}
|
|
|
|
Class ConfigurationEnt extends ConfigurationGenerique
|
|
{
|
|
public static $index = 'ent';
|
|
|
|
public static $mysql_host = MYSQL_HOST;
|
|
public static $mysql_user = MYSQL_USER;
|
|
public static $mysql_password = MYSQL_PASS;
|
|
public static $mysql_database = MYSQL_DEFAULT_DB;
|
|
|
|
public static $sphinx_host = SPHINX_ENT_HOST;
|
|
public static $sphinx_port = SPHINX_ENT_PORT;
|
|
public static $sphinx_match = SPH_MATCH_EXTENDED2;
|
|
public static $sphinx_sort = SPH_SORT_EXTENDED;
|
|
|
|
public static $app_maxSizeWord = 0;
|
|
public static $app_actif = false;
|
|
public static $app_form = array('siren' => 'I', 'raisonSociale' => 'S',
|
|
'departement' => 'D', 'localite' => 'L',
|
|
'cpVille' => 'D', 'numeroVoie' => 'N',
|
|
'Voie' => 'R', 'Ville' => 'V',
|
|
'naf' => 'F');
|
|
}
|
|
|
|
Class ConfigurationAct extends ConfigurationGenerique
|
|
{
|
|
public static $index = 'act';
|
|
|
|
public static $mysql_host = MYSQL_HOST;
|
|
public static $mysql_user = MYSQL_USER;
|
|
public static $mysql_password = MYSQL_PASS;
|
|
public static $mysql_database = MYSQL_DEFAULT_DB;
|
|
|
|
public static $sphinx_host = SPHINX_ACT_HOST;
|
|
public static $sphinx_port = SPHINX_ACT_PORT;
|
|
public static $sphinx_match = SPH_MATCH_EXTENDED2;
|
|
public static $sphinx_sort = SPH_SORT_EXTENDED;
|
|
}
|
|
|
|
Class ConfigurationDir extends ConfigurationGenerique
|
|
{
|
|
public static $index = 'dir';
|
|
|
|
public static $mysql_host = MYSQL_HOST;
|
|
public static $mysql_user = MYSQL_USER;
|
|
public static $mysql_password = MYSQL_PASS;
|
|
public static $mysql_database = MYSQL_DEFAULT_DB;
|
|
|
|
public static $sphinx_host = SPHINX_DIR_HOST;
|
|
public static $sphinx_port = SPHINX_DIR_PORT;
|
|
public static $sphinx_match = SPH_MATCH_EXTENDED2;
|
|
public static $sphinx_sort = SPH_SORT_EXTENDED;
|
|
}
|
|
|
|
Class ConfigurationHisto extends ConfigurationGenerique
|
|
{
|
|
public static $index = 'histo';
|
|
|
|
public static $mysql_host = MYSQL_HOST;
|
|
public static $mysql_user = MYSQL_USER;
|
|
public static $mysql_password = MYSQL_PASS;
|
|
public static $mysql_database = MYSQL_DEFAULT_DB;
|
|
|
|
public static $sphinx_host = SPHINX_HISTO_PORT;
|
|
public static $sphinx_port = 3312;
|
|
public static $sphinx_match = SPH_MATCH_EXTENDED2;
|
|
public static $sphinx_sort = SPH_SORT_EXTENDED;
|
|
} |