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'];
58$tmp2 = realpath(__FILE__);
60$j = strlen($tmp2) - 1;
61while ($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i] == $tmp2[$j]) {
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";
68if (!$res && $i > 0 && file_exists(substr($tmp, 0, ($i + 1)).
"/../main.inc.php")) {
69 $res = @include substr($tmp, 0, ($i + 1)).
"/../main.inc.php";
72if (!$res && file_exists(
"../../main.inc.php")) {
73 $res = @include
"../../main.inc.php";
75if (!$res && file_exists(
"../../../main.inc.php")) {
76 $res = @include
"../../../main.inc.php";
79 die(
"Include of main fails");
82require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
92header(
'Content-type: text/css');
95if (empty($dolibarr_nocache)) {
96 header(
'Cache-Control: max-age=10800, public, must-revalidate');
98 header(
'Cache-Control: no-cache');
103div.mainmenu.mymodule::before {
106div.mainmenu.mymodule {
107 background-image: none;