GetNewPassword(); /** include envoi de mail */ $todo_mail='add_user'; include_once('../user/mail_actions.php'); include_once('../mail/template.php'); /** end mail */ $result=$user_object->AddUser($data_table_user, $data_table_right, $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; if(is_numeric($result)) header("Location: ".$link_confirm); else system_error(); } if(isset($_POST['valider'])) { $table_user[0]=$_POST['pseudo']; $table_user[1]=$_POST['email']; $table_user[2]='N'; $user_object= new user; $integrity=$user_object->CheckDataIntegrity($table_user, $sql_object); if($_POST['user_type']=='simple_user') { $table_right=$user_object->InitUserRight('SIMPLE_USER'); $mask_type_S="checked=\"checked\""; } if($_POST['user_type']=='admin_user') { $table_right=$user_object->InitUserRight('ADMIN_USER'); $mask_type_A="checked=\"checked\""; } if($_POST['user_type']=='privilege_user') { $table_right['dashboard']=$_POST['dashboard']; $table_right['workshop']=$_POST['workshop']; $table_right['publication']=$_POST['publication']; $table_right['news']=$_POST['news']; $table_right['yellowpages']='U'; $table_right['theme']='U'; $table_right['scale']='U'; $table_right['level']='U'; $table_right['category_user']='U'; $layer_rights= "style=\"display:block;\""; $mask_type_P="checked=\"checked\""; } $form_pseudo=$_POST['pseudo']; $form_email=$_POST['email']; $table_user=urlencode(serialize($table_user)); $table_right=urlencode(serialize($table_right)); if($_POST['dashboard']=='O') { $mask_dashboard_1=''; $mask_dashboard_2="checked=\"checked\""; } if($_POST['publication']=='O') { $mask_publication_1=''; $mask_publication_2="checked=\"checked\""; } if($_POST['news']=='O') { $mask_news_1=''; $mask_news_2="checked=\"checked\""; } if($_POST['workshop']=='O') { $mask_workshop_1=''; $mask_workshop_2="checked=\"checked\""; } } // preparation affichage detaillé $rights_display=''; if(defined('MOD_SDI')) { $rights_display.= "
\n"; $rights_display.= "
\n"; $rights_display.= "". $GLOBALS['lang']['user']['norights']."\n"; $rights_display.= "". $GLOBALS['lang']['user']['redactorrights']."\n"; $rights_display.= "
\n"; } else $rights_display.="\n"; if(defined('MOD_PUBLICATION')) { $rights_display.= "
\n"; $rights_display.= "
\n"; $rights_display.= "". $GLOBALS['lang']['user']['norights']."\n"; $rights_display.= "". $GLOBALS['lang']['user']['redactorrights']."\n"; $rights_display.= "
\n"; } else $rights_display.="\n"; if(defined('MOD_NEWS')) { $rights_display.= "
\n"; $rights_display.= "
\n"; $rights_display.= "". $GLOBALS['lang']['user']['norights']."\n"; $rights_display.= "". $GLOBALS['lang']['user']['redactorrights']."\n"; $rights_display.= "
\n"; } else $rights_display.="\n"; if(defined('MOD_WORKSHOP')) { $rights_display.= "
\n"; $rights_display.= "
\n"; $rights_display.= "". $GLOBALS['lang']['user']['norights']."\n"; $rights_display.= "". $GLOBALS['lang']['user']['animatorrights']."\n"; $rights_display.= "
\n"; } else $rights_display.="\n"; include_once("quickicons.php"); if(!isset($_POST['valider'])) $mask_type_S='checked="checked"'; ?>

/> /> />

>

:

\n"; echo "\n"; } ?>
".$GLOBALS['lang']['user']['set_rights']." : "; $reca_droits.="
 
"; if(defined('MOD_SDI')) { $reca_droits.="
. ".$GLOBALS['lang']['menu']['sdi']." :
"; $reca_droits.="
".GetDisplayUserRight($_POST['dashboard'], 'dashboard')."
"; } if(defined('MOD_PUBLICATION')) { $reca_droits.="
. ".$GLOBALS['lang']['menu']['publication']." :
"; $reca_droits.="
".GetDisplayUserRight($_POST['publication'])."
"; } if(defined('MOD_WORKSHOP')) { $reca_droits.="
. ".$GLOBALS['lang']['menu']['workshop']." :
"; $reca_droits.="
".GetDisplayUserRight($_POST['workshop'], 'workshop')."
"; } if(defined('MOD_NEWS')) { $reca_droits.="
. ".$GLOBALS['lang']['menu']['news']." :
"; $reca_droits.="
".GetDisplayUserRight($_POST['news'])."
"; } } ?>

:

:

: