dolibarr 21.0.0-alpha
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 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
27// Load Dolibarr environment
28require '../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
31
32// Load translation files required by the page
33$langs->loadLangs(array("help", "members", "other", "admin"));
34
35$action = GETPOST('action', 'aZ09');
36
37if (!$user->admin) {
39}
40
41$sfurl = '';
42$version = '0.0';
43
44
45/*
46 * Actions
47 */
48
49// None
50
51
52/*
53 * View
54 */
55
56llxHeader('', '', '', '', 0, 0, '', '', '', 'mod-admin page-system_about');
57
58
59print load_fiche_titre($langs->trans("ExternalResources"), '', 'title_setup');
60
61
62print '<div class="fichecenter"><div class="fichehalfleft">';
63
64print '<div class="divsection wordwrap">';
65print '<div class="floatright paddingright">'.img_picto_common('', 'dolibarr_box.png', 'height="100"').'</div>';
66print $langs->trans("DolibarrLicense").' : ';
67print '<ul><li>';
68print '<a href="https://www.gnu.org/copyleft/gpl.html" target="_blank">GNU-GPL v3+</a></li>';
69print '</li></ul>';
70print'</div>';
71
72//print "<br>\n";
73
74print '<div class="divsection wordwrap">';
75print $langs->trans("Developpers").':';
76print '<ul>';
77print '<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>';
78print '<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>';
79print '</ul>';
80print '</div>';
81
82//print "<br>\n";
83
84print '<div class="divsection wordwrap">';
85print $langs->trans("OtherInformations").':';
86
87print '<ul>';
88print '<li>';
89print '<a target="_blank" href="https://www.dolibarr.org/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSite").'</a>';
90print '</li>';
91// Show local site
92/*
93if (preg_match('/^fr_/i', $langs->getDefaultLang()))
94{
95 print '<li>';
96 print '<a target="_blank" href="https://www.dolibarr.fr/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryFR")).'</a>';
97 print '</li>';
98}
99if (preg_match('/^el_/i', $langs->getDefaultLang()))
100{
101 print '<li>';
102 print '<a target="_blank" href="https://www.dolibarr.gr/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryGR")).'</a>';
103 print '</li>';
104}
105if (preg_match('/^es_/i', $langs->getDefaultLang()))
106{
107 print '<li>';
108 print '<a target="_blank" href="https://www.dolibarr.es/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryES")).'</a>';
109 print '</li>';
110}
111if (preg_match('/^it_/i', $langs->getDefaultLang()))
112{
113 print '<li>';
114 print '<a target="_blank" href="https://www.dolibarr.it/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryIT")).'</a>';
115 print '</li>';
116}
117if (preg_match('/^de_/i', $langs->getDefaultLang()))
118{
119 print '<li>';
120 print '<a target="_blank" href="https://www.dolibarr.de/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryDE")).'</a>';
121 print '</li>';
122}*/
123print '<li>';
124print '<a target="_blank" href="https://wiki.dolibarr.org/" rel="noopener noreferrer external">'.$langs->trans("OfficialWiki").'</a>';
125print '</li>';
126print '</ul>';
127print '</div>';
128
129print '<div class="divsection wordwrap">';
130print $langs->trans("Demo").':';
131print '<ul>';
132print '<li>';
133print '<a target="_blank" href="https://www.dolibarr.org/onlinedemo/" rel="noopener noreferrer external">'.$langs->trans("OfficialDemo").'</a>';
134print '</li>';
135print '</ul>';
136print '</div>';
137
138print '<div class="divsection wordwrap">';
139print $langs->trans("ModulesMarketPlaces").':';
140print '<ul>';
141print '<li>';
142print '<a target="_blank" href="https://www.dolistore.com" rel="noopener noreferrer external">'.$langs->trans("OfficialMarketPlace").'</a>';
143print '</li>';
144print '</ul>';
145print '</div>';
146
147print '</div><div class="fichehalfright">';
148
149print '<div class="divsection wordwrap">';
150print $langs->trans("Foundation").':';
151
152print '<ul>';
153$url = 'https://wiki.dolibarr.org/index.php/Subscribe';
154if (preg_match('/^fr_/i', $langs->getDefaultLang())) {
155 $url = 'https://wiki.dolibarr.org/index.php/Adh%C3%A9rer';
156}
157if (preg_match('/^es_/i', $langs->getDefaultLang())) {
158 $url = 'https://wiki.dolibarr.org/index.php/Subscribirse';
159}
160print '<li><a href="'.$url.'" target="_blank" rel="noopener noreferrer external">'.$langs->trans("SubscribeToFoundation").'</a></li>';
161print '</ul>';
162print '</div>';
163
164print '<div class="divsection wordwrap">';
165print $langs->trans("SocialNetworks").':';
166
167print '<ul>';
168
169print '<li><a href="https://wiki.dolibarr.org/index.php?title=Social_Networks" target="_blank" rel="noopener noreferrer external">See wiki</a></li>';
170
171print '</ul>';
172print '</div>';
173
174print '<div class="divsection wordwrap">';
175print $langs->trans("OtherResources").':';
176print '<ul>';
177
178$url = 'https://saas.dolibarr.org'; $title = $langs->trans("OfficialWebHostingService");
179if (preg_match('/^fr_/i', $langs->getDefaultLang())) {
180 $url = 'https://wiki.dolibarr.org/index.php/Solutions_Cloud_pour_Dolibarr_ERP_CRM';
181}
182if (preg_match('/^es_/i', $langs->getDefaultLang())) {
183 $url = 'https://wiki.dolibarr.org/index.php/Soluciones_en_la_Nube';
184}
185print '<li>';
186print '<a target="_blank" rel="noopener noreferrer external" href="'.$url.'">'.$title.'</a>';
187print '</li>';
188$url = 'https://partners.dolibarr.org'; $title = $langs->trans("ReferencedPreferredPartners");
189print '<li>';
190print '<a target="_blank" rel="noopener noreferrer external" href="'.$url.'">'.$title.'</a>';
191print '</li>';
192
193print '</ul>';
194print '</div>';
195
196print '</div>';
197print '</div>';
198print '<div class="clearboth"></div>';
199
200
201$showpromotemessage = 1;
202if ($showpromotemessage) {
203 $tmp = versiondolibarrarray();
204 if (is_numeric($tmp[2])) { // Not alpha, beta or rc
205 print '<br>';
206 print '<br>';
207
208 if ((empty($tmp[2]) && (strpos($tmp[1], '0') === 0)) || (strpos($tmp[2], '0') === 0)) {
209 print $langs->trans("TitleExampleForMajorRelease").':<br>';
210 print '<textarea style="width:80%; min-height: 60px">';
211 print $langs->trans("ExampleOfNewsMessageForMajorRelease", DOL_VERSION, DOL_VERSION);
212 print '</textarea>';
213 } else {
214 print $langs->trans("TitleExampleForMaintenanceRelease").':<br>';
215 print '<textarea style="width:80%; min-height: 60px">';
216 print $langs->trans("ExampleOfNewsMessageForMaintenanceRelease", DOL_VERSION, DOL_VERSION);
217 print '</textarea>';
218 }
219 }
220}
221
222// End of page
223llxFooter();
224$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:70
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.