591 |
stephane |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* ALCASAR_ADMIN Application define
|
|
|
4 |
*/
|
|
|
5 |
|
|
|
6 |
//Global definitions
|
|
|
7 |
define( 'DS', DIRECTORY_SEPARATOR );
|
610 |
stephane |
8 |
//define( 'ALCASAR_ADMIN_PATH_ROOT', '/var/www/html/admin' );
|
|
|
9 |
define( 'ALCASAR_ADMIN_PATH_ROOT', 'J:\EasyPHP-5.3.2\www\ALCASAR-RSO\admin' );
|
591 |
stephane |
10 |
|
|
|
11 |
$parts = explode( DS, ALCASAR_ADMIN_PATH_ROOT );
|
|
|
12 |
$pos = strrpos($_SERVER["REQUEST_URI"], "/");
|
|
|
13 |
$uri = substr($_SERVER["REQUEST_URI"],0,$pos);
|
|
|
14 |
|
|
|
15 |
//Defines for include path
|
|
|
16 |
define( 'ALCASAR_ADMIN_PATH_INC', ALCASAR_ADMIN_PATH_ROOT.'/includes' );
|
592 |
stephane |
17 |
define( 'ALCASAR_ADMIN_PATH_LANG', ALCASAR_ADMIN_PATH_ROOT.'/languages' );
|
591 |
stephane |
18 |
define( 'ALCASAR_ADMIN_PATH_LIB', ALCASAR_ADMIN_PATH_ROOT.'/lib' );
|
|
|
19 |
define( 'ALCASAR_ADMIN_PATH_RESSOURCES', ALCASAR_ADMIN_PATH_ROOT.'/ressources' );
|
|
|
20 |
|
|
|
21 |
//defines for html absolute path
|
|
|
22 |
define( 'ALCASAR_ADMIN_PATH_JS', $uri.'/js' );
|
|
|
23 |
define( 'ALCASAR_ADMIN_PATH_CSS', $uri.'/css' );
|
|
|
24 |
define( 'ALCASAR_ADMIN_PATH_IMG', $uri.'/images' );
|
602 |
stephane |
25 |
define( 'ALCASAR_ADMIN_PATH_RS', $uri.'/ressources' );
|
591 |
stephane |
26 |
?>
|