SHARE
TWEET

Untitled

a guest Jun 19th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // Delete any releases which are older than site's release retention days
  3. //
  4.     if($echooutput)
  5.         echo "Deleting Releases which are older than ".$page->site->releasedays." days\n";
  6.         $result = $db->query(sprintf("SELECT * from releases where postdate < %s - interval %d day", $db->escapeString($currTime["now"]), $page->site->releasedays));      
  7.         foreach ($result as $row)
  8.                 {
  9.                     if ($row["ID"] != "")
  10.                 echo "Deleting Release ID Number ".$row["ID"]."\n\n";
  11.                     $this->delete($row["ID"]);
  12.             }
RAW Paste Data
Top