25if (!defined(
'NOTOKENRENEWAL')) {
26 define(
'NOTOKENRENEWAL', 1);
28if (!defined(
'NOLOGIN')) {
31if (!defined(
'NOCSRFCHECK')) {
32 define(
"NOCSRFCHECK", 1);
34if (!defined(
'NOREQUIREMENU')) {
35 define(
'NOREQUIREMENU',
'1');
37if (!defined(
'NOREQUIREHTML')) {
38 define(
'NOREQUIREHTML',
'1');
40if (!defined(
'NOREQUIREAJAX')) {
41 define(
'NOREQUIREAJAX',
'1');
43if (!defined(
'NOIPCHECK')) {
44 define(
'NOIPCHECK',
'1');
46if (!defined(
'NOBROWSERNOTIF')) {
47 define(
'NOBROWSERNOTIF',
'1');
67require
'../../master.inc.php';
68require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
72$website =
GETPOST(
'website',
'alpha');
84$appli = constant(
'DOL_APPLICATION_TITLE');
92 require_once DOL_DOCUMENT_ROOT.
'/website/class/website.class.php';
93 require_once DOL_DOCUMENT_ROOT.
'/website/class/websitepage.class.php';
124global $dolibarr_main_data_root;
126$original_file = $dolibarr_main_data_root.($conf->entity > 1 ?
'/'.$conf->entity :
'').
'/website/'.$website.
'/styles.css.php';
129$refname = basename(dirname($original_file).
"/");
133if (!$accessallowed) {
140if (preg_match(
'/\.\./', $original_file) || preg_match(
'/[<>|]/', $original_file)) {
141 dol_syslog(
"Refused to deliver file ".$original_file);
142 $file = basename($original_file);
149$filename = basename($original_file);
152dol_syslog(
"styles.css.php include $original_file $filename content-type=$type");
156if (!file_exists($original_file_osencoded)) {
157 $langs->load(
"website");
158 print $langs->trans(
"RequestedPageHasNoContentYet", $pageid);
165define(
'USEDOLIBARRSERVER', 1);
166print
'/* Page content '.$original_file.
' : CSS content that was saved into tpl dir */'.
"\n";
167require_once $original_file_osencoded;
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
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_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
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.