$page = 'home'; require_once 'includes/header.php'; $masterpiece = $_GET['mastid']; $query = "SELECT masterpieces.images, master_id\n\t\tFROM masterpieces\n\t\tORDER BY date DESC"; $result = $db->query($query); $user_id = $_SESSION['user_id']; ?> <section class="user cf"> <article> <a href="profile.php"><img src="<?php show_avatar($user_id); ?> " alt="profile picture"></a> <h1> Welcome <?php show_username($user_id); ?> !</h1> <h2>Click your profile picture to view your profile</h2> </article> </section> <main class="cf"> <h1>Welcome to Inspire!</h1> <h2>Enjoy our latest inspirations</h2> <h3>Latest Inspirations</h3> <section id="container">
<div class="panel-body" > <?php if (isset($_GET['form'])) { if ($_GET['form'] == "home" || $_GET['form'] == "") { show_home(); } else { if ($_GET['form'] == "show_passcode") { show_passcode(); } else { if ($_GET['form'] == "show_passw") { show_passw(); } else { if ($_GET['form'] == "show_username") { show_username(); } else { if ($_GET['form'] == "show_delete") { show_delete(); } } } } } } else { show_home(); } if (isset($_POST['deletepassword'])) { //Delete the account and all its data $con = mysqli_connect("localhost", "root", "PASS", "secure_login"); if (mysqli_connect_errno()) {