24if (!defined(
'NOTOKENRENEWAL')) {
25 define(
'NOTOKENRENEWAL', 1);
27if (!defined(
'NOLOGIN')) {
30if (!defined(
'NOCSRFCHECK')) {
31 define(
"NOCSRFCHECK", 1);
33if (!defined(
'NOREQUIREMENU')) {
34 define(
'NOREQUIREMENU',
'1');
36if (!defined(
'NOREQUIREHTML')) {
37 define(
'NOREQUIREHTML',
'1');
39if (!defined(
'NOREQUIREAJAX')) {
40 define(
'NOREQUIREAJAX',
'1');
42if (!defined(
'NOIPCHECK')) {
43 define(
'NOIPCHECK',
'1');
45if (!defined(
'NOBROWSERNOTIF')) {
46 define(
'NOBROWSERNOTIF',
'1');
66require
'../../master.inc.php';
67require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
71$website =
GETPOST(
'website',
'alpha');
72$websiteid =
GETPOST(
'websiteid',
'int');
83$appli = constant(
'DOL_APPLICATION_TITLE');
84if (!empty($conf->global->MAIN_APPLICATION_TITLE)) {
85 $appli = $conf->global->MAIN_APPLICATION_TITLE;
91 require_once DOL_DOCUMENT_ROOT.
'/website/class/website.class.php';
92 require_once DOL_DOCUMENT_ROOT.
'/website/class/websitepage.class.php';
96 $object->fetch($websiteid);
97 $website = $object->ref;
99 $object->fetch(0, $website);
123global $dolibarr_main_data_root;
125$original_file = $dolibarr_main_data_root.($conf->entity > 1 ?
'/'.$conf->entity :
'').
'/website/'.$website.
'/styles.css.php';
128$refname = basename(dirname($original_file).
"/");
132if (!$accessallowed) {
139if (preg_match(
'/\.\./', $original_file) || preg_match(
'/[<>|]/', $original_file)) {
140 dol_syslog(
"Refused to deliver file ".$original_file);
141 $file = basename($original_file);
148$filename = basename($original_file);
151dol_syslog(
"styles.css.php include $original_file $filename content-type=$type");
155if (!file_exists($original_file_osencoded)) {
156 $langs->load(
"website");
157 print $langs->trans(
"RequestedPageHasNoContentYet", $pageid);
164define(
'USEDOLIBARRSERVER', 1);
165print
'/* Page content '.$original_file.
' : CSS content that was saved into tpl dir */'.
"\n";
166require_once $original_file_osencoded;
dol_osencode($str)
Return a string encoded into OS filesystem encoding.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOLOGIN')) if(!defined('NOCSRFCHECK')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) if(!defined('NOIPCHECK')) if(!defined( 'NOBROWSERNOTIF')) llxHeader()
Header empty.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.