24 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL', 1);
25 if (!defined(
'NOLOGIN')) define(
"NOLOGIN", 1);
26 if (!defined(
'NOCSRFCHECK')) define(
"NOCSRFCHECK", 1);
27 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU',
'1');
28 if (!defined(
'NOREQUIREHTML')) define(
'NOREQUIREHTML',
'1');
29 if (!defined(
'NOREQUIREAJAX')) define(
'NOREQUIREAJAX',
'1');
30 if (!defined(
'NOIPCHECK')) define(
'NOIPCHECK',
'1');
31 if (!defined(
'NOBROWSERNOTIF')) define(
'NOBROWSERNOTIF',
'1');
50 require
'../../master.inc.php';
51 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
55 $website =
GETPOST(
'website',
'alpha');
56 $websiteid =
GETPOST(
'websiteid',
'int');
67 $appli = constant(
'DOL_APPLICATION_TITLE');
68 if (!empty($conf->global->MAIN_APPLICATION_TITLE)) $appli = $conf->global->MAIN_APPLICATION_TITLE;
74 require_once DOL_DOCUMENT_ROOT.
'/website/class/website.class.php';
75 require_once DOL_DOCUMENT_ROOT.
'/website/class/websitepage.class.php';
80 $object->fetch($websiteid);
81 $website = $object->ref;
83 $object->fetch(0, $website);
107 global $dolibarr_main_data_root;
109 $original_file = $dolibarr_main_data_root.
'/website/'.$website.
'/styles.css.php';
112 $refname = basename(dirname($original_file).
"/");
124 if (preg_match(
'/\.\./', $original_file) || preg_match(
'/[<>|]/', $original_file))
126 dol_syslog(
"Refused to deliver file ".$original_file);
127 $file = basename($original_file);
134 $filename = basename($original_file);
137 dol_syslog(
"styles.css.php include $original_file $filename content-type=$type");
138 $original_file_osencoded =
dol_osencode($original_file);
141 if (!file_exists($original_file_osencoded))
143 $langs->load(
"website");
144 print $langs->trans(
"RequestedPageHasNoContentYet", $pageid);
151 define(
'USEDOLIBARRSERVER', 1);
152 print '/* Page content '.$original_file.
' : CSS content that was saved into tpl dir */'.
"\n";
153 require_once $original_file_osencoded;
156 if (is_object($db)) $db->close();
dol_osencode($str)
Return a string encoded into OS filesystem encoding.
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.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
print
Draft customers invoices.
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...