/[dolibarr]/dolibarr/htdocs/master.inc.php
ViewVC logotype

Diff of /dolibarr/htdocs/master.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.91 by eldy, Tue Nov 1 15:58:51 2005 UTC revision 1.92 by eldy, Tue Nov 1 17:48:46 2005 UTC
# Line 33  Line 33 
33    
34  define('DOL_VERSION','2.0.0-alpha2');  define('DOL_VERSION','2.0.0-alpha2');
35    
36  // La fonction clearstatcache ne doit pas etre appelé de manière globale car ralenti  // La fonction clearstatcache ne doit pas etre appelé de manière globale car ralenti.
37  // fortement. Elle doit etre appelée uniquement par les pages qui ont besoin d'absence  // Elle doit etre appelée uniquement par les pages qui ont besoin d'absence de cache,
38  // de cache, comme par exemple document.php  // comme par exemple document.php
39  clearstatcache();      //clearstatcache();    
40    
41  // Forcage du parametrage PHP error_reporting (Dolibarr non utilisable en mode error E_ALL)  // Forcage du parametrage PHP error_reporting (Dolibarr non utilisable en mode error E_ALL)
42  if (function_exists("define_syslog_variables"))  if (function_exists("define_syslog_variables"))
# Line 73  if (! $dolibarr_main_data_root) { Line 73  if (! $dolibarr_main_data_root) {
73  define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root);  define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root);
74  define('DOL_DATA_ROOT', $dolibarr_main_data_root);  define('DOL_DATA_ROOT', $dolibarr_main_data_root);
75    
   
76  if (strtolower(substr($dolibarr_main_url_root, 0, 7)) == 'http://')  if (strtolower(substr($dolibarr_main_url_root, 0, 7)) == 'http://')
77  {  {
78    $uri = substr($dolibarr_main_url_root, 7);      $uri = substr($dolibarr_main_url_root, 7);
 }  
 if (strtolower(substr($dolibarr_main_url_root, 0, 7)) == 'https:/')  
 {  
   $uri = substr($dolibarr_main_url_root, 8);  
79  }  }
80  $pos = strstr ($uri, '/');  if (strtolower(substr($dolibarr_main_url_root, 0, 8)) == 'https://')
 if ($pos == '/')  
81  {  {
82    $pos = '';      $uri = substr($dolibarr_main_url_root, 8);
83  }  }
84    $pos = strstr ($uri, '/');      // $pos contient alors url sans nom domaine
85    if ($pos == '/') $pos = '';     // si $pos vaut /, on le met a ''
86  define('DOL_URL_ROOT', $pos);  define('DOL_URL_ROOT', $pos);
 //define('DOL_URL_ROOT', $dolibarr_main_url_root);  
87    
88    
89  /*  /*

Legend:
Removed from v.1.91  
changed lines
  Added in v.1.92

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26