dolibarr  19.0.0-dev
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
28 require '../../main.inc.php';
29 require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
30 require_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 
37 if (!$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 
56 llxHeader();
57 
58 
59 print load_fiche_titre($langs->trans("ExternalResources"), '', 'title_setup');
60 
61 print '<div style="padding-left: 30px;">'.img_picto_common('', 'dolibarr_box.png', 'height="120"').'</div>';
62 
63 
64 
65 print '<div class="fichecenter"><div class="fichehalfleft">';
66 
67 print $langs->trans("DolibarrLicense").' : ';
68 print '<ul><li>';
69 print '<a href="https://www.gnu.org/copyleft/gpl.html">GNU-GPL v3+</a></li>';
70 print '</li></ul>';
71 
72 //print "<br>\n";
73 
74 print $langs->trans("Developpers").':';
75 print '<ul>';
76 print '<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>';
77 print '<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>';
78 print '</ul>';
79 
80 //print "<br>\n";
81 
82 print $langs->trans("OtherInformations").':';
83 
84 print '<ul>';
85 print '<li>';
86 print '<a target="_blank" href="https://www.dolibarr.org/" rel="noopener noreferrer external">'.$langs->trans("OfficialWebSite").'</a>';
87 print '</li>';
88 // Show local site
89 /*
90 if (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("France")).'</a>';
94  print '</li>';
95 }
96 if (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("Greece")).'</a>';
100  print '</li>';
101 }
102 if (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("Spain")).'</a>';
106  print '</li>';
107 }
108 if (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("Italy")).'</a>';
112  print '</li>';
113 }
114 if (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("Germany")).'</a>';
118  print '</li>';
119 }*/
120 print '<li>';
121 print '<a target="_blank" href="https://wiki.dolibarr.org/" rel="noopener noreferrer external">'.$langs->trans("OfficialWiki").'</a>';
122 print '</li>';
123 print '</ul>';
124 
125 print $langs->trans("Demo").':';
126 print '<ul>';
127 print '<li>';
128 print '<a target="_blank" href="https://www.dolibarr.org/onlinedemo/" rel="noopener noreferrer external">'.$langs->trans("OfficialDemo").'</a>';
129 print '</li>';
130 print '</ul>';
131 
132 print $langs->trans("ModulesMarketPlaces").':';
133 print '<ul>';
134 print '<li>';
135 print '<a target="_blank" href="https://www.dolistore.com" rel="noopener noreferrer external">'.$langs->trans("OfficialMarketPlace").'</a>';
136 print '</li>';
137 print '</ul>';
138 
139 
140 print '</div><div class="fichehalfright">';
141 
142 
143 print $langs->trans("HelpCenter").':';
144 print '<ul>';
145 print '<li>';
146 //print $langs->trans("SeeWikiPage",'http://wiki.dolibarr.org/index.php/List_of_OpenSource_Software_companies_and_freelancers');
147 print '<a target="_blank" rel="noopener noreferrer external" href="'.DOL_URL_ROOT.'/support/index.php" data-ajax="false">'.$langs->trans("HelpCenter").'</a>';
148 print '</li>';
149 print '</ul>';
150 
151 
152 print $langs->trans("Foundation").':';
153 
154 print '<ul>';
155 $url = 'https://wiki.dolibarr.org/index.php/Subscribe';
156 if (preg_match('/^fr_/i', $langs->getDefaultLang())) {
157  $url = 'https://wiki.dolibarr.org/index.php/Adh%C3%A9rer';
158 }
159 if (preg_match('/^es_/i', $langs->getDefaultLang())) {
160  $url = 'https://wiki.dolibarr.org/index.php/Subscribirse';
161 }
162 print '<li><a href="'.$url.'" target="_blank" rel="noopener noreferrer external">'.$langs->trans("SubscribeToFoundation").'</a></li>';
163 print '</ul>';
164 
165 print $langs->trans("SocialNetworks").':';
166 
167 print '<ul>';
168 
169 print '<li><a href="https://facebook.com/dolibarr" target="_blank" rel="noopener noreferrer external">FaceBook</a></li>';
170 print '<li><a href="https://twitter.com/dolibarr" target="_blank" rel="noopener noreferrer external">Twitter</a></li>';
171 
172 print '</ul>';
173 
174 
175 print $langs->trans("OtherResources").':';
176 print '<ul>';
177 
178 $url = 'https://saas.dolibarr.org'; $title = $langs->trans("OfficialWebHostingService");
179 if (preg_match('/^fr_/i', $langs->getDefaultLang())) {
180  $url = 'https://wiki.dolibarr.org/index.php/Solutions_Cloud_pour_Dolibarr_ERP_CRM';
181 }
182 if (preg_match('/^es_/i', $langs->getDefaultLang())) {
183  $url = 'https://wiki.dolibarr.org/index.php/Soluciones_en_la_Nube';
184 }
185 print '<li>';
186 print '<a target="_blank" rel="noopener noreferrer external" href="'.$url.'">'.$title.'</a>';
187 print '</li>';
188 $url = 'https://partners.dolibarr.org'; $title = $langs->trans("ReferencedPreferredPartners");
189 print '<li>';
190 print '<a target="_blank" rel="noopener noreferrer external" href="'.$url.'">'.$title.'</a>';
191 print '</li>';
192 
193 print '</ul>';
194 
195 print '</div>';
196 print '</div>';
197 print '<div class="clearboth"></div>';
198 
199 
200 $showpromotemessage = 1;
201 if ($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
222 llxFooter();
223 $db->close();
versiondolibarrarray()
Return version Dolibarr.
Definition: admin.lib.php:140
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Definition: wrapper.php:56
llxFooter()
Empty footer.
Definition: wrapper.php:70
load_fiche_titre($titre, $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.