Add files via upload

This commit is contained in:
Fernando Méndez
2021-05-31 20:50:32 +02:00
committed by GitHub
parent 425af67eb5
commit 7166b91e83
4 changed files with 33 additions and 49 deletions

View File

@ -1,5 +1,4 @@
<?php
include_once($prefix.'assets/php/includes/user_dao.php');
include_once($prefix.'assets/php/form.php');
@ -96,6 +95,9 @@ class FormRegister extends Form {
$_SESSION["nombre"] = $this->user->getName();
$_SESSION["rol"] = $this->user->getRol();
$_SESSION["login"] = true;
$img = "../img/users/user.jpg"; //USER_PICS
$profile_img = "../img/users/".$nombre.".jpg";
copy($img, $profile_img);
$result = ROUTE_APP."register/register.php";
}
}