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