You must be loged in to see your pastes!'); $conn = null; echo '
'; die(); } $stmt = $conn->prepare('SELECT * FROM pastes WHERE owner=:own'); $own = GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"]); $stmt->bindParam(':own', $own); $stmt->execute(); if($stmt->rowCount()>0){ echo ""; printf(''); printf(''); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $title = $row['title']; //Paste title printf(''); //Creation date printf(''); //Expire date if($row["expire"]==0) printf(''); else{ $expire = ($row["expire"]-time())/3600; if($expire>24){ printf(''); } else if($expire>=1) printf(''); else printf(''); } //Paste url printf(''); //Actions printf(''); } printf(''); } else { printf('

You havent made any pastes yet!

'); } $conn = null; ?>
Title Added Expires ID Actions
'.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').''); //delete paste printf(''); //edit paste printf(''); printf('