dolibarr
13.0.2
Main Page
Related Pages
Modules
Classes
Files
Examples
File List
File Members
htdocs
theme
md
manifest.json.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
3
* Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
4
* Copyright (C) 2007-2017 Regis Houssin <regis.houssin@inodbox.com>
5
* Copyright (C) 2011 Philippe Grand <philippe.grand@atoo-net.com>
6
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
7
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
8
*
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FI8TNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
*/
22
28
if
(!defined(
'NOREQUIREUSER'
)) define(
'NOREQUIREUSER'
,
'1'
);
29
if
(!defined(
'NOREQUIREDB'
)) define(
'NOREQUIREDB'
,
'1'
);
30
if
(!defined(
'NOREQUIRESOC'
)) define(
'NOREQUIRESOC'
,
'1'
);
31
if
(!defined(
'NOREQUIRETRAN'
)) define(
'NOREQUIRETRAN'
,
'1'
);
32
if
(!defined(
'NOCSRFCHECK'
)) define(
'NOCSRFCHECK'
,
'1'
);
33
if
(!defined(
'NOTOKENRENEWAL'
)) define(
'NOTOKENRENEWAL'
,
'1'
);
34
if
(!defined(
'NOLOGIN'
)) define(
'NOLOGIN'
,
'1'
);
35
if
(!defined(
'NOREQUIREMENU'
)) define(
'NOREQUIREMENU'
,
'1'
);
36
if
(!defined(
'NOREQUIREHTML'
)) define(
'NOREQUIREHTML'
,
'1'
);
37
if
(!defined(
'NOREQUIREAJAX'
)) define(
'NOREQUIREAJAX'
,
'1'
);
38
if
(!defined(
'NOSESSION'
)) define(
'NOSESSION'
,
'1'
);
39
40
require_once __DIR__.
'/../../main.inc.php'
;
41
42
$appli = constant(
'DOL_APPLICATION_TITLE'
);
43
if
(!empty($conf->global->MAIN_APPLICATION_TITLE)) $appli = $conf->global->MAIN_APPLICATION_TITLE;
44
45
top_httphead
(
'text/json'
);
46
// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
47
if
(empty($dolibarr_nocache)) {
48
header(
'Cache-Control: max-age=10800, public, must-revalidate'
);
49
// For a text/json, we must set an Expires to avoid to have it forced to an expired value by the web server
50
header(
'Expires: '
.gmdate(
'D, d M Y H:i:s'
,
dol_now
(
'gmt'
) + 10800) .
' GMT'
);
51
}
52
else
{
53
header(
'Cache-Control: no-cache'
);
54
}
55
56
?>
57
{
58
"name"
:
"<?php echo $appli; ?>"
,
59
"icons"
: [
60
{
61
"src"
:
"<?php echo DOL_URL_ROOT.'/theme/dolibarr_256x256_color.png'; ?>"
,
62
"sizes"
:
"256x256"
,
63
"type"
:
"image/png"
64
}
65
],
66
"theme_color"
:
"#ffffff"
,
67
"background_color"
:
"#ffffff"
,
68
"display"
:
"standalone"
69
}
dol_now
dol_now($mode= 'auto')
Return date for now.
Definition:
functions.lib.php:2288
top_httphead
if(!defined('NOREQUIREMENU')) if(!function_exists("llxHeader")) top_httphead($contenttype= 'text/html', $forcenocache=0)
Show HTTP header.
Definition:
main.inc.php:1214
Generated on Sat Aug 23 2025 13:17:39 for
dolibarr
by Doxygen 1.8.5