} ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> Home <style><!-- body{ font-family:Arial, Helvetica, sans-serif; } h1{ font-family:'Georgia', Times New Roman, Times, serif; } --></style> </head> <body> <div id="container"> <div id="header"><a href="home.php?q=logout">LOGOUT</a></div> <div id="main-body"> <h1>Hello <?php $user->get_fullname($uid); ?> </h1> </div> <div id="footer"></div> </div> </body> </html>
} } } } // END PHP Image Upload Error Handling --------------------------------- $moveResult = move_uploaded_file($fileTmpLoc, "images/{$fileName}"); if ($moveResult != true) { echo "ERROR: File not uploaded. Try again."; unlink($fileTmpLoc); exit; } unlink($fileTmpLoc); include_once 'images_class.php'; $imgclass = new Images(); $target_file = "images/{$fileName}"; $name = $user->get_fullname($id); $path = 'images/' . $name . '/resized'; if (!file_exists($path)) { mkdir($path, 0777, true); } $resized_file = "{$path}/processed_{$fileName}"; $wmax = 450; $hmax = 450; $imgclass->resize_photo($target_file, $resized_file, $wmax, $hmax, $fileExt); $target_file = "{$path}/processed_{$fileName}"; $path1 = 'images/' . $name . '/thumb'; if (!file_exists($path1)) { mkdir($path1, 0777, true); } $thumbnail = "{$path1}/thumb_{$fileName}"; $wthumb = 75;