getName());
            $email = unserialize($_SESSION['user'])->getEmail();
            $userPic = USER_PICS.strtolower($name).".jpg";
            $forms = self::manage();
            return $reply = '
                        ';
                    } else {
                        if($i != 0) $purchasesHTML .= '
                        ';
                        $purchasesHTML .= '
                        ';
                    }
                    $purchasesHTML .= '
Compara realizada el: '.$dates[$i].'
                            
                                Película: '.str_replace('_', ' ', strtoupper($film->getTittle())).'
                                Idioma: '.$film->getLanguage().'
                                Cine: '.$cinema->getName().'
                                Dirección: '.$cinema->getDirection().'
                             
                            
                                Sala: '.$hall->getNumber().'
                                Sesión: '.$sessions[$i].'
                                Asiento(Fila): '.$rows[$i].'
                                Asiento(Columna): '.$columns[$i].'
                             ';
                }
            }
            
            return $reply = '
                            
Historial de compras
                            '.$purchasesHTML.'
                        ';
        }
        //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";
        }
    }
?>