Ejemplo n.º 1
0
 function check_username_no_sid($username, $escape = 1)
 {
     if ($escape) {
         $username = $this->SfStr->getSafeString($username, SAFE_STRING_DB);
     } else {
         $username = $this->SfStr->getSafeString($username, SAFE_STRING_ESC);
     }
     $query = "SELECT uid FROM {$this->CONF['db_tbl_prefix']}users WHERE username = {$username}";
     $rs = $this->db->Execute($query);
     if ($rs === FALSE) {
         $this->error('Error checking for existing username: '******'uid'];
     } else {
         return false;
     }
 }
Ejemplo n.º 2
0
 /**
  * Delete Invoice
  *
  */
 function Delete()
 {
     $this->DB->Execute("DELETE FROM invoices WHERE id=?", array($this->ID));
 }