Skip to content
Snippets Groups Projects
Commit d2c2c1db authored by llaffont's avatar llaffont
Browse files

Les chemins sont modifiables dans la config cosmogramme pour déploiement serveur

parent ce47494b
No related merge requests found
......@@ -20,21 +20,29 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
define ('OPAC_REALPATH',realpath(dirname(__FILE__)));
include_once (realpath(dirname(__FILE__)).'/local.php');
if (!defined('OPAC_PATH'))
define('OPAC_PATH',realpath(dirname(__FILE__).'/../'));
if (!defined('ZF_PATH'))
define ('ZF_PATH', PATH_SEPARATOR . '../../ZendFramework-1.6.2/library');
set_include_path(
PATH_SEPARATOR . '../../ZendFramework-1.6.2/library'
. PATH_SEPARATOR . get_include_path()
. PATH_SEPARATOR.OPAC_REALPATH . '/../library'
);
ZF_PATH
. PATH_SEPARATOR . get_include_path()
. PATH_SEPARATOR.OPAC_PATH . '/library'
);
// Includes de base
include_once "fonctions/array.php";
include_once OPAC_REALPATH."/../local.php";
include_once OPAC_PATH."/local.php";
require_once "Zend/Loader.php";
require_once "startup.php";
Zend_Loader::registerAutoload();
$cfg = loadConfig(OPAC_REALPATH.'/../config.ini');
$cfg = loadConfig(OPAC_PATH.'/config.ini');
setupDatabase($cfg);
defineConstant('LANG_DIR', realpath(dirname(__FILE__)).'/../library/translation/');
setupLanguage();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment