diff options
Diffstat (limited to 'htdocs/src')
-rw-r--r-- | htdocs/src/Post.inc.php | 4 | ||||
-rw-r--r-- | htdocs/src/User.inc.php | 4 | ||||
-rw-r--r-- | htdocs/src/header.inc.php | 5 |
3 files changed, 11 insertions, 2 deletions
diff --git a/htdocs/src/Post.inc.php b/htdocs/src/Post.inc.php index 820ca97..8c936d9 100644 --- a/htdocs/src/Post.inc.php +++ b/htdocs/src/Post.inc.php @@ -128,6 +128,10 @@ class Post { } } + public function reject() { + $this->info['stage'] = 'rejected'; + } + public function getCreated() { return $this->info['created']; } diff --git a/htdocs/src/User.inc.php b/htdocs/src/User.inc.php index 6821042..6ad5ebb 100644 --- a/htdocs/src/User.inc.php +++ b/htdocs/src/User.inc.php @@ -69,6 +69,10 @@ class User { public function authenticate($password) { return sha1($password) == $this->info['password']; } + + public function isAdmin() { + return $this->info['admin'] == 1; + } } ?> diff --git a/htdocs/src/header.inc.php b/htdocs/src/header.inc.php index f6c5eb8..3d7f4b0 100644 --- a/htdocs/src/header.inc.php +++ b/htdocs/src/header.inc.php @@ -8,8 +8,9 @@ </head> <body> <div id="header"> - <p><img src="<?= $CONFIG['urlroot'] ?>/images/logo.png" - alt="<?= $CONFIG['sitetitle'] ?>" /></p> + <p><a href="<?= $CONFIG['urlroot'] ?>"> + <img src="<?= $CONFIG['urlroot'] ?>/images/logo.png" + alt="<?= $CONFIG['sitetitle'] ?>" /></a></p> <div id="about"> Foursquare community is a place where you can find help, |