dolibarr  16.0.1
security.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
3  * Copyright (C) 2005-2007 Regis Houssin <regis.houssin@inodbox.com>
4  * Copyright (C) 2013-2015 Juanjo Menent <jmenent@2byte.es>
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/security2.lib.php';
29 
30 $action = GETPOST('action', 'aZ09');
31 
32 // Load translation files required by the page
33 $langs->loadLangs(array("users", "admin", "other"));
34 
35 if (!$user->admin) {
37 }
38 
39 // Allow/Disallow change to clear passwords once passwords are crypted
40 $allow_disable_encryption = true;
41 
42 
43 /*
44  * Actions
45  */
46 
47 if ($action == 'setgeneraterule') {
48  if (!dolibarr_set_const($db, 'USER_PASSWORD_GENERATED', $_GET["value"], 'chaine', 0, '', $conf->entity)) {
49  dol_print_error($db);
50  } else {
51  header("Location: ".$_SERVER["PHP_SELF"]);
52  exit;
53  }
54 }
55 
56 if ($action == 'activate_encrypt') {
57  $error = 0;
58 
59  $db->begin();
60 
61  dolibarr_set_const($db, "DATABASE_PWD_ENCRYPTED", "1", 'chaine', 0, '', $conf->entity);
62 
63  $sql = "SELECT u.rowid, u.pass, u.pass_crypted";
64  $sql .= " FROM ".MAIN_DB_PREFIX."user as u";
65  $sql .= " WHERE u.pass IS NOT NULL AND LENGTH(u.pass) < 32"; // Not a MD5 value
66 
67  $resql = $db->query($sql);
68  if ($resql) {
69  $numrows = $db->num_rows($resql);
70  $i = 0;
71  while ($i < $numrows) {
72  $obj = $db->fetch_object($resql);
73  if (dol_hash($obj->pass)) {
74  $sql = "UPDATE ".MAIN_DB_PREFIX."user";
75  $sql .= " SET pass_crypted = '".dol_hash($obj->pass)."', pass = NULL";
76  $sql .= " WHERE rowid=".((int) $obj->rowid);
77  //print $sql;
78 
79  $resql2 = $db->query($sql);
80  if (!$resql2) {
81  dol_print_error($db);
82  $error++;
83  break;
84  }
85 
86  $i++;
87  }
88  }
89  } else {
90  dol_print_error($db);
91  }
92 
93  //print $error." ".$sql;
94  //exit;
95  if (!$error) {
96  $db->commit();
97  header("Location: security.php");
98  exit;
99  } else {
100  $db->rollback();
101  dol_print_error($db, '');
102  }
103 } elseif ($action == 'disable_encrypt') {
104  //On n'autorise pas l'annulation de l'encryption car les mots de passe ne peuvent pas etre decodes
105  //Do not allow "disable encryption" as passwords cannot be decrypted
106  if ($allow_disable_encryption) {
107  dolibarr_del_const($db, "DATABASE_PWD_ENCRYPTED", $conf->entity);
108  }
109  header("Location: security.php");
110  exit;
111 }
112 
113 if ($action == 'activate_encryptdbpassconf') {
114  $result = encodedecode_dbpassconf(1);
115  if ($result > 0) {
116  sleep(3); // Don't know why but we need to wait file is completely saved before making the reload. Even with flush and clearstatcache, we need to wait.
117 
118  // database value not required
119  //dolibarr_set_const($db, "MAIN_DATABASE_PWD_CONFIG_ENCRYPTED", "1");
120  header("Location: security.php");
121  exit;
122  } else {
123  setEventMessages($langs->trans('InstrucToEncodePass', dol_encode($dolibarr_main_db_pass)), null, 'warnings');
124  }
125 } elseif ($action == 'disable_encryptdbpassconf') {
126  $result = encodedecode_dbpassconf(0);
127  if ($result > 0) {
128  sleep(3); // Don't know why but we need to wait file is completely saved before making the reload. Even with flush and clearstatcache, we need to wait.
129 
130  // database value not required
131  //dolibarr_del_const($db, "MAIN_DATABASE_PWD_CONFIG_ENCRYPTED",$conf->entity);
132  header("Location: security.php");
133  exit;
134  } else {
135  setEventMessages($langs->trans('InstrucToClearPass', $dolibarr_main_db_pass), null, 'warnings');
136  }
137 }
138 
139 if ($action == 'activate_MAIN_SECURITY_DISABLEFORGETPASSLINK') {
140  dolibarr_set_const($db, "MAIN_SECURITY_DISABLEFORGETPASSLINK", '1', 'chaine', 0, '', $conf->entity);
141  header("Location: security.php");
142  exit;
143 } elseif ($action == 'disable_MAIN_SECURITY_DISABLEFORGETPASSLINK') {
144  dolibarr_del_const($db, "MAIN_SECURITY_DISABLEFORGETPASSLINK", $conf->entity);
145  header("Location: security.php");
146  exit;
147 }
148 
149 if ($action == 'updatepattern') {
150  $pattern = GETPOST("pattern", "alpha");
151  $explodePattern = explode(';', $pattern);
152 
153  $patternInError = false;
154  if ($explodePattern[0] < 1 || $explodePattern[4] < 0) {
155  $patternInError = true;
156  }
157 
158  if ($explodePattern[0] < $explodePattern[1] + $explodePattern[2] + $explodePattern[3]) {
159  $patternInError = true;
160  }
161 
162  if (!$patternInError) {
163  dolibarr_set_const($db, "USER_PASSWORD_PATTERN", $pattern, 'chaine', 0, '', $conf->entity);
164  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
165  header("Location: security.php");
166  exit;
167  }
168 }
169 
170 
171 
172 /*
173  * View
174  */
175 
176 $form = new Form($db);
177 
178 $wikihelp = 'EN:Setup_Security|FR:Paramétrage_Sécurité|ES:Configuración_Seguridad';
179 llxHeader('', $langs->trans("Passwords"), $wikihelp);
180 
181 print load_fiche_titre($langs->trans("SecuritySetup"), '', 'title_setup');
182 
183 print '<span class="opacitymedium">'.$langs->trans("GeneratedPasswordDesc")."</span><br>\n";
184 print "<br>\n";
185 
186 
187 $head = security_prepare_head();
188 
189 print dol_get_fiche_head($head, 'passwords', '', -1);
190 
191 print '<br>';
192 
193 // Select manager to generate passwords
194 print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
195 print '<input type="hidden" name="token" value="'.newToken().'">';
196 print '<input type="hidden" name="action" value="update">';
197 print '<input type="hidden" name="constname" value="USER_PASSWORD_GENERATED">';
198 print '<input type="hidden" name="consttype" value="yesno">';
199 
200 // Charge tableau des modules generation
201 $dir = "../core/modules/security/generate";
202 clearstatcache();
203 $handle = opendir($dir);
204 $i = 1;
205 if (is_resource($handle)) {
206  while (($file = readdir($handle)) !== false) {
207  if (preg_match('/(modGeneratePass[a-z]+)\.class\.php$/i', $file, $reg)) {
208  // Charging the numbering class
209  $classname = $reg[1];
210  require_once $dir.'/'.$file;
211 
212  $obj = new $classname($db, $conf, $langs, $user);
213  $arrayhandler[$obj->id] = $obj;
214  $i++;
215  }
216  }
217  closedir($handle);
218 }
219 asort($arrayhandler);
220 
221 print '<div class="div-table-responsive-no-min">';
222 print '<table class="noborder centpercent">';
223 print '<tr class="liste_titre">';
224 print '<td colspan="2">'.$langs->trans("RuleForGeneratedPasswords").'</td>';
225 print '<td>'.$langs->trans("Example").'</td>';
226 print '<td class="center">'.$langs->trans("Activated").'</td>';
227 print '</tr>';
228 
229 foreach ($arrayhandler as $key => $module) {
230  // Show modules according to features level
231  if (!empty($module->version) && $module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
232  continue;
233  }
234  if (!empty($module->version) && $module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
235  continue;
236  }
237 
238  if ($module->isEnabled()) {
239  print '<tr class="oddeven"><td width="100">';
240  print ucfirst($key);
241  print "</td><td>\n";
242  print $module->getDescription().'<br>';
243  print $langs->trans("MinLength").': '.$module->length;
244  print '</td>';
245 
246  // Show example of numbering module
247  print '<td class="nowrap">';
248  $tmp = $module->getExample();
249  if (preg_match('/^Error/', $tmp)) {
250  $langs->load("errors");
251  print '<div class="error">'.$langs->trans($tmp).'</div>';
252  } elseif ($tmp == 'NotConfigured') {
253  print '<span class="opacitymedium">'.$langs->trans($tmp).'</span>';
254  } else {
255  print '<span class="opacitymedium">'.$tmp.'</span>';
256  }
257  print '</td>'."\n";
258 
259  print '<td width="100" align="center">';
260  if ($conf->global->USER_PASSWORD_GENERATED == $key) {
261  //print img_picto('', 'tick');
262  print img_picto($langs->trans("Enabled"), 'switch_on');
263  } else {
264  print '<a href="'.$_SERVER['PHP_SELF'].'?action=setgeneraterule&token='.newToken().'&value='.$key.'">';
265  //print $langs->trans("Activate");
266  print img_picto($langs->trans("Disabled"), 'switch_off');
267  print '</a>';
268  }
269  print "</td></tr>\n";
270  }
271 }
272 print '</table>';
273 print '</div>';
274 
275 print '</form>';
276 
277 //if($conf->global->MAIN_SECURITY_DISABLEFORGETPASSLINK == 1)
278 // Patter for Password Perso
279 if ($conf->global->USER_PASSWORD_GENERATED == "Perso") {
280  $tabConf = explode(";", $conf->global->USER_PASSWORD_PATTERN);
281  print '<br>';
282 
283  print '<div class="div-table-responsive-no-min">';
284  print '<table class="noborder centpercent">';
285  print '<tr class="liste_titre">';
286  print '<td colspan="2"> '.$langs->trans("PasswordPatternDesc").'</td>';
287  print '</tr>';
288 
289 
290  print '<tr class="oddeven">';
291  print '<td>'.$langs->trans("MinLength")."</td>";
292  print '<td><input type="number" value="'.$tabConf[0].'" id="minlenght" min="1"></td>';
293  print '</tr>';
294 
295 
296  print '<tr class="oddeven">';
297  print '<td>'.$langs->trans("NbMajMin")."</td>";
298  print '<td><input type="number" value="'.$tabConf[1].'" id="NbMajMin" min="0"></td>';
299  print '</tr>';
300 
301 
302  print '<tr class="oddeven">';
303  print '<td>'.$langs->trans("NbNumMin")."</td>";
304  print '<td><input type="number" value="'.$tabConf[2].'" id="NbNumMin" min="0"></td>';
305  print '</tr>';
306 
307 
308  print '<tr class="oddeven">';
309  print '<td>'.$langs->trans("NbSpeMin")."</td>";
310  print '<td><input type="number" value="'.$tabConf[3].'" id="NbSpeMin" min="0"></td>';
311  print '</tr>';
312 
313 
314  print '<tr class="oddeven">';
315  print '<td>'.$langs->trans("NbIteConsecutive")."</td>";
316  print '<td><input type="number" value="'.$tabConf[4].'" id="NbIteConsecutive" min="0"></td>';
317  print '</tr>';
318 
319 
320  print '<tr class="oddeven">';
321  print '<td>'.$langs->trans("NoAmbiCaracAutoGeneration")."</td>";
322  print '<td><input type="checkbox" id="NoAmbiCaracAutoGeneration" '.($tabConf[5] ? "checked" : "").' min="0"> <label for="NoAmbiCaracAutoGeneration" id="textcheckbox">'.($tabConf[5] ? $langs->trans("Activated") : $langs->trans("Disabled")).'</label></td>';
323  print '</tr>';
324 
325  print '</table>';
326 
327  print '<br>';
328  print '<div class="center">';
329  print '<a class="button button-save" id="linkChangePattern">'.$langs->trans("Save").'</a>';
330  print '</div>';
331  print '<br><br>';
332 
333  print '<script type="text/javascript">';
334  print ' function getStringArg(){';
335  print ' var pattern = "";';
336  print ' pattern += $("#minlenght").val() + ";";';
337  print ' pattern += $("#NbMajMin").val() + ";";';
338  print ' pattern += $("#NbNumMin").val() + ";";';
339  print ' pattern += $("#NbSpeMin").val() + ";";';
340  print ' pattern += $("#NbIteConsecutive").val() + ";";';
341  print ' pattern += $("#NoAmbiCaracAutoGeneration")[0].checked ? "1" : "0";';
342  print ' return pattern;';
343  print ' }';
344 
345  print ' function valuePossible(){';
346  print ' var fields = ["#minlenght", "#NbMajMin", "#NbNumMin", "#NbSpeMin", "#NbIteConsecutive"];';
347  print ' for(var i = 0 ; i < fields.length ; i++){';
348  print ' if($(fields[i]).val() < $(fields[i]).attr("min")){';
349  print ' return false;';
350  print ' }';
351  print ' }';
352  print ' ';
353  print ' var length = parseInt($("#minlenght").val());';
354  print ' var length_mini = parseInt($("#NbMajMin").val()) + parseInt($("#NbNumMin").val()) + parseInt($("#NbSpeMin").val());';
355  print ' return length >= length_mini;';
356  print ' }';
357 
358  print ' function generatelink(){';
359  print ' return "security.php?action=updatepattern&token='.newToken().'&pattern="+getStringArg();';
360  print ' }';
361 
362  print ' function valuePatternChange(){';
363  print ' console.log("valuePatternChange");';
364  print ' var lang_save = "'.$langs->trans("Save").'";';
365  print ' var lang_error = "'.$langs->trans("Error").'";';
366  print ' var lang_Disabled = "'.$langs->trans("Disabled").'";';
367  print ' var lang_Activated = "'.$langs->trans("Activated").'";';
368  print ' $("#textcheckbox").html($("#NoAmbiCaracAutoGeneration")[0].checked ? unescape(lang_Activated) : unescape(lang_Disabled));';
369  print ' if(valuePossible()){';
370  print ' $("#linkChangePattern").attr("href",generatelink()).text(lang_save);';
371  print ' }';
372  print ' else{';
373  print ' $("#linkChangePattern").attr("href", null).text(lang_error);';
374  print ' }';
375  print ' }';
376 
377  print ' $("#minlenght").change(function(){valuePatternChange();});';
378  print ' $("#NbMajMin").change(function(){valuePatternChange();});';
379  print ' $("#NbNumMin").change(function(){valuePatternChange();});';
380  print ' $("#NbSpeMin").change(function(){valuePatternChange();});';
381  print ' $("#NbIteConsecutive").change(function(){valuePatternChange();});';
382  print ' $("#NoAmbiCaracAutoGeneration").change(function(){valuePatternChange();});';
383 
384  print '</script>';
385 }
386 
387 
388 // Cryptage mot de passe
389 print '<br>';
390 print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
391 print '<input type="hidden" name="token" value="'.newToken().'">';
392 print "<input type=\"hidden\" name=\"action\" value=\"encrypt\">";
393 
394 print '<table class="noborder centpercent">';
395 print '<tr class="liste_titre">';
396 print '<td colspan="3">'.$langs->trans("Parameters").'</td>';
397 print '<td class="center">'.$langs->trans("Activated").'</td>';
398 print '<td class="center">'.$langs->trans("Action").'</td>';
399 print '</tr>';
400 
401 // Disable clear password in database
402 print '<tr class="oddeven">';
403 print '<td colspan="3">'.$langs->trans("DoNotStoreClearPassword").'</td>';
404 print '<td align="center" width="60">';
405 if (getDolGlobalString('DATABASE_PWD_ENCRYPTED')) {
406  print img_picto($langs->trans("Active"), 'tick');
407 }
408 print '</td>';
409 if (!getDolGlobalString('DATABASE_PWD_ENCRYPTED')) {
410  print '<td align="center" width="100">';
411  print '<a href="security.php?action=activate_encrypt">'.$langs->trans("Activate").'</a>';
412  print "</td>";
413 }
414 
415 // Database conf file encryption
416 if (getDolGlobalString('DATABASE_PWD_ENCRYPTED')) {
417  print '<td align="center" width="100">';
418  if ($allow_disable_encryption) {
419  //On n'autorise pas l'annulation de l'encryption car les mots de passe ne peuvent pas etre decodes
420  //Do not allow "disable encryption" as passwords cannot be decrypted
421  print '<a href="'.$_SERVER["PHP_SELF"].'?action=disable_encrypt&token='.newToken().'">'.$langs->trans("Disable").'</a>';
422  } else {
423  print '-';
424  }
425  print "</td>";
426 }
427 print "</td>";
428 print '</tr>';
429 
430 // Cryptage du mot de base de la base dans conf.php
431 
432 print '<tr class="oddeven">';
433 print '<td colspan="3">'.$langs->trans("MainDbPasswordFileConfEncrypted").'</td>';
434 print '<td align="center" width="60">';
435 if (preg_match('/crypted:/i', $dolibarr_main_db_pass) || !empty($dolibarr_main_db_encrypted_pass)) {
436  print img_picto($langs->trans("Active"), 'tick');
437 }
438 
439 print '</td>';
440 
441 print '<td align="center" width="100">';
442 if (empty($dolibarr_main_db_pass) && empty($dolibarr_main_db_encrypted_pass)) {
443  $langs->load("errors");
444  print img_warning($langs->trans("WarningPassIsEmpty"));
445 } else {
446  if (empty($dolibarr_main_db_encrypted_pass)) {
447  print '<a href="'.$_SERVER["PHP_SELF"].'?action=activate_encryptdbpassconf&token='.newToken().'">'.$langs->trans("Activate").'</a>';
448  }
449  if (!empty($dolibarr_main_db_encrypted_pass)) {
450  print '<a href="'.$_SERVER["PHP_SELF"].'?action=disable_encryptdbpassconf&token='.newToken().'">'.$langs->trans("Disable").'</a>';
451  }
452 }
453 print "</td>";
454 
455 print "</td>";
456 print '</tr>';
457 
458 
459 // Disable link "Forget password" on logon
460 
461 print '<tr class="oddeven">';
462 print '<td colspan="3">'.$langs->trans("DisableForgetPasswordLinkOnLogonPage").'</td>';
463 print '<td align="center" width="60">';
464 if (getDolGlobalString('MAIN_SECURITY_DISABLEFORGETPASSLINK')) {
465  print img_picto($langs->trans("Active"), 'tick');
466 }
467 print '</td>';
468 if (!getDolGlobalString('MAIN_SECURITY_DISABLEFORGETPASSLINK')) {
469  print '<td align="center" width="100">';
470  print '<a href="'.$_SERVER["PHP_SELF"].'?action=activate_MAIN_SECURITY_DISABLEFORGETPASSLINK&token='.newToken().'">'.$langs->trans("Activate").'</a>';
471  print "</td>";
472 }
473 if (getDolGlobalString('MAIN_SECURITY_DISABLEFORGETPASSLINK')) {
474  print '<td align="center" width="100">';
475  print '<a href="'.$_SERVER["PHP_SELF"].'?action=disable_MAIN_SECURITY_DISABLEFORGETPASSLINK&token='.newToken().'">'.$langs->trans("Disable").'</a>';
476  print "</td>";
477 }
478 print "</td>";
479 print '</tr>';
480 
481 
482 print '</table>';
483 print '</form>';
484 print '<br>';
485 
486 if (GETPOST('info', 'int') > 0) {
487  if (function_exists('password_hash')) {
488  print $langs->trans("Note: The function password_hash exists on your PHP")."<br>\n";
489  } else {
490  print $langs->trans("Note: The function password_hash does not exists on your PHP")."<br>\n";
491  }
492  print 'MAIN_SECURITY_HASH_ALGO = '.getDolGlobalString('MAIN_SECURITY_HASH_ALGO')."<br>\n";
493  print 'MAIN_SECURITY_SALT = '.getDolGlobalString('MAIN_SECURITY_SALT')."<br>\n";
494 }
495 
496 print '</div>';
497 
498 // End of page
499 llxFooter();
500 $db->close();
if($actionsave) if(!isset($conf->global->MAIN_AGENDA_EXPORT_PAST_DELAY)) $wikihelp
View.
Definition: agenda_xcal.php:72
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_hash($chain, $type= '0')
Returns a hash of a string.
if($cancel &&!$id) if($action== 'add'&&!$cancel) if($action== 'delete') if($id) $form
Actions.
Definition: card.php:142
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
if(!function_exists('utf8_encode')) if(!function_exists('utf8_decode')) getDolGlobalString($key, $default= '')
Return dolibarr global constant string value.
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
img_warning($titlealt= 'default', $moreatt= '', $morecss= 'pictowarning')
Show warning logo.
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
Class to manage generation of HTML components Only common components must be here.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
Definition: admin.lib.php:552
img_picto($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt= '', $morecss= '', $marginleftonlyshort=2)
Show picto whatever it&#39;s its name (generic function)
dol_encode($chain, $key= '1')
Encode a string with base 64 algorithm + specific delta change.
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 ...
security_prepare_head()
Prepare array with list of tabs.
Definition: admin.lib.php:772
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
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
newToken()
Return the value of token currently saved into session with name &#39;newtoken&#39;.
encodedecode_dbpassconf($level=0)
Encode or decode database password in config file.
llxFooter()
Empty footer.
Definition: wrapper.php:73