diff --git a/info/about.php b/about.php similarity index 82% rename from info/about.php rename to about.php index 1e9e6ca..7af9794 100644 --- a/info/about.php +++ b/about.php @@ -1,16 +1,26 @@ + +
-Description
"; +// Flyout button, not required so must need more information when added +echo $action; +// Exit button + Div End +echo " +No ID present
"; + + // Replacement "no image" image and description + //$image_path = "assets/no_image.png"; + //$image_alt = "No image could be found, sowwy"; +} + + +/* + Get all user details + + This gets the user info from the image +*/ +if (isset($image['author'])) { + $user = get_user_info($conn, $image['author']); +} + +/* + Check user privilge + + This requires the user to be logged in or an admin +*/ +if (image_privilage($image['author']) || is_admin($_SESSION['id'])) { + $privilaged = True; +} else { + $privilaged = False; +} +?> + -No ID present
"; - - // Replacement "no image" image and description - $image_path = "assets/no_image.png"; - $image_alt = "No image could be found, sowwy"; - } - - - // Get all user details - if (isset($image['author'])) { - $user = get_user_info($conn, $image['author']); - } - - // Check user privilge - if (image_privilage($image['author']) || is_admin($_SESSION['id'])) { - $privilaged = True; - } else { - $privilaged = False; - } - - /* Delete flyout @@ -155,9 +192,9 @@ // Attempt to execute the prepared statement if (mysqli_stmt_execute($stmt)) { - header("Location:https://superdupersecteteuploadtest.fluffybean.gay/image.php?id=".$image["id"]."&update=success"); + header("Location:image.php?id=".$image["id"]."&update=success"); } else { - header("Location:https://superdupersecteteuploadtest.fluffybean.gay/image.php?id=".$image["id"]."&update=error"); + header("Location:image.php?id=".$image["id"]."&update=error"); } } } @@ -210,9 +247,9 @@ // Attempt to execute the prepared statement if (mysqli_stmt_execute($stmt)) { - header("Location:https://superdupersecteteuploadtest.fluffybean.gay/image.php?id=".$image["id"]."&update=success"); + header("Location:image.php?id=".$image["id"]."&update=success"); } else { - header("Location:https://superdupersecteteuploadtest.fluffybean.gay/image.php?id=".$image["id"]."&update=error"); + header("Location:image.php?id=".$image["id"]."&update=error"); } } } @@ -250,9 +287,9 @@ // Attempt to execute the prepared statement if (mysqli_stmt_execute($stmt)) { - header("Location:https://superdupersecteteuploadtest.fluffybean.gay/image.php?id=".$image["id"]."&update=success"); + header("Location:image.php?id=".$image["id"]."&update=success"); } else { - header("Location:https://superdupersecteteuploadtest.fluffybean.gay/image.php?id=".$image["id"]."&update=error"); + header("Location:image.php?id=".$image["id"]."&update=error"); } } } @@ -265,6 +302,7 @@ ?> +