mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Change in name hash
This commit is contained in:
parent
bfe40653df
commit
b9b26c4543
@ -148,11 +148,11 @@ $module_macros = array ();
|
||||
|
||||
// Create agent
|
||||
if ($create_agent) {
|
||||
$nombre_agente = md5($alias . $direccion_agente);
|
||||
$alias = (string) get_parameter_post("alias",'');
|
||||
$direccion_agente = (string) get_parameter_post("direccion",'');
|
||||
$direccion_agente = trim(io_safe_output($direccion_agente));
|
||||
$direccion_agente = io_safe_input($direccion_agente);
|
||||
$nombre_agente = hash("sha256",$alias . "|" .$direccion_agente ."|". time() ."|". sprintf("%04d", rand(0,10000)));
|
||||
$grupo = (int) get_parameter_post ("grupo");
|
||||
$intervalo = (string) get_parameter_post ("intervalo", SECONDS_5MINUTES);
|
||||
$comentarios = (string) get_parameter_post ("comentarios", '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user