dolibarr  9.0.0
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 <http://www.gnu.org/licenses/>.
20  */
21 
27 require '../../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
29 require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
30 
31 // Load translation files required by the page
32 $langs->loadLangs(array("help","members","other","admin"));
33 
34 $action=GETPOST('action','alpha');
35 
36 if (! $user->admin) accessforbidden();
37 
38 $sfurl = '';
39 $version='0.0';
40 
41 
42 /*
43  * Actions
44  */
45 
46 // None
47 
48 
49 /*
50  * View
51  */
52 
53 llxHeader();
54 
55 
56 print load_fiche_titre($langs->trans("ExternalResources"),'','title_setup');
57 
58 print '<div style="padding-left: 30px;">'.img_picto_common('', 'dolibarr_box.png','height="120"').'</div>';
59 
60 
61 
62 print '<div class="fichecenter"><div class="fichehalfleft">';
63 
64 print $langs->trans("DolibarrLicense").' : ';
65 print '<ul><li>';
66 print '<a href="http://www.gnu.org/copyleft/gpl.html">GNU-GPL v3+</a></li>';
67 print '</li></ul>';
68 
69 //print "<br>\n";
70 
71 print $langs->trans("Developpers").':';
72 print '<ul>';
73 print '<li>'.$langs->trans("SourcesRepository").': <a href="https://www.github.com/Dolibarr/dolibarr" target="_blank" rel="external">https://www.github.com/Dolibarr/dolibarr</a></li>';
74 print '<li>'.$langs->trans("SeeWikiForAllTeam").': <a href="https://wiki.dolibarr.org/index.php/Dolibarr_Project" target="_blank" rel="external">https://wiki.dolibarr.org/index.php/Dolibarr_Project</a></li>';
75 print '</ul>';
76 
77 //print "<br>\n";
78 
79 print $langs->trans("OtherInformations").':';
80 
81 print '<ul>';
82 print '<li>';
83 print '<a target="_blank" href="https://www.dolibarr.org/" rel="external">'.$langs->trans("OfficialWebSite").'</a>';
84 print '</li>';
85 // Show local site
86 if (preg_match('/^fr_/i',$langs->getDefaultLang()))
87 {
88  print '<li>';
89  print '<a target="_blank" href="http://www.dolibarr.fr/" rel="external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("France")).'</a>';
90  print '</li>';
91 }
92 if (preg_match('/^el_/i',$langs->getDefaultLang()))
93 {
94  print '<li>';
95  print '<a target="_blank" href="http://www.dolibarr.gr/" rel="external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("Greece")).'</a>';
96  print '</li>';
97 }
98 if (preg_match('/^es_/i',$langs->getDefaultLang()))
99 {
100  print '<li>';
101  print '<a target="_blank" href="http://www.dolibarr.es/" rel="external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("Spain")).'</a>';
102  print '</li>';
103 }
104 if (preg_match('/^it_/i',$langs->getDefaultLang()))
105 {
106  print '<li>';
107  print '<a target="_blank" href="http://www.dolibarr.it/" rel="external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("Italy")).'</a>';
108  print '</li>';
109 }
110 if (preg_match('/^de_/i',$langs->getDefaultLang()))
111 {
112  print '<li>';
113  print '<a target="_blank" href="http://www.dolibarr.de/" rel="external">'.$langs->trans("OfficialWebSiteLocal", $langs->transnoentitiesnoconv("Germany")).'</a>';
114  print '</li>';
115 }
116 print '<li>';
117 print '<a target="_blank" href="https://wiki.dolibarr.org/" rel="external">'.$langs->trans("OfficialWiki").'</a>';
118 print '</li>';
119 print '</ul>';
120 
121 print $langs->trans("Demo").':';
122 print '<ul>';
123 print '<li>';
124 print '<a target="_blank" href="https://www.dolibarr.org/onlinedemo/" rel="external">'.$langs->trans("OfficialDemo").'</a>';
125 print '</li>';
126 print '</ul>';
127 
128 print $langs->trans("ModulesMarketPlaces").':';
129 print '<ul>';
130 print '<li>';
131 print '<a target="_blank" href="https://www.dolistore.com" rel="external">'.$langs->trans("OfficialMarketPlace").'</a>';
132 print '</li>';
133 print '</ul>';
134 
135 
136 print '</div><div class="fichehalfright">';
137 
138 
139 print $langs->trans("HelpCenter").':';
140 print '<ul>';
141 print '<li>';
142 //print $langs->trans("SeeWikiPage",'http://wiki.dolibarr.org/index.php/List_of_OpenSource_Software_companies_and_freelancers');
143 print '<a target="_blank" href="'.DOL_URL_ROOT.'/support/index.php" data-ajax="false">'.$langs->trans("HelpCenter").'</a>';
144 print '</li>';
145 print '</ul>';
146 
147 
148 print $langs->trans("Foundation").':';
149 
150 print '<ul>';
151 $url='https://wiki.dolibarr.org/index.php/Subscribe';
152 if (preg_match('/^fr_/i',$langs->getDefaultLang())) $url='https://wiki.dolibarr.org/index.php/Adh%C3%A9rer';
153 if (preg_match('/^es_/i',$langs->getDefaultLang())) $url='https://wiki.dolibarr.org/index.php/Subscribirse';
154 print '<li><a href="'.$url.'" target="_blank" rel="external">'.$langs->trans("SubscribeToFoundation").'</a></li>';
155 print '</ul>';
156 
157 print $langs->trans("SocialNetworks").':';
158 
159 print '<ul>';
160 
161 print '<li><a href="https://facebook.com/dolibarr" target="_blank" rel="external">FaceBook</a></li>';
162 print '<li><a href="https://twitter.com/dolibarr" target="_blank" rel="external">Twitter</a></li>';
163 print '<li><a href="https://plus.google.com/+DolibarrOrg" target="_blank" rel="external">Google Plus page</a></li>';
164 
165 print '</ul>';
166 
167 
168 print $langs->trans("OtherResources").':';
169 print '<ul>';
170 
171 $url='https://saas.dolibarr.org'; $title=$langs->trans("OfficialWebHostingService");
172 if (preg_match('/^fr_/i',$langs->getDefaultLang())) $url='https://wiki.dolibarr.org/index.php/Solutions_de_Cloud';
173 if (preg_match('/^es_/i',$langs->getDefaultLang())) $url='https://wiki.dolibarr.org/index.php/Soluciones_en_la_Nube';
174 print '<li>';
175 print '<a target="_blank" href="'.$url.'" rel="external">'.$title.'</a>';
176 print '</li>';
177 $url='https://partners.dolibarr.org'; $title=$langs->trans("ReferencedPreferredPartners");
178 print '<li>';
179 print '<a target="_blank" href="'.$url.'" rel="external">'.$title.'</a>';
180 print '</li>';
181 
182 print '</ul>';
183 
184 print '</div>';
185 print '</div>';
186 print '<div class="clearboth"></div>';
187 
188 
189 $showpromotemessage=1;
190 if ($showpromotemessage)
191 {
192  $tmp=versiondolibarrarray();
193  if (is_numeric($tmp[2])) // Not alpha, beta or rc
194  {
195  print '<br>';
196  print '<br>';
197 
198  if ((empty($tmp[2]) && (strpos($tmp[1], '0') === 0)) || (strpos($tmp[2], '0') === 0))
199  {
200  print $langs->trans("TitleExampleForMajorRelease").':<br>';
201  print '<textarea style="width:80%; min-height: 60px">';
202  print $langs->trans("ExampleOfNewsMessageForMajorRelease", DOL_VERSION, DOL_VERSION);
203  print '</textarea>';
204  }
205  else
206  {
207  print $langs->trans("TitleExampleForMaintenanceRelease").':<br>';
208  print '<textarea style="width:80%; min-height: 60px">';
209  print $langs->trans("ExampleOfNewsMessageForMaintenanceRelease", DOL_VERSION, DOL_VERSION);
210  print '</textarea>';
211  }
212  }
213 }
214 
215 // End of page
216 llxFooter();
217 $db->close();
llxFooter()
Empty footer.
Definition: wrapper.php:56
load_fiche_titre($titre, $morehtmlright='', $picto='title_generic.png', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
GETPOST($paramname, $check='none', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
print
Draft customers invoices.
Definition: index.php:91
versiondolibarrarray()
Return version Dolibarr.
Definition: admin.lib.php:104
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
llxHeader()
Empty header.
Definition: wrapper.php:44