doxygen
This commit is contained in:
parent
c5e3e98614
commit
ae361e4fe7
@ -523,6 +523,8 @@ class Menubase
|
|||||||
/**
|
/**
|
||||||
* \brief Load tabMenu array
|
* \brief Load tabMenu array
|
||||||
* \param type_user 0=Internal,1=External,2=All
|
* \param type_user 0=Internal,1=External,2=All
|
||||||
|
* \param mainmenu Value for mainmenu that defined top menu
|
||||||
|
* \param menu_handler Name of menu_handler used (auguria, eldy...)
|
||||||
*/
|
*/
|
||||||
function menutopCharger($type_user, $mainmenu, $menu_handler)
|
function menutopCharger($type_user, $mainmenu, $menu_handler)
|
||||||
{
|
{
|
||||||
@ -615,16 +617,24 @@ class Menubase
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replace eval function to add more security
|
||||||
|
*
|
||||||
|
* @param string $s
|
||||||
|
* @return int 1
|
||||||
|
*/
|
||||||
function dol_eval($s)
|
function dol_eval($s)
|
||||||
{
|
{
|
||||||
// To get and return to caller
|
// Only global variables can be changed by eval function and returned to caller
|
||||||
global $leftmenu, $leftmenuConstraint, $constraint, $rights, $user, $conf;
|
global $langs, $user, $conf;
|
||||||
|
global $leftmenu, $leftmenuConstraint, $constraint, $rights;
|
||||||
|
|
||||||
|
// \todo
|
||||||
|
// Warning. We must add code to exclude test if it contains = (affectation) that is not == (compare)
|
||||||
|
|
||||||
//print $s."<br>\n";
|
//print $s."<br>\n";
|
||||||
eval($s);
|
eval($s);
|
||||||
|
|
||||||
// \todo
|
|
||||||
// Warning. We must add code to exclude test if it contains = (affectation) that is not == (compare)
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user