26if (!defined(
'NOTOKENRENEWAL')) {
27 define(
'NOTOKENRENEWAL', 1);
29if (!defined(
'NOLOGIN')) {
32if (!defined(
'NOCSRFCHECK')) {
33 define(
"NOCSRFCHECK", 1);
35if (!defined(
'NOREQUIREMENU')) {
36 define(
'NOREQUIREMENU',
'1');
38if (!defined(
'NOREQUIREHTML')) {
39 define(
'NOREQUIREHTML',
'1');
41if (!defined(
'NOREQUIREAJAX')) {
42 define(
'NOREQUIREAJAX',
'1');
44if (!defined(
'NOIPCHECK')) {
45 define(
'NOIPCHECK',
'1');
47if (!defined(
'NOBROWSERNOTIF')) {
48 define(
'NOBROWSERNOTIF',
'1');
71function llxHeader($head =
'', $title =
'', $help_url =
'', $target =
'', $disablejs = 0, $disablehead = 0, $arrayofjs =
'', $arrayofcss =
'', $morequerystring =
'', $morecssonbody =
'', $replacemainareaby =
'', $disablenofollow = 0, $disablenoindex = 0)
82function llxFooter($comment =
'', $zone =
'private', $disabledoutputofmessages = 0)
86require
'../../master.inc.php';
87require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
95$website =
GETPOST(
'website',
'alpha');
107$appli = constant(
'DOL_APPLICATION_TITLE');
115 require_once DOL_DOCUMENT_ROOT.
'/website/class/website.class.php';
116 require_once DOL_DOCUMENT_ROOT.
'/website/class/websitepage.class.php';
147global $dolibarr_main_data_root;
149$original_file = $dolibarr_main_data_root.($conf->entity > 1 ?
'/'.$conf->entity :
'').
'/website/'.$website.
'/styles.css.php';
152$refname = basename(dirname($original_file).
"/");
156if (!$accessallowed) {
163if (preg_match(
'/\.\./', $original_file) || preg_match(
'/[<>|]/', $original_file)) {
164 dol_syslog(
"Refused to deliver file ".$original_file);
165 $file = basename($original_file);
172$filename = basename($original_file);
175dol_syslog(
"styles.css.php include $original_file $filename content-type=$type");
179if (!file_exists($original_file_osencoded)) {
180 $langs->load(
"website");
181 print $langs->trans(
"RequestedPageHasNoContentYet", $pageid);
188define(
'USEDOLIBARRSERVER', 1);
189print
'/* Page content '.$original_file.
' : CSS content that was saved into tpl dir */'.
"\n";
190require_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 a Dolibarr global constant string value.
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.
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($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Header empty.