summaryrefslogtreecommitdiff
path: root/includes/function.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-11-25 12:56:04 +0000
committerDries Buytaert <dries@buytaert.net>2000-11-25 12:56:04 +0000
commit086e72d4b101311fde20d26c5e04eb9bace91986 (patch)
treeb41c616e52afaac11a4467d8ad61ef3097dbcd75 /includes/function.inc
parent01018b68304e917836df9bdc051ef34e7da88ef0 (diff)
downloadbrdo-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.inc5
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("\"", "&quot;", stripslashes($message));
}