implemented profile

This commit is contained in:
2023-10-30 19:27:44 +01:00
parent 0ed8ab9137
commit 298e8e6cd1
8 changed files with 57 additions and 226 deletions

View File

@ -90,9 +90,9 @@ class Dogs extends Page {
$dog_size = intval($_REQUEST['dog_size']);
$dog_birthday = $_REQUEST['dog_birthday'];
$agi_height_category = $_REQUEST['agi_height_category'];
$newphoto = false;
$active = intval($_REQUEST['agi_active']);
$newphoto = false;
if($_FILES['photo'])
{
$photo = $_FILES['photo'];
@ -104,8 +104,6 @@ class Dogs extends Page {
$allowed = ['jpg','jpeg','png','gif'];
$photo_ext = strtolower(end(explode('.', $photo_name)));
$photo_name = $name.'.'.$photo_ext;
$photo_path = 'uploads/'.$photo_name;
if(in_array($photo_ext, $allowed))
{