dolibarr 24.0.0-beta
custom.css.php
1<?php
19if (!defined('NOREQUIRESOC')) {
20 define('NOREQUIRESOC', '1');
21}
22//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
23if (!defined('NOCSRFCHECK')) {
24 define('NOCSRFCHECK', 1);
25}
26if (!defined('NOTOKENRENEWAL')) {
27 define('NOTOKENRENEWAL', 1);
28}
29if (!defined('NOLOGIN')) {
30 define('NOLOGIN', 1); // File must be accessed by logon page so without login.
31}
32if (!defined('NOREQUIREHTML')) {
33 define('NOREQUIREHTML', 1);
34}
35if (!defined('NOREQUIREAJAX')) {
36 define('NOREQUIREAJAX', '1');
37}
38
39session_cache_limiter('public');
40
41require_once __DIR__.'/../main.inc.php'; // __DIR__ allow this script to be included in custom themes
42require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
43
44// Define css type
45top_httphead('text/css');
46// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
47header('Cache-Control: max-age=10800, public, must-revalidate');
48
49
50print '/* Here, the content of the common custom CSS defined into Home - Setup - Display - CSS'."*/\n";
51print getDolGlobalString('MAIN_IHM_CUSTOM_CSS');
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.