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
61print '<div style="padding-left: 30px;">'.img_picto_common('', 'dolibarr_box.png', 'height="120"').'</div>';
62
63
64
65print '<div class="fichecenter"><div class="fichehalfleft">';
66
67print $langs->trans("DolibarrLicense").' : ';
68print '<ul><li>';
69print '<a href="https://www.gnu.org/copyleft/gpl.html">GNU-GPL v3+</a></li>';
70print '</li></ul>';
71
72//print "<br>\n";
73
74print $langs->trans("Developpers").':';
75print '<ul>';
76print '<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>';
77print '<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>';
78print '</ul>';
79
80//print "<br>\n";
81
82print $langs->trans("OtherInformations").':';
83
84print '<ul>';
85print '<li>';
86print '<a target="_blank" href="https://www.dolibarr.org/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSite").'</a>';
87print '</li>';
88// Show local site
89/*
90if (preg_match('/^fr_/i', $langs->getDefaultLang()))
91{
92 print '<li>';
93 print '<a target="_blank" href="https://www.dolibarr.fr/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryFR")).'</a>';
94 print '</li>';
95}
96if (preg_match('/^el_/i', $langs->getDefaultLang()))
97{
98 print '<li>';
99 print '<a target="_blank" href="https://www.dolibarr.gr/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryGR")).'</a>';
100 print '</li>';
101}
102if (preg_match('/^es_/i', $langs->getDefaultLang()))
103{
104 print '<li>';
105 print '<a target="_blank" href="https://www.dolibarr.es/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryES")).'</a>';
106 print '</li>';
107}
108if (preg_match('/^it_/i', $langs->getDefaultLang()))
109{
110 print '<li>';
111 print '<a target="_blank" href="https://www.dolibarr.it/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryIT")).'</a>';
112 print '</li>';
113}
114if (preg_match('/^de_/i', $langs->getDefaultLang()))
115{
116 print '<li>';
117 print '<a target="_blank" href="https://www.dolibarr.de/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("CountryDE")).'</a>';
118 print '</li>';
119}*/
120print '<li>';
121print '<a target="_blank" href="https://wiki.dolibarr.org/" rel="noopener noreferrer external">'.$langs->trans("OfficialWiki").'</a>';
122print '</li>';
123print '</ul>';
124
125print $langs->trans("Demo").':';
126print '<ul>';
127print '<li>';
128print '<a target="_blank" href="https://www.dolibarr.org/onlinedemo/" rel="noopener noreferrer external">'.$langs->trans("OfficialDemo").'</a>';
129print '</li>';
130print '</ul>';
131
132print $langs->trans("ModulesMarketPlaces").':';
133print '<ul>';
134print '<li>';
135print '<a target="_blank" href="https://www.dolistore.com" rel="noopener noreferrer external">'.$langs->trans("OfficialMarketPlace").'</a>';
136print '</li>';
137print '</ul>';
138
139
140print '</div><div class="fichehalfright">';
141
142
143print $langs->trans("HelpCenter").':';
144print '<ul>';
145print '<li>';
146//print $langs->trans("SeeWikiPage",'http://wiki.dolibarr.org/index.php/List_of_OpenSource_Software_companies_and_freelancers');
147print '<a target="_blank" rel="noopener noreferrer external" href="'.DOL_URL_ROOT.'/support/index.php" data-ajax="false">'.$langs->trans("HelpCenter").'</a>';
148print '</li>';
149print '</ul>';
150
151
152print $langs->trans("Foundation").':';
153
154print '<ul>';
155$url = 'https://wiki.dolibarr.org/index.php/Subscribe';
156if (preg_match('/^fr_/i', $langs->getDefaultLang())) {
157 $url = 'https://wiki.dolibarr.org/index.php/Adh%C3%A9rer';
158}
159if (preg_match('/^es_/i', $langs->getDefaultLang())) {
160 $url = 'https://wiki.dolibarr.org/index.php/Subscribirse';
161}
162print '<li><a href="'.$url.'" target="_blank" rel="noopener noreferrer external">'.$langs->trans("SubscribeToFoundation").'</a></li>';
163print '</ul>';
164
165print $langs->trans("SocialNetworks").':';
166
167print '<ul>';
168
169print '<li><a href="https://facebook.com/dolibarr" target="_blank" rel="noopener noreferrer external">FaceBook</a></li>';
170print '<li><a href="https://twitter.com/dolibarr" target="_blank" rel="noopener noreferrer external">Twitter</a></li>';
171
172print '</ul>';
173
174
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>';
194
195print '</div>';
196print '</div>';
197print '<div class="clearboth"></div>';
198
199
200$showpromotemessage = 1;
201if ($showpromotemessage) {
202 $tmp = versiondolibarrarray();
203 if (is_numeric($tmp[2])) { // Not alpha, beta or rc
204 print '<br>';
205 print '<br>';
206
207 if ((empty($tmp[2]) && (strpos($tmp[1], '0') === 0)) || (strpos($tmp[2], '0') === 0)) {
208 print $langs->trans("TitleExampleForMajorRelease").':<br>';
209 print '<textarea style="width:80%; min-height: 60px">';
210 print $langs->trans("ExampleOfNewsMessageForMajorRelease", DOL_VERSION, DOL_VERSION);
211 print '</textarea>';
212 } else {
213 print $langs->trans("TitleExampleForMaintenanceRelease").':<br>';
214 print '<textarea style="width:80%; min-height: 60px">';
215 print $langs->trans("ExampleOfNewsMessageForMaintenanceRelease", DOL_VERSION, DOL_VERSION);
216 print '</textarea>';
217 }
218 }
219}
220
221// End of page
222llxFooter();
223$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.