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';
91$website =
GETPOST(
'website',
'alpha');
103$appli = constant(
'DOL_APPLICATION_TITLE');
111 require_once DOL_DOCUMENT_ROOT.
'/website/class/website.class.php';
112 require_once DOL_DOCUMENT_ROOT.
'/website/class/websitepage.class.php';
143global $dolibarr_main_data_root;
145$original_file = $dolibarr_main_data_root.($conf->entity > 1 ?
'/'.$conf->entity :
'').
'/website/'.$website.
'/javascript.js.php';
148$refname = basename(dirname($original_file).
"/");
152if (!$accessallowed) {
159if (preg_match(
'/\.\./', $original_file) || preg_match(
'/[<>|]/', $original_file)) {
160 dol_syslog(
"Refused to deliver file ".$original_file);
161 $file = basename($original_file);
168$filename = basename($original_file);
171dol_syslog(
"javascript.js.css.php include $original_file $filename content-type=$type");
175if (!file_exists($original_file_osencoded)) {
176 $langs->load(
"website");
177 print $langs->trans(
"RequestedPageHasNoContentYet", $pageid);
184define(
'USEDOLIBARRSERVER', 1);
185print
'/* Page content '.$original_file.
' : JS content that was saved into tpl dir */'.
"\n";
186require_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.
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.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.