/DEV/LIB/constants.settings.php
PHP | 334 lines | 132 code | 69 blank | 133 comment | 9 complexity | 1162ae505898d4deacfb8e6c11717a93 MD5 | raw file
- <?php
- // repertoire dans lequel les fichiers generes par les scripts des crons sont enregistres
- defined('URL_DATA') || define("URL_DATA", "/data/apache/DATA/");
- define('TRAPPED_WRITE_ERROR', '/data/apache/DATA/trapped_errors/');
- // random connection
- define("ORA_DB_RANDOM", 70);
- // interruption connection (time)
- define("ORA_DB_OFFTIME", 1800);
- // interruption connection (path log)
- define("ORA_DB_LOGPATH", $_SERVER['DOCUMENT_ROOT'] . "../DATA/statpro/error_oracle.txt");
- // if current date minus ad last modification date is inferior or equal to this value, the ad is displayed using the blue template
- define("DAYS_TO_BE_NEW", 7);
- // number of fields on home search : 1 to 4
- define("SEARCH_FIELDS_NUMBER", 3);
- // max results
- define("MAX_RESULTS", 100000);
- define("MAX_RESULTS_AGENCY", 100000);
- // max results per page
- define("MAX_RESULTS_NEWADS_REFVILLE", 3);
- define("MAX_RESULTS_AGENCY_PER_PAGE", 9);
- define("MAX_RESULTS_INFO_PER_PAGE", 10);
- // number of items diplayed in results navigation bar << < 1 2 3 4 5 > >>
- define("MAX_RESULTS_NAVIGATION_ITEMS", 5);
- define("SUMMARY_LIST_PROPERTY_TYPES", false);
- // minimum price value to be taken into account
- define("MIN_PRICE_SAL", 10000);
- define("MIN_PRICE_RNT", 0);
- define("MIN_PRICE_SAL_BE", 10000);
- define("MIN_PRICE_SAL_CH", 10000);
- define("MIN_PRICE_SAL_CZ", 10000);
- define("MIN_PRICE_SAL_FR", 10000);
- define("MIN_PRICE_SAL_HU", 10000);
- define("MIN_PRICE_SAL_PL", 10000);
- define("MIN_PRICE_SAL_SK", 10000);
- define("MIN_PRICE_RNT_BE", 0);
- define("MIN_PRICE_RNT_CH", 0);
- define("MIN_PRICE_RNT_CZ", 0);
- define("MIN_PRICE_RNT_FR", 0);
- define("MIN_PRICE_RNT_HU", 0);
- define("MIN_PRICE_RNT_PL", 0);
- define("MIN_PRICE_RNT_SK", 0);
- // if ad price is equal to this value, "CONTACT US / NOUS CONTACTER" is displayed instead
- define("AD_PRICE_LIMIT", 1999999999);
- // cookies
- define("COOKIE_DURATION", 10);
- define("SEARCH_HISTORY_COOKIE_NAME", "LISearchHistoryCookieCompressed");
- define("S_PARAMS", "s_params");
- define("S_PARAMS_COMPRESSED", "s_params_compressed");
- define("PREHOME_COOKIE_NAME", "LI_LangNavSite");
- define("USER_DATA_IHM_COOKIE_NAME", "user_data_ihm");
- // nombre d'annonces par page
- $nb_results = 7;
- $aSearch = $_COOKIE[USER_DATA_IHM_COOKIE_NAME];
- if ($aSearch) {
- $oSearch = json_decode($aSearch);
- if ($oSearch) {
- $nb_results_cookies = $oSearch->nb_results;
- //Patch brutas Mathieu conception Alice Noel
- $nb_results = $nb_results_cookies;
- /*if ($nb_results_cookies == 7 || $nb_results_cookies == 10) {
- $nb_results = 9; //si l'utilisateur à dans son cookie 7 ou 10 ça devient 9
- }*/
- }
- }
- define("MAX_RESULTS_PER_PAGE", $nb_results);
- //var_dump(MAX_RESULTS_PER_PAGE);
- // resources servers aliases
- define("IMG_SRV_ALIAS", ""); // images
- define("RSC_SRV_ALIAS", ""); // css & js
- define("URL_SMARTIES", "http://images.logicimmo.com/getimage2.php?v5=1&");
- define("URL_SMARTIES_AD_THUMB", URL_SMARTIES . "path=thumb&wm=137&hm=105&type=prop&id=");
- define("URL_SMARTIES_AD_THUMB_DETAIL", URL_SMARTIES . "path=thumb&wm=69&hm=53&type=crop&id=");
- define("URL_SMARTIES_AD", URL_SMARTIES . "path=thumb&wm=440&hm=330&type=prop&id=");
- define("URL_SMARTIES_AD_MULTIBOX", URL_SMARTIES . "path=thumb&wm=800&hm=600&type=prop&id=");
- define("URL_VIDEOS_AD", constant("URL_SITE_" . strtoupper($_global["site"])) . "mmf/mmf_player.php?file=");
- define("URL_FLUX_MOBIVILLAGE", "http://videos.logic-immo.prod.mobivillage.com/generateStream.php?iddp=");
- define("URL_SMARTIES_AG_SMALL", URL_SMARTIES . "db=presto&path=logo_agence_thumb&type=prop&wm=60&hm=40&id=");
- define("URL_SMARTIES_AG_THUMB", URL_SMARTIES . "db=presto&path=logo_agence_thumb&type=prop&wm=137&hm=105&id=");
- define("URL_SMARTIES_AG", URL_SMARTIES . "db=presto&path=logo_agence_thumb&type=prop&wm=260&hm=160&id=");
- define("URL_SNAPSHOT_AG", "http://logicimmo.websnapr.com/?url=#URL#&size=S");
- define("URL_SMARTIES_GEOBOOSTER", URL_SMARTIES . "path=pub_cp&id=");
- // flashcode pour clients en AMB
- if ($_global['dev'] || $_global['pre_prod']) {
- define("URL_FLASHCODE_IMAGE", "http://172.16.42.35:8090/2dcode/amb-qrcode");
- define("FIC_FLASHCODE_CLIENTS", "/data/extdsk1/DATA/fr/ids_clients_flashcode.csv");
- } else { // prod
- define("URL_FLASHCODE_IMAGE", "http://images.petites-annonces.fr/2dcode/amb-qrcode");
- define("FIC_FLASHCODE_CLIENTS", "/data/extdsk1/DATA/fr/ids_clients_flashcode.csv");
- }
- /* CONFIGURATION POUR LA CAMPAGNE "EXCLUSIVITE" */
- /*
- // Activation temporaire uniquement en vbx et en dev
- define('CURRENT_EXCLUSIVE_NUM', $_global['dev'] || $_global["pre_prod"] ? 2 : -1);
- define('AGC_EXCLUSIVE_FRANCHISING', $_global['dev'] || $_global["pre_prod"] ? 5 : '');
- */
- // Valeur pour is_exclusive dans la table des annonces
- // La valeur 2 correspond aux annonces ORPI relatives au contrat
- // => Mettre à -1 pour désactiver les annonces exclusives en top de liste
- // car la valeur par défaut des annonces est 0 !
- define('CURRENT_EXCLUSIVE_NUM', 2);
- // Franchise relative à l'exclusivité en cours (page Annuaire des agences)
- // Nom (ex: ORPI) ou Identifiant (ex: 5) de la franchise à passer en Exclu
- // => Permet de mettre toutes les agences en premier
- // => Permet d'afficher la carto
- // => Mettre à vide '' pour ne pas traiter d'agences exclusives
- define('AGC_EXCLUSIVE_FRANCHISING', 5);
- // Url de la page co-brandée, dédiée à l'exclusivité
- define('CURRENT_EXCLUSIVE_URL', '');
- // Url de la page par défaut (si CURRENT_EXCLUSIVE_URL vide et pas de site agence)
- define('DEFAULT_EXCLUSIVE_URL', 'http://www.orpi.com/');
- // Logo de l'agence en exclusivité
- //define('CURRENT_EXCLUSIVE_IMG',URL_MMF_SITE.'logo/orpi_hd'); // orpi.jpg
- //define('CURRENT_EXCLUSIVE_IMG',URL_MMF_SITE.'static/logos/orpi_hd'); // orpi.jpg
- define('CURRENT_EXCLUSIVE_IMG', 'http://www.logic-immo.com/images/logos/orpi_hd'); // orpi.jpg
- // Picto à afficher dans le bloc annonce ou la page détail
- define('CURRENT_EXCLUSIVE_PICTO', '<img src="' . URL_MMF_SITE . 'static/pictos/exclusive.gif" width="124" height="27" alt="** Exclusivité ORPI **" style="color: red; font-size: 14px; font-weight: bold;" />');
- /* FIN DE CONFIGURATION */
- // mmf types labels
- define("AD_MMF_TYPE_1", "video");
- define("AD_MMF_TYPE_2", "sound");
- define("AD_MMF_TYPE_3", "plan");
- define("AD_MMF_TYPE_4", "virtual_tour");
- define("AD_MMF_TYPE_5", "google_map");
- // proximity cities files path
- define("URL_PROXIMITY_CACHE", "/data/apache/DATA/fr/ads_proximity/");
- // proximity cities files path (for each cities)
- define("URL_PROXIMITY_CACHE_EXT", "/data/extdsk1/DATA/fr/cache_prox_50/");
- //cace informer
- define("URL_INFORMER_CACHE_EXT", "/data/extdsk1/DATA/fr/cache_informer/cache_informer_hp.json");
- // cache geoloc
- define("CACHE_GEOLOC", "/data/extdsk1/DATA/fr/cache_LocIP/");
- // oas server
- define("URL_OAS_SERVER", "http://delivcmm.spir.fr/");
- //define("URL_OAS_SERVER", "http://prod-spir.integra.fr/");
- // webservice
- define("URL_GDM_WEBSERVICE", constant("URL_SITE_" . strtoupper($_global["site"])) . "ws/gdm.count.php");
- // log des contacts agence
- define("PATH_LOG_CONTACT_AGENCY", "/data/apache/DATA/fr/log/");
- define("ENABLE_LOG_CONTACT_AGENCY", true);
- // t9
- define("T9_MAX_ITEMS", 21);
- // change this constant to 1 to tag pages with tradedoubler
- define("TRADEDOUBLER_TAG", 0);
- // revisite
- define("DELAY_FOR_REVISITE", ($_global["dev"] == 1 ? 30 : 86400));
- // display of the revisit
- define("DISABLE_REVISIT", true);
- define("FORCE_REVISIT", $_global["dev"]);
- // additional ads count for countries
- define("FICTIVE_ADS_COUNT_BE", 0);
- define("FICTIVE_ADS_COUNT_CH", 0);
- define("FICTIVE_ADS_COUNT_CZ", 0);
- define("FICTIVE_ADS_COUNT_FR", 0);
- define("FICTIVE_ADS_COUNT_HU", 0);
- define("FICTIVE_ADS_COUNT_PL", 0);
- define("FICTIVE_ADS_COUNT_SK", 0);
- // additional ads count rate for french cities (ex: 1.1 <=> n*110%)
- if (isset($_TAB_VILLES) && !empty($_TAB_VILLES)) {
- foreach ($_TAB_VILLES as $TAB_VILLE_NAME => $TAB_VILLE) {
- $ville_name = str_replace("-", "_", $TAB_VILLE_NAME);
- define("FICTIVE_ADS_COUNT_RATE_FR_" . $ville_name, 1.1);
- }
- }
- // intervalle d'affichage du relais neuf
- define("NB_PUB_RELAIS_NEUF", 4);
- // intervalle d'affichage du relais neuf
- define("PUB_RELAIS_LUX_FROM_PRICE", 800000);
- define("nb_click", 1);
- // site titles
- define("TITLE_SITE_BE", "Logic-Immo");
- define("TITLE_SITE_CH", "");
- define("TITLE_SITE_CZ", "Real-City");
- define("TITLE_SITE_FR", "Logic-Immo");
- define("TITLE_SITE_HU", "Eladó-Kiadó");
- define("TITLE_SITE_PL", "");
- define("TITLE_SITE_SK", "");
- /* * *****************************************************************************************
- Choix de l'affichage par type d'annonce pour l'annuaire agence (Mantis N�0003161)
- 1= cumul sur Ventes et Locations par d�fault
- 2= Ventes
- 3= Locations
- Olivier FOSTIER / DATAVANCE
- * ****************************************************************************************** */
- define("ADS_TYPE_ORDER_AGENCY_SEARCH", 1);
- /* * ************************************************************
- Activer la bufferisation pour traiter les liens (W3C, RefNAT)
- 1 ==> Actif (Code correspondant dans: head.php & footer.php)
- Walid ASBAITI 10/07/09
- * ************************************************************ */
- define("BUFFER_ACTIF", 1);
- /* * ************************************************************
- Activer la combination des CSS
- 1 ==> Actif (Code correspondant dans: head.php)
- SOFLOU 17/02/2010
- * ************************************************************ */
- define("USE_COMBINE_CSS", 1);
- /* * ************************************************************
- Activer la combination des CSS en DEV
- 1 ==> Actif (Code correspondant dans: head.php)
- SOFLOU 17/02/2010
- * ************************************************************ */
- define("USE_COMBINE_CSS_INDEV", 1);
- /* * ************************************************************
- Activer le projet POLCO
- 1 ==> Actif (Code correspondant dans: common.functions - Liste_resultats_agence_annonecs)
- Walid ASBAITI 09/02/10
- * ************************************************************ */
- define("ACTIV_POLCO", 0);
- // linkeo
- define("LINKEO_KEY_1", "LOGICIMMO1001");
- define("LINKEO_KEY_2", "PREVLOGIC");
- /* * ************************************************************
- * Activer le module GO_ADV
- * 1 = actif
- * SOFLOU 19/07/2010
- * ************************************************************ */
- define("GOADV_ACTIF", 1);
- /* * ************************************************************
- * Activer le module TAG CRITEO pour Les Bonnes Promos
- * true = actif
- * SOFLOU 30/08/2010
- * ************************************************************ */
- define("TAG_CRITEO_ACTIF", true);
- /* * ************************************************************
- * Activer le clickZone pour XITI
- * true = actif
- * Walid 23/01/2012
- * ************************************************************ */
- define('CLICKZONE_ACTIF', false);
- /* * ************************************************************
- * Activer le cheat pour dépasser le million d'annonces
- * true = actif
- * Justin 01/08/2012
- * *********************************************************** */
- define('MILLION_CHEAT', true);
- /* * ************************************************************
- * Desactiver pour afficher les quartiers
- * true = inactif
- * Justin 01/08/2012
- * *********************************************************** */
- define('DISABLE_DISTRICT', false);
- /* * ************************************************************
- * Activer pour accéder à mon compte
- * true = actif
- * Justin 03/09/2012
- * *********************************************************** */
- define('USE_MON_COMPTE', false);
- /* * ************************************************************
- * Activer pour accéder au QRcode par BDD
- * true = actif
- * Melissa 24/10/2012
- * *********************************************************** */
- define('USE_QRCODE_BDD', true);
- /* * ************************************************************
- * Activer pour supprimer le bandeau "nouveauté"
- * true = actif
- * Melissa 23/11/2012
- * *********************************************************** */
- define('SUPP_NOUVEAUTE', true);
- /* * ************************************************************
- * Activer le module TAG SOAR
- * true = actif
- * Pierre 21/02/2013
- * ************************************************************ */
- define("TAG_SOAR_ACTIF", false);