<?php require_once('Auth.class.php'); class User extends Auth { public function __construct($uid) { parent::__construct($uid); } public function getUID() { return $this->uid; } /**********************************************************************\ * The 'auth' table. * \**********************************************************************/ public function setPassword($password) { if (!$this->canEdit()) return false; return $this->db->setPassword($this->uid, $password); } /**********************************************************************\ * The 'users' table. * \**********************************************************************/ }