| Line 30... |
Line 30... |
| 30 |
// Annuler les fausses bonnes idées du JPFramework
|
30 |
// Annuler les fausses bonnes idées du JPFramework
|
| 31 |
restore_exception_handler();
|
31 |
restore_exception_handler();
|
| 32 |
restore_error_handler();
|
32 |
restore_error_handler();
|
| 33 |
//error_reporting(E_ALL ^ E_NOTICE);
|
33 |
//error_reporting(E_ALL ^ E_NOTICE);
|
| Line 34... |
Line -... |
| 34 |
|
- |
|
| 35 |
// Configuration spécifique à Wordpress (URL racine, fichier d'index)
|
- |
|
| 36 |
Config::charger(__DIR__ . "/configurations/config_wordpress.ini");
|
- |
|
| 37 |
|
34 |
|
| 38 |
// Configuration issue de la page ACF "Applis externes"
|
35 |
// Configuration issue de la page ACF "Applis externes"
|
| - |
|
36 |
Config::set('base_url_application', $chemin_eflore_http);
|
| - |
|
37 |
Config::set('url_css_appli', $chemin_eflore_http . '/presentations/styles/eflore.css');
|
| - |
|
38 |
Config::set('url_css_pdf', $chemin_eflore_http . '/presentations/styles/pdf.css');
|
| - |
|
39 |
Config::set('url_css_images', $chemin_eflore_http . '/presentations/images/');
|
| - |
|
40 |
|
| - |
|
41 |
// Configuration des URL d'après l'URL actuelle de Wordpress
|
| - |
|
42 |
global $wp;
|
| - |
|
43 |
$current_url = home_url(add_query_arg(array(),$wp->request));
|
| - |
|
44 |
Config::set('url_base', $current_url);
|
| - |
|
45 |
Config::set('url_base_index', $current_url);
|
| - |
|
46 |
Config::set('base_url_application_index', $current_url . '/');
|
| Line 39... |
Line 47... |
| 39 |
Config::set('base_url_application', $chemin_eflore_http);
|
47 |
Config::set('fichier_index', 'eflore');
|
| 40 |
|
48 |
|
| Line 41... |
Line 49... |
| 41 |
// Initialisation du controleur principal de l'application
|
49 |
// Initialisation du controleur principal de l'application
|