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