'.$owner["user"].'\'s profile'); //== Print pastes ==// $query = "SELECT * FROM pastes WHERE owner=:own AND exposure=0"; if(GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"]) == $ownerID)$query = "SELECT * FROM pastes WHERE owner=:own"; $stmt = $conn->prepare($query); $stmt->bindParam(':own', $ownerID); $stmt->execute(); if($stmt->rowCount()>0){ echo ""; printf(''); printf(''); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $title = $row['title']; printf(''); printf(''); if($row["expire"]==0) printf(''); else{ $expire = ($row["expire"]-time())/3600; if($expire>24){ printf(''); } else if($expire>=1) printf(''); else printf(''); } printf(''); } printf(''); } else { printf('

This user has no public pastes!

'); } } else printf('

User does not exist!

'); $conn = null; ?>
Title Added Expires ID
'.htmlspecialchars($row["title"], ENT_QUOTES, 'UTF-8').''.date('Y-m-d',$row["created"]).'Never'.round($expire/24).' days from now'.round($expire).' hours from now'.round($expire*60).' minutes from now'.htmlspecialchars($row["uid"], ENT_QUOTES, 'UTF-8').'