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