26if (!defined(
'NOREQUIRESOC')) {
27 define(
'NOREQUIRESOC',
'1');
31if (!defined(
'NOTOKENRENEWAL')) {
32 define(
'NOTOKENRENEWAL', 1);
34if (!defined(
'NOLOGIN')) {
38if (!defined(
'NOREQUIREHTML')) {
39 define(
'NOREQUIREHTML', 1);
41if (!defined(
'NOREQUIREAJAX')) {
42 define(
'NOREQUIREAJAX',
'1');
45session_cache_limiter(
'public');
53if (!$res && !empty($_SERVER[
"CONTEXT_DOCUMENT_ROOT"])) {
54 $res = @include $_SERVER[
"CONTEXT_DOCUMENT_ROOT"].
"/main.inc.php";
57$tmp = empty($_SERVER[
'SCRIPT_FILENAME']) ?
'' : $_SERVER[
'SCRIPT_FILENAME']; $tmp2 = realpath(__FILE__); $i = strlen($tmp) - 1; $j = strlen($tmp2) - 1;
58while ($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i] == $tmp2[$j]) {
62if (!$res && $i > 0 && file_exists(substr($tmp, 0, ($i + 1)).
"/main.inc.php")) {
63 $res = @include substr($tmp, 0, ($i + 1)).
"/main.inc.php";
65if (!$res && $i > 0 && file_exists(substr($tmp, 0, ($i + 1)).
"/../main.inc.php")) {
66 $res = @include substr($tmp, 0, ($i + 1)).
"/../main.inc.php";
69if (!$res && file_exists(
"../../main.inc.php")) {
70 $res = @include
"../../main.inc.php";
72if (!$res && file_exists(
"../../../main.inc.php")) {
73 $res = @include
"../../../main.inc.php";
76 die(
"Include of main fails");
79require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
89header(
'Content-type: text/css');
92if (empty($dolibarr_nocache)) {
93 header(
'Cache-Control: max-age=10800, public, must-revalidate');
95 header(
'Cache-Control: no-cache');
100div.mainmenu.mymodule::before {
103div.mainmenu.mymodule {
104 background-image: none;