getName()); $email = unserialize($_SESSION['user'])->getEmail(); $userPic = USER_PICS.strtolower($name).".jpg"; $forms = self::manage(); return $reply = '

Bienvenido '.$name.' a tu Panel de Usuario.


user_profile_picture

'.strftime("%A %e de %B de %Y | %H:%M").'


Usuario: '.$name.'

Email: '.$email.'

'."\n".$forms; } //Manage the user account. static function manage(){ require_once('./includes/formChangePass.php'); require_once('./includes/formChangeEmail.php'); require_once('./includes/formChangeName.php'); $formCN = new FormChangeName(); $htmlFormChangeName = $formCN->gestiona(); $formCP = new FormChangePass(); $htmlFormChangePass = $formCP->gestiona(); $formCE = new FormChangeEmail(); $htmlFormChangeEmail = $formCE->gestiona(); return $reply = '

Cambiar información de la cuenta


Cambiar nombre de usuario

'.$htmlFormChangeName.'

Cambiar contraseña

'.$htmlFormChangePass.'

Cambiar email de usuario

'.$htmlFormChangeEmail.'
'."\n"; } //User purchase history. static function changeUserPic(){ require_once('./includes/formUploadPic.php'); $formCP = new FormUploadFiles(); $htmlFormChangeUserPic = $formCP->gestiona(); $name = strtoupper(unserialize($_SESSION['user'])->getName()); $userPic = USER_PICS.strtolower($name).".jpg"; return $reply = '

Cambiar imagen de perfil


user_profile_picture '.$htmlFormChangeUserPic.'
'."\n"; } //User purchase history. static function purchases(){ return $reply = '

Aquí el historial de compras


'."\n"; } //User payment details static function payment(){ return $reply = '

Aquí los datos de pago


'."\n"; } //Delete user account. static function delete(){ require_once('./includes/formDeleteAccount.php'); $formDA = new FormDeleteAccount(); $htmlFormDeleteAccount = $formDA->gestiona(); return $reply = '

ELIMINAR CUENTA DE USUARIO


'.$htmlFormDeleteAccount.'
'."\n"; } } ?>