dolibarr  16.0.5
oauthlogintokens.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2013-2016 Laurent Destailleur <eldy@users.sourceforge.net>
3  * Copyright (C) 2014-2018 Frederic France <frederic.france@netlogic.fr>
4  * Copyright (C) 2020 Nicolas ZABOURI <info@inovea-conseil.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
26 require '../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
28 require_once DOL_DOCUMENT_ROOT.'/core/lib/oauth.lib.php'; // This define $list and $supportedoauth2array
29 require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
30 use OAuth\Common\Storage\DoliStorage;
31 
32 // Load translation files required by the page
33 $langs->loadLangs(array('admin', 'printing', 'oauth'));
34 
35 $action = GETPOST('action', 'aZ09');
36 $mode = GETPOST('mode', 'alpha');
37 $value = GETPOST('value', 'alpha');
38 $varname = GETPOST('varname', 'alpha');
39 $driver = GETPOST('driver', 'alpha');
40 
41 if (!empty($driver)) {
42  $langs->load($driver);
43 }
44 
45 if (!$mode) {
46  $mode = 'setup';
47 }
48 
49 if (!$user->admin) {
51 }
52 
53 
54 /*
55  * Action
56  */
57 
58 /*if (($mode == 'test' || $mode == 'setup') && empty($driver))
59 {
60  setEventMessages($langs->trans('PleaseSelectaDriverfromList'), null);
61  header("Location: ".$_SERVER['PHP_SELF'].'?mode=config');
62  exit;
63 }*/
64 
65 if ($action == 'setconst' && $user->admin) {
66  $error = 0;
67  $db->begin();
68 
69  $setupconstarray = GETPOST('setupdriver', 'array');
70 
71  foreach ($setupconstarray as $setupconst) {
72  //print '<pre>'.print_r($setupconst, true).'</pre>';
73 
74  $constname = dol_escape_htmltag($setupconst['varname']);
75  $constvalue = dol_escape_htmltag($setupconst['value']);
76  $consttype = dol_escape_htmltag($setupconst['type']);
77  $constnote = dol_escape_htmltag($setupconst['note']);
78 
79  $result = dolibarr_set_const($db, $constname, $constvalue, $consttype, 0, $constnote, $conf->entity);
80  if (!($result > 0)) {
81  $error++;
82  }
83  }
84 
85  if (!$error) {
86  $db->commit();
87  setEventMessages($langs->trans("SetupSaved"), null);
88  } else {
89  $db->rollback();
90  dol_print_error($db);
91  }
92  $action = '';
93 }
94 
95 if ($action == 'setvalue' && $user->admin) {
96  $db->begin();
97 
98  $result = dolibarr_set_const($db, $varname, $value, 'chaine', 0, '', $conf->entity);
99  if (!($result > 0)) {
100  $error++;
101  }
102 
103  if (!$error) {
104  $db->commit();
105  setEventMessages($langs->trans("SetupSaved"), null);
106  } else {
107  $db->rollback();
108  dol_print_error($db);
109  }
110  $action = '';
111 }
112 
113 
114 /*
115  * View
116  */
117 
118 // Define $urlwithroot
119 $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
120 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
121 //$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current
122 
123 $form = new Form($db);
124 
125 llxHeader('', $langs->trans("TokenManager"));
126 
127 $linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
128 print load_fiche_titre($langs->trans('ConfigOAuth'), $linkback, 'title_setup');
129 
130 $head = oauthadmin_prepare_head();
131 
132 print dol_get_fiche_head($head, 'tokengeneration', '', -1, '');
133 
134 if (GETPOST('error')) {
135  setEventMessages(GETPOST('error'), null, 'errors');
136 }
137 
138 if ($mode == 'setup' && $user->admin) {
139  print '<span class="opacitymedium">'.$langs->trans("OAuthSetupForLogin")."</span><br><br>\n";
140 
141  //var_dump($list);
142  foreach ($conf->global as $key => $val) {
143  if (!empty($val) && preg_match('/^OAUTH_.*_ID$/', $key)) {
144  $provider = preg_replace('/_ID$/', '', $key);
145  $listinsetup[] = array($provider.'_NAME', $provider.'_ID', $provider.'_SECRET', 'OAUTH Provider '.str_replace('OAUTH_', '', $provider));
146  }
147  }
148 
149  $oauthstateanticsrf = bin2hex(random_bytes(128/8));
150 
151  // $list is defined into oauth.lib.php to the list of supporter OAuth providers.
152  foreach ($listinsetup as $key) {
153  $supported = 0;
154  $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
155  $keyforsupportedoauth2array = preg_replace('/^OAUTH_/', '', $keyforsupportedoauth2array);
156  $keyforsupportedoauth2array = preg_replace('/_NAME$/', '', $keyforsupportedoauth2array);
157  if (preg_match('/^.*-/', $keyforsupportedoauth2array)) {
158  $keyforprovider = preg_replace('/^.*-/', '', $keyforsupportedoauth2array);
159  } else {
160  $keyforprovider = '';
161  }
162  $keyforsupportedoauth2array = preg_replace('/-.*$/', '', $keyforsupportedoauth2array);
163  $keyforsupportedoauth2array = 'OAUTH_'.$keyforsupportedoauth2array.'_NAME';
164 
165 
166  $OAUTH_SERVICENAME = (empty($supportedoauth2array[$keyforsupportedoauth2array]['name']) ? 'Unknown' : $supportedoauth2array[$keyforsupportedoauth2array]['name'].($keyforprovider ? '-'.$keyforprovider : ''));
167 
168  // Define $shortscope, $urltorenew, $urltodelete, $urltocheckperms
169  // TODO Use array $supportedoauth2array
170  if ($keyforsupportedoauth2array == 'OAUTH_GITHUB_NAME') {
171  // List of keys that will be converted into scopes (from constants 'SCOPE_state_in_uppercase' in file of service).
172  // We pass this param list in to 'state' because we need it before and after the redirect.
173  $shortscope = 'user,public_repo';
174 
175  // Note: github does not accept csrf key inside the state parameter (only know values)
176  $urltorenew = $urlwithroot.'/core/modules/oauth/github_oauthcallback.php?shortscope='.$shortscope.'&state='.$shortscope.'&backtourl='.urlencode(DOL_URL_ROOT.'/admin/oauthlogintokens.php');
177  $urltodelete = $urlwithroot.'/core/modules/oauth/github_oauthcallback.php?action=delete&token='.newToken().'&backtourl='.urlencode(DOL_URL_ROOT.'/admin/oauthlogintokens.php');
178  $urltocheckperms = 'https://github.com/settings/applications/';
179  } elseif ($keyforsupportedoauth2array == 'OAUTH_GOOGLE_NAME') {
180  // List of keys that will be converted into scopes (from constants 'SCOPE_state_in_uppercase' in file of service).
181  // List of scopes for Google are here: https://developers.google.com/identity/protocols/oauth2/scopes
182  // We pass this key list into the param 'state' because we need it before and after the redirect.
183  $shortscope = 'userinfo_email,userinfo_profile';
184  $shortscope .= ',openid,email,profile'; // For openid connect
185  if (!empty($conf->printing->enabled)) {
186  $shortscope .= ',cloud_print';
187  }
188  if (!empty($conf->global->OAUTH_GOOGLE_GSUITE)) {
189  $shortscope .= ',admin_directory_user';
190  }
191  if (!empty($conf->global->OAUTH_GOOGLE_GMAIL)) {
192  $shortscope.=',gmail_full';
193  }
194 
195  $urltorenew = $urlwithroot.'/core/modules/oauth/google_oauthcallback.php?shortscope='.$shortscope.'&state='.$shortscope.'-'.$oauthstateanticsrf.'&backtourl='.urlencode(DOL_URL_ROOT.'/admin/oauthlogintokens.php');
196  $urltodelete = $urlwithroot.'/core/modules/oauth/google_oauthcallback.php?action=delete&token='.newToken().'&backtourl='.urlencode(DOL_URL_ROOT.'/admin/oauthlogintokens.php');
197  $urltocheckperms = 'https://security.google.com/settings/security/permissions';
198  } elseif ($keyforsupportedoauth2array == 'OAUTH_STRIPE_TEST_NAME') {
199  $shortscope = 'none';
200 
201  $urltorenew = $urlwithroot.'/core/modules/oauth/stripetest_oauthcallback.php?backtourl='.urlencode(DOL_URL_ROOT.'/admin/oauthlogintokens.php');
202  $urltodelete = '';
203  $urltocheckperms = '';
204  } elseif ($keyforsupportedoauth2array == 'OAUTH_STRIPE_LIVE_NAME') {
205  $shortscope = 'none';
206 
207  $urltorenew = $urlwithroot.'/core/modules/oauth/stripelive_oauthcallback.php?backtourl='.urlencode(DOL_URL_ROOT.'/admin/oauthlogintokens.php');
208  $urltodelete = '';
209  $urltocheckperms = '';
210  } else {
211  $urltorenew = '';
212  $urltodelete = '';
213  $urltocheckperms = '';
214  }
215  $urltorenew .= '&keyforprovider='.$keyforprovider;
216 
217  // Show value of token
218  $tokenobj = null;
219  // Token
220  require_once DOL_DOCUMENT_ROOT.'/includes/OAuth/bootstrap.php';
221  // Dolibarr storage
222  $storage = new DoliStorage($db, $conf);
223  try {
224  $tokenobj = $storage->retrieveAccessToken($OAUTH_SERVICENAME);
225  } catch (Exception $e) {
226  // Return an error if token not found
227  }
228 
229  // Set other properties
230  $refreshtoken = false;
231  $expiredat = '';
232 
233  $expire = false;
234  // Is token expired or will token expire in the next 30 seconds
235  if (is_object($tokenobj)) {
236  $expire = ($tokenobj->getEndOfLife() !== $tokenobj::EOL_NEVER_EXPIRES && $tokenobj->getEndOfLife() !== $tokenobj::EOL_UNKNOWN && time() > ($tokenobj->getEndOfLife() - 30));
237  }
238  if ($key[1] != '' && $key[2] != '') {
239  if (is_object($tokenobj)) {
240  $refreshtoken = $tokenobj->getRefreshToken();
241 
242  $endoflife = $tokenobj->getEndOfLife();
243  if ($endoflife == $tokenobj::EOL_NEVER_EXPIRES) {
244  $expiredat = $langs->trans("Never");
245  } elseif ($endoflife == $tokenobj::EOL_UNKNOWN) {
246  $expiredat = $langs->trans("Unknown");
247  } else {
248  $expiredat = dol_print_date($endoflife, "dayhour");
249  }
250  }
251  }
252 
253  $submit_enabled = 0;
254 
255  print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?mode=setup&amp;driver='.$driver.'" autocomplete="off">';
256  print '<input type="hidden" name="token" value="'.newToken().'">';
257  print '<input type="hidden" name="action" value="setconst">';
258 
259  print '<div class="div-table-responsive-no-min">';
260  print '<table class="noborder centpercent">'."\n";
261 
262  print '<tr class="liste_titre">';
263  print '<th class="titlefieldcreate">';
264  print img_picto('', $supportedoauth2array[$keyforsupportedoauth2array]['picto'], 'class="pictofixedwidth"');
265  print $langs->trans($keyforsupportedoauth2array);
266  if ($keyforprovider) {
267  print ' (<b>'.$keyforprovider.'</b>)';
268  } else {
269  print ' (<b>'.$langs->trans("NoName").'</b>)';
270  }
271  print '</th>';
272  print '<th></th>';
273  print '<th></th>';
274  print "</tr>\n";
275 
276  print '<tr class="oddeven">';
277  print '<td'.($key['required'] ? ' class="required"' : '').'>';
278  //var_dump($key);
279  print $langs->trans("OAuthIDSecret").'</td>';
280  print '<td>';
281  print '<span class="opacitymedium">'.$langs->trans("SeePreviousTab").'</span>';
282  print '</td>';
283  print '<td>';
284  print '</td>';
285  print '</tr>'."\n";
286 
287  print '<tr class="oddeven">';
288  print '<td'.($key['required'] ? ' class="required"' : '').'>';
289  //var_dump($key);
290  print $langs->trans("IsTokenGenerated");
291  print '</td>';
292  print '<td>';
293  if (is_object($tokenobj)) {
294  print $langs->trans("HasAccessToken");
295  } else {
296  print '<span class="opacitymedium">'.$langs->trans("NoAccessToken").'</span>';
297  }
298  print '</td>';
299  print '<td width="50%">';
300  // Links to delete/checks token
301  if (is_object($tokenobj)) {
302  //test on $storage->hasAccessToken($OAUTH_SERVICENAME) ?
303  print '<a class="button smallpaddingimp" href="'.$urltodelete.'">'.$langs->trans('DeleteAccess').'</a><br>';
304  }
305  // Request remote token
306  if ($urltorenew) {
307  print '<a class="button smallpaddingimp" href="'.$urltorenew.'">'.$langs->trans('RequestAccess').'</a><br>';
308  }
309  // Check remote access
310  if ($urltocheckperms) {
311  print '<br>'.$langs->trans("ToCheckDeleteTokenOnProvider", $OAUTH_SERVICENAME).': <a href="'.$urltocheckperms.'" target="_'.strtolower($OAUTH_SERVICENAME).'">'.$urltocheckperms.'</a>';
312  }
313  print '</td>';
314  print '</tr>';
315 
316  print '<tr class="oddeven">';
317  print '<td'.($key['required'] ? ' class="required"' : '').'>';
318  //var_dump($key);
319  print $langs->trans("Token").'</td>';
320  print '<td colspan="2">';
321 
322  if (is_object($tokenobj)) {
323  //var_dump($tokenobj);
324  $tokentoshow = $tokenobj->getAccessToken();
325  print '<span class="" title="'.dol_escape_htmltag($tokentoshow).'">'.showValueWithClipboardCPButton($tokentoshow, 1, dol_trunc($tokentoshow, 32)).'<br>';
326  //print 'Refresh: '.$tokenobj->getRefreshToken().'<br>';
327  //print 'EndOfLife: '.$tokenobj->getEndOfLife().'<br>';
328  //var_dump($tokenobj->getExtraParams());
329  /*print '<br>Extra: <br><textarea class="quatrevingtpercent">';
330  print ''.join(',',$tokenobj->getExtraParams());
331  print '</textarea>';*/
332  }
333  print '</td>';
334  print '</tr>'."\n";
335 
336  if (is_object($tokenobj)) {
337  // Token refresh
338  print '<tr class="oddeven">';
339  print '<td'.($key['required'] ? ' class="required"' : '').'>';
340  //var_dump($key);
341  print $langs->trans("TOKEN_REFRESH");
342  print '</td>';
343  print '<td colspan="2">';
344  print '<span class="" title="'.dol_escape_htmltag($refreshtoken).'">'.showValueWithClipboardCPButton($refreshtoken, 1, dol_trunc($refreshtoken, 32)).'</span>';
345  print '</td>';
346  print '</tr>';
347 
348  // Token expired
349  print '<tr class="oddeven">';
350  print '<td'.($key['required'] ? ' class="required"' : '').'>';
351  //var_dump($key);
352  print $langs->trans("TOKEN_EXPIRED");
353  print '</td>';
354  print '<td colspan="2">';
355  print yn($expire);
356  print '</td>';
357  print '</tr>';
358 
359  // Token expired at
360  print '<tr class="oddeven">';
361  print '<td'.($key['required'] ? ' class="required"' : '').'>';
362  //var_dump($key);
363  print $langs->trans("TOKEN_EXPIRE_AT");
364  print '</td>';
365  print '<td colspan="2">';
366  print $expiredat;
367  print '</td>';
368  print '</tr>';
369  }
370 
371  print '</table>';
372  print '</div>';
373 
374  if (!empty($driver)) {
375  if ($submit_enabled) {
376  print $form->buttonsSaveCancel("Modify", '');
377  }
378  }
379 
380 
381  print '</form>';
382  }
383 }
384 
385 if ($mode == 'test' && $user->admin) {
386  print $langs->trans('PrintTestDesc'.$driver)."<br><br>\n";
387 
388  print '<div class="div-table-responsive-no-min">';
389  print '<table class="noborder centpercent">';
390  if (!empty($driver)) {
391  require_once DOL_DOCUMENT_ROOT.'/core/modules/printing/'.$driver.'.modules.php';
392  $classname = 'printing_'.$driver;
393  $langs->load($driver);
394  $printer = new $classname($db);
395  //print '<pre>'.print_r($printer, true).'</pre>';
396  if (count($printer->getlistAvailablePrinters())) {
397  if ($printer->listAvailablePrinters() == 0) {
398  print $printer->resprint;
399  } else {
400  setEventMessages($printer->error, $printer->errors, 'errors');
401  }
402  } else {
403  print $langs->trans('PleaseConfigureDriverfromList');
404  }
405  }
406 
407  print '</table>';
408  print '</div>';
409 }
410 
411 if ($mode == 'userconf' && $user->admin) {
412  print $langs->trans('PrintUserConfDesc'.$driver)."<br><br>\n";
413 
414  print '<div class="div-table-responsive">';
415  print '<table class="noborder centpercent">';
416  print '<tr class="liste_titre">';
417  print '<th>'.$langs->trans("User").'</th>';
418  print '<th>'.$langs->trans("PrintModule").'</th>';
419  print '<th>'.$langs->trans("PrintDriver").'</th>';
420  print '<th>'.$langs->trans("Printer").'</th>';
421  print '<th>'.$langs->trans("PrinterLocation").'</th>';
422  print '<th>'.$langs->trans("PrinterId").'</th>';
423  print '<th>'.$langs->trans("NumberOfCopy").'</th>';
424  print '<th class="center">'.$langs->trans("Delete").'</th>';
425  print "</tr>\n";
426  $sql = "SELECT p.rowid, p.printer_name, p.printer_location, p.printer_id, p.copy, p.module, p.driver, p.userid, u.login";
427  $sql .= " FROM ".MAIN_DB_PREFIX."printing as p, ".MAIN_DB_PREFIX."user as u WHERE p.userid = u.rowid";
428  $resql = $db->query($sql);
429  while ($obj = $db->fetch_object($resql)) {
430  print '<tr class="oddeven">';
431  print '<td>'.$obj->login.'</td>';
432  print '<td>'.$obj->module.'</td>';
433  print '<td>'.$obj->driver.'</td>';
434  print '<td>'.$obj->printer_name.'</td>';
435  print '<td>'.$obj->printer_location.'</td>';
436  print '<td>'.$obj->printer_id.'</td>';
437  print '<td>'.$obj->copy.'</td>';
438  print '<td class="center">'.img_picto($langs->trans("Delete"), 'delete').'</td>';
439  print "</tr>\n";
440  }
441  print '</table>';
442  print '</div>';
443 }
444 
445 print dol_get_fiche_end();
446 
447 // End of page
448 llxFooter();
449 $db->close();
yn
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
Definition: functions.lib.php:6491
dol_escape_htmltag
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields.
Definition: functions.lib.php:1468
dol_trunc
dol_trunc($string, $size=40, $trunc='right', $stringencoding='UTF-8', $nodot=0, $display=0)
Truncate a string to a particular length adding '…' if string larger than length.
Definition: functions.lib.php:3805
llxFooter
llxFooter()
Empty footer.
Definition: wrapper.php:73
oauthadmin_prepare_head
oauthadmin_prepare_head()
Return array of tabs to used on pages to setup cron module.
Definition: oauth.lib.php:271
load_fiche_titre
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
Definition: functions.lib.php:5204
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition: functions.lib.php:484
dol_print_error
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
Definition: functions.lib.php:4844
$form
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
Definition: card.php:142
dol_print_date
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
Definition: functions.lib.php:2514
img_picto
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
Definition: functions.lib.php:3880
Exception
showValueWithClipboardCPButton
showValueWithClipboardCPButton($valuetocopy, $showonlyonhover=1, $texttoshow='')
Create a button to copy $valuetocopy in the clipboard (for copy and paste feature).
Definition: functions.lib.php:11087
dol_get_fiche_head
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
Definition: functions.lib.php:1822
newToken
newToken()
Return the value of token currently saved into session with name 'newtoken'.
Definition: functions.lib.php:10878
dol_get_fiche_end
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Definition: functions.lib.php:2018
dolibarr_set_const
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
Definition: admin.lib.php:627
Form
Class to manage generation of HTML components Only common components must be here.
Definition: html.form.class.php:52
$resql
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->rights->fournisseur->facture->lire)||(isModEnabled('supplier_invoice') && $user->rights->supplier_invoice->lire)) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
Definition: index.php:742
setEventMessages
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='')
Set event messages in dol_events session object.
Definition: functions.lib.php:8137
accessforbidden
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
Definition: security.lib.php:933
llxHeader
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Definition: wrapper.php:59