?> </li> <li class="profileLeftList">Articles</li><li class="profileRightList"><?php echo $authorRes['article_count']; ?> </li> <li class="profileLeftList">Status</li><li class="profileRightList"><?php if ($authorRes['author_status']) { echo "Active"; } else { echo "Retired"; } ?> </li> <li class="profileLeftList">About the Author</li><li class="profileRightList"><?php echo $authorRes['about_author']; ?> </li> </ul> <?php if ($newAuthor->authenticate() == $_GET['id']) { echo '<span id="linkToEdit"><a href="editAuthor.php">Edit My Profile</a></span>'; } ?> </div> </section> <?php footer(); ?> </body> </html>
} else { include_once '../include/PasswordHash.php'; // Related comments in signup.php $checker = new PasswordHash(8, FALSE); if ($checker->CheckPassword($password, $row['password'])) { $_SESSION["id"] = $row["ID"]; $id = $row["ID"]; $_SESSION["username"] = $row["username"]; $_SESSION["imgExist"] = $row["profilePic"]; $_SESSION["imgExt"] = $row["profilePicExt"]; date_default_timezone_set("Asia/Kolkata"); $curTime = date("Y-m-d H:i:s"); mysqli_query($link, "UPDATE membasic SET lastLogin='******' WHERE ID={$id}") or die("dont die"); require_once '../author/classes/authorClass.php'; $newAuthor = new author(); $authentic = $newAuthor->authenticate(); if ($authentic) { $_SESSION['author_id'] = $authentic; } unset($newAuthor); unset($authentic); session_regenerate_id(); session_write_close(); header("location: {$retUrl}"); exit; } else { $erm = "Invalid password"; $er = true; } } } else {
<?php /* Project name : BITuN Start Date : 22 Mar, 2015 2:32:27 PM Author: Adarsh Purpose : */ session_start(); include 'classes/authorClass.php'; $author = new author(); $author_id = $author->authenticate(); if (!$author_id) { header('location:../index.php'); exit; } $er = false; $suc = false; $result = $author->getAuthorDetails($author_id); require_once '../include/newCon.php'; if (isset($_POST['formNo'])) { if ($_POST['formNo'] == 1) { if ($_FILES['newPic']['size'] === 0 || $_FILES['newPic']['size'] > 1000000 || $_FILES['newPic']['error'] > 0) { $er = true; $erm = "File too large/small. "; @unlink($_FILES['newPic']['tmp_name']); } else { $nama = explode('.', $_FILES['newPic']['name']); $ext = end($nama); $ext = strtolower($ext); if ($ext === "jpg") {