24 if (!defined(
'NOTOKENRENEWAL')) {
25 define(
'NOTOKENRENEWAL', 1);
27 if (!defined(
'NOLOGIN')) {
30 if (!defined(
'NOCSRFCHECK')) {
31 define(
"NOCSRFCHECK", 1);
33 if (!defined(
'NOREQUIREMENU')) {
34 define(
'NOREQUIREMENU',
'1');
36 if (!defined(
'NOREQUIREHTML')) {
37 define(
'NOREQUIREHTML',
'1');
39 if (!defined(
'NOREQUIREAJAX')) {
40 define(
'NOREQUIREAJAX',
'1');
42 if (!defined(
'NOIPCHECK')) {
43 define(
'NOIPCHECK',
'1');
45 if (!defined(
'NOBROWSERNOTIF')) {
46 define(
'NOBROWSERNOTIF',
'1');
66 require
'../../master.inc.php';
67 require_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');
84 if (!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);
123 global $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).
"/");
132 if (!$accessallowed) {
139 if (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);
151 dol_syslog(
"styles.css.php include $original_file $filename content-type=$type");
152 $original_file_osencoded =
dol_osencode($original_file);
155 if (!file_exists($original_file_osencoded)) {
156 $langs->load(
"website");
157 print $langs->trans(
"RequestedPageHasNoContentYet", $pageid);
164 define(
'USEDOLIBARRSERVER', 1);
165 print
'/* Page content '.$original_file.
' : CSS content that was saved into tpl dir */'.
"\n";
166 require_once $original_file_osencoded;
169 if (is_object($db)) {
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.