You must be loged in to see your pastes!'); $conn = null; echo '
'; die(); } $stmt = $conn->prepare('SELECT * FROM pastes WHERE owner=:own'); $stmt->bindParam(':own', GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"])); $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('

You havent made any pastes yet!

'); } $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').'