dolibarr
23.0.3
Main Page
Related Pages
Topics
Classes
Files
File List
File Members
dolibarr_23.0
htdocs
theme
custom.css.php
1
<?php
19
if
(!defined(
'NOREQUIRESOC'
)) {
20
define(
'NOREQUIRESOC'
,
'1'
);
21
}
22
//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
23
if
(!defined(
'NOCSRFCHECK'
)) {
24
define(
'NOCSRFCHECK'
, 1);
25
}
26
if
(!defined(
'NOTOKENRENEWAL'
)) {
27
define(
'NOTOKENRENEWAL'
, 1);
28
}
29
if
(!defined(
'NOLOGIN'
)) {
30
define(
'NOLOGIN'
, 1);
// File must be accessed by logon page so without login.
31
}
32
if
(!defined(
'NOREQUIREHTML'
)) {
33
define(
'NOREQUIREHTML'
, 1);
34
}
35
if
(!defined(
'NOREQUIREAJAX'
)) {
36
define(
'NOREQUIREAJAX'
,
'1'
);
37
}
38
39
session_cache_limiter(
'public'
);
40
41
require_once __DIR__.
'/../main.inc.php'
;
// __DIR__ allow this script to be included in custom themes
45
require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php'
;
46
47
// Define css type
48
top_httphead
(
'text/css'
);
49
// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
50
if
(empty($dolibarr_nocache)) {
51
header(
'Cache-Control: max-age=10800, public, must-revalidate'
);
52
}
else
{
53
header(
'Cache-Control: no-cache'
);
54
}
55
56
57
print
'/* Here, the content of the common custom CSS defined into Home - Setup - Display - CSS'
.
"*/\n"
;
58
print
getDolGlobalString
(
'MAIN_IHM_CUSTOM_CSS'
);
getDolGlobalString
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
Definition
functions.lib.php:258
top_httphead
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
Definition
main.inc.php:1488
Generated on Mon Jun 22 2026 20:45:35 for
dolibarr
by Doxygen 1.11.0