#422 Module by default. Set the $_POST,$_GET,$_REQUEST
This commit is contained in:
parent
aee5707dc6
commit
db129f9b21
2 changed files with 7 additions and 15 deletions
|
|
@ -726,6 +726,7 @@ function find_default_module()
|
|||
$default_module = $cn->get_array("select me_code
|
||||
from profile_menu join profile_user using (p_id)
|
||||
where
|
||||
p_type_display='M' and
|
||||
user_name=$1 and pm_default=1", array($g_user->login));
|
||||
|
||||
if (empty($default_module))
|
||||
|
|
@ -734,8 +735,8 @@ function find_default_module()
|
|||
from profile_menu join profile_user using (p_id)
|
||||
where
|
||||
user_name=$1 and p_order=(select min(p_order) from profile_menu
|
||||
where user_name=$1) limit 1", array($g_user->login,$g_user->login));
|
||||
return $default_module;
|
||||
where user_name=$2) limit 1", array($g_user->login,$g_user->login));
|
||||
return $default_module[0]['me_code'];
|
||||
}
|
||||
|
||||
if (count($default_module) > 1)
|
||||
|
|
@ -747,19 +748,7 @@ function find_default_module()
|
|||
return $default_module[0]['me_code'];
|
||||
}
|
||||
}
|
||||
/**
|
||||
* show default module
|
||||
*/
|
||||
function show_default()
|
||||
{
|
||||
$cn=Dossier::connect();
|
||||
$file=$cn->get_array('SELECT m_code FROM module where m_default=1');
|
||||
if (! empty ($file) )
|
||||
{
|
||||
$selected=$file[0]['m_code'];
|
||||
show_module($selected);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue