dolibarr 21.0.0-beta
about.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3 * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
4 * Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>
5 * Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
6 * Copyright (C) 2005-2007 Regis Houssin <regis.houssin@inodbox.com>
7 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
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 FITNESS 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 <https://www.gnu.org/licenses/>.
21 */
22
28// Load Dolibarr environment
29require '../../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
32
41// Load translation files required by the page
42$langs->loadLangs(array("help", "members", "other", "admin"));
43
44$action = GETPOST('action', 'aZ09');
45
46if (!$user->admin) {
48}
49
50$sfurl = '';
51$version = '0.0';
52
53
54/*
55 * Actions
56 */
57
58// None
59
60
61/*
62 * View
63 */
64
65llxHeader('', '', '', '', 0, 0, '', '', '', 'mod-admin page-system_about');
66
67
68print load_fiche_titre($langs->trans("ExternalResources"), '', 'title_setup');
69
70
71print '<div class="fichecenter"><div class="fichehalfleft">';
72
73print '<div class="divsection wordwrap">';
74print '<div class="floatright paddingright">'.img_picto_common('', 'dolibarr_box.png', 'height="100"').'</div>';
75print $langs->trans("DolibarrLicense").' : ';
76print '<ul><li>';
77print '<a href="https://www.gnu.org/copyleft/gpl.html" target="_blank">GNU-GPL v3+</a></li>';
78print '</li></ul>';
79print'</div>';
80
81//print "<br>\n";
82
83print '<div class="divsection wordwrap">';
84print $langs->trans("Developpers").':';
85print '<ul>';
86print '<li>'.$langs->trans("SourcesRepository").': <a href="https://www.github.com/Dolibarr/dolibarr" target="_blank" rel="noopener noreferrer external">https://www.github.com/Dolibarr/dolibarr</a></li>';
87print '<li>'.$langs->trans("SeeWikiForAllTeam").': <a href="https://wiki.dolibarr.org/index.php/Dolibarr_Project" target="_blank" rel="noopener noreferrer external">https://wiki.dolibarr.org/index.php/Dolibarr_Project</a></li>';
88print '</ul>';
89print '</div>';
90
91//print "<br>\n";
92
93print '<div class="divsection wordwrap">';
94print $langs->trans("OtherInformations").':';
95
96print '<ul>';
97print '<li>';
98print '<a target="_blank" href="https://www.dolibarr.org/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSite").'</a>';
99print '</li>';
100// Show local site
101/*
102if (preg_match('/^fr_/i', $langs->getDefaultLang()))
103{
104 print '<li>';
105 print '<a target="_blank" href="https://www.dolibarr.fr/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryFR")).'</a>';
106 print '</li>';
107}
108if (preg_match('/^el_/i', $langs->getDefaultLang()))
109{
110 print '<li>';
111 print '<a target="_blank" href="https://www.dolibarr.gr/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryGR")).'</a>';
112 print '</li>';
113}
114if (preg_match('/^es_/i', $langs->getDefaultLang()))
115{
116 print '<li>';
117 print '<a target="_blank" href="https://www.dolibarr.es/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryES")).'</a>';
118 print '</li>';
119}
120if (preg_match('/^it_/i', $langs->getDefaultLang()))
121{
122 print '<li>';
123 print '<a target="_blank" href="https://www.dolibarr.it/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryIT")).'</a>';
124 print '</li>';
125}
126if (preg_match('/^de_/i', $langs->getDefaultLang()))
127{
128 print '<li>';
129 print '<a target="_blank" href="https://www.dolibarr.de/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryDE")).'</a>';
130 print '</li>';
131}*/
132print '<li>';
133print '<a target="_blank" href="https://wiki.dolibarr.org/" rel="noopener noreferrer external">'.$langs->trans("OfficialWiki").'</a>';
134print '</li>';
135print '</ul>';
136print '</div>';
137
138print '<div class="divsection wordwrap">';
139print $langs->trans("Demo").':';
140print '<ul>';
141print '<li>';
142print '<a target="_blank" href="https://www.dolibarr.org/onlinedemo/" rel="noopener noreferrer external">'.$langs->trans("OfficialDemo").'</a>';
143print '</li>';
144print '</ul>';
145print '</div>';
146
147print '<div class="divsection wordwrap">';
148print $langs->trans("ModulesMarketPlaces").':';
149print '<ul>';
150print '<li>';
151print '<a target="_blank" href="https://www.dolistore.com" rel="noopener noreferrer external">'.$langs->trans("OfficialMarketPlace").'</a>';
152print '</li>';
153print '</ul>';
154print '</div>';
155
156print '</div><div class="fichehalfright">';
157
158print '<div class="divsection wordwrap">';
159print $langs->trans("Foundation").':';
160
161print '<ul>';
162$url = 'https://wiki.dolibarr.org/index.php/Subscribe';
163if (preg_match('/^fr_/i', $langs->getDefaultLang())) {
164 $url = 'https://wiki.dolibarr.org/index.php/Adh%C3%A9rer';
165}
166if (preg_match('/^es_/i', $langs->getDefaultLang())) {
167 $url = 'https://wiki.dolibarr.org/index.php/Subscribirse';
168}
169print '<li><a href="'.$url.'" target="_blank" rel="noopener noreferrer external">'.$langs->trans("SubscribeToFoundation").'</a></li>';
170print '</ul>';
171print '</div>';
172
173print '<div class="divsection wordwrap">';
174print $langs->trans("SocialNetworks").':';
175
176print '<ul>';
177
178print '<li><a href="https://wiki.dolibarr.org/index.php?title=Social_Networks" target="_blank" rel="noopener noreferrer external">See wiki</a></li>';
179
180print '</ul>';
181print '</div>';
182
183print '<div class="divsection wordwrap">';
184print $langs->trans("OtherResources").':';
185print '<ul>';
186
187$url = 'https://saas.dolibarr.org'; $title = $langs->trans("OfficialWebHostingService");
188if (preg_match('/^fr_/i', $langs->getDefaultLang())) {
189 $url = 'https://wiki.dolibarr.org/index.php/Solutions_Cloud_pour_Dolibarr_ERP_CRM';
190}
191if (preg_match('/^es_/i', $langs->getDefaultLang())) {
192 $url = 'https://wiki.dolibarr.org/index.php/Soluciones_en_la_Nube';
193}
194print '<li>';
195print '<a target="_blank" rel="noopener noreferrer external" href="'.$url.'">'.$title.'</a>';
196print '</li>';
197$url = 'https://partners.dolibarr.org'; $title = $langs->trans("ReferencedPreferredPartners");
198print '<li>';
199print '<a target="_blank" rel="noopener noreferrer external" href="'.$url.'">'.$title.'</a>';
200print '</li>';
201
202print '</ul>';
203print '</div>';
204
205print '</div>';
206print '</div>';
207print '<div class="clearboth"></div>';
208
209
210$showpromotemessage = 1;
211if ($showpromotemessage) {
212 $tmp = versiondolibarrarray();
213 if (is_numeric($tmp[2])) { // Not alpha, beta or rc
214 print '<br>';
215 print '<br>';
216
217 if ((empty($tmp[2]) && (strpos($tmp[1], '0') === 0)) || (strpos($tmp[2], '0') === 0)) {
218 print $langs->trans("TitleExampleForMajorRelease").':<br>';
219 print '<textarea style="width:80%; min-height: 60px">';
220 print $langs->trans("ExampleOfNewsMessageForMajorRelease", DOL_VERSION, DOL_VERSION);
221 print '</textarea>';
222 } else {
223 print $langs->trans("TitleExampleForMaintenanceRelease").':<br>';
224 print '<textarea style="width:80%; min-height: 60px">';
225 print $langs->trans("ExampleOfNewsMessageForMaintenanceRelease", DOL_VERSION, DOL_VERSION);
226 print '</textarea>';
227 }
228 }
229}
230
231// End of page
232llxFooter();
233$db->close();
versiondolibarrarray()
Return version Dolibarr.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Definition wrapper.php:71
llxFooter()
Footer empty.
Definition document.php:107
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.