function crearusuario($log, $nom, $pass, $ema)
 {
     $modelo = new Conexion();
     $pdo = $modelo->conectar();
     if (!$pdo) {
         die('could not connect' . PDO_error());
     } else {
         $key = $nom . $ema . date('mY');
         $key = md5($key);
         echo $key;
         $crearusu = $pdo->query("INSERT INTO `TEST`.`users` (`id`, `login`, `nombre`, `password`, `email`, `active`)\n            VALUES (NULL, '{$log}', '{$nom}', '{$pass}', '{$ema}', UNHEX('0'));");
         echo "<br>";
         $userid = $pdo->lastInsertId();
         $confirm = $pdo->query("INSERT INTO `confirm` VALUES(NULL,'{$userid}','{$key}','{$ema}')");
     }
     if ($crearusu && $confirm) {
         $con_email = new Confirmation();
         $confirmation = $con_email->email_confirm($nom, $key, $ema);
         header("location: tracking.login.html");
     }
 }