diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-11-25 12:56:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-11-25 12:56:04 +0000 |
commit | 086e72d4b101311fde20d26c5e04eb9bace91986 (patch) | |
tree | b41c616e52afaac11a4467d8ad61ef3097dbcd75 /includes/function.inc | |
parent | 01018b68304e917836df9bdc051ef34e7da88ef0 (diff) | |
download | brdo-086e72d4b101311fde20d26c5e04eb9bace91986.tar.gz brdo-086e72d4b101311fde20d26c5e04eb9bace91986.tar.bz2 |
- Redid most of account.php and fixed quite some bugs!
Check out your new user account stuff and give me some feedback.
Diffstat (limited to 'includes/function.inc')
-rw-r--r-- | includes/function.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/function.inc b/includes/function.inc index 3c3cd3afe..8f9336603 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -18,6 +18,11 @@ function load_theme() { return new Theme(); } +function discussion_score($comment) { + $value = ($comment->votes) ? ($comment->score / $comment->votes) : (($comment->score) ? $comment->score : 0); + return (strpos($value, ".")) ? substr($value ."00", 0, 4) : $value .".00"; +} + function check_field($message) { return str_replace("\"", """, stripslashes($message)); } |