diff options
Diffstat (limited to 'app/class')
| -rw-r--r-- | app/class/user.class.php | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/app/class/user.class.php b/app/class/user.class.php index ab9ecf5..1d17dfe 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -195,6 +195,17 @@ class User extends Object      {          return $this->ar() . "/file.php?d=img/heads&f=" . $this->guid;      } + +    /* +     * Remove this user's head image +     */ +    function rmHeadImage() +    { +        if (!is_file("assets/img/heads/" . $this->guid)) +            return true; + +        return unlink("assets/img/heads/" . $this->guid); +    }  }  ?> | 
