-
Notifications
You must be signed in to change notification settings - Fork 2
/
pet_info.php
29 lines (25 loc) · 927 Bytes
/
pet_info.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/* Initialize Session and Database */
include_once('./includes/session.php');
include_once('./includes/database.php');
/* Database Managers Files */
include_once('database/users.php');
include_once('database/pets.php');
include_once('database/pets_adoption.php');
include_once('database/pets_profile.php');
/* Verifications and set variables */
$pet = getPet($_GET['idPet']);
if(empty($pet)) {
header('Location: ./error404.php');
}
$owner = getPetOwner($_GET['idPet']);
$adopted = getPetAdopted($_GET['idPet']);
$questions = getQuestions($_GET['idPet']);
$proposals = getAdoptionProposalList($_GET['idPet']);
$photos = getAllPhotos($_GET['idPet']);
/* HTML Code */
include_once('templates/common/header.php');
include_once('templates/common/notifications.php');
include_once('templates/pet/pet_information.php');
include_once('templates/common/footer.php');
?>