Ejemplo n.º 1
0
 private function listLinksRaw()
 {
     if (LIST_PWD_REQUIRED) {
         if (!$this->checkDateOffset()) {
             $this->error("Invalid timestamp - now it's " . date("YmdHis"));
         }
         if (!$this->checkPassword()) {
             $this->error("Invalid password");
         }
     }
     $query = new selectquery();
     $query->setTable("links");
     $query->addOrderBy("lnkTimestamp");
     $result = $query->getArrayResult();
     $output = array();
     foreach ($result as $row) {
         $row['lnkID'] = $this->intToBase($row['lnkID']);
         $output[] = $row;
     }
     return $output;
 }