summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-08-11 14:54:39 +0000
committerDries Buytaert <dries@buytaert.net>2001-08-11 14:54:39 +0000
commit808b6b6cae71afd741023a0c08a6c925f2198752 (patch)
treed17e890898959601d841227fecd538f135371bfc /includes/common.inc
parent876536a955b783c4f82185dc45557ef3b1bd949f (diff)
downloadbrdo-808b6b6cae71afd741023a0c08a6c925f2198752.tar.gz
brdo-808b6b6cae71afd741023a0c08a6c925f2198752.tar.bz2
- Changed the authentication and login scheme as discussed on the mailing
list. - Fixed the export function in book.module (patch my Julian). - Fixed the comment alignment (comments got truncated).
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc14
1 files changed, 11 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index a46ae405b..d347cc64f 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -204,9 +204,17 @@ function format_date($timestamp, $type = "medium", $format = "") {
return $date;
}
-function format_username($username, $realname="") {
- if ($username) return (user_access("administer users") ? "<A HREF=\"admin.php?mod=account&op=view&name=". urlencode($username) ."\">". check_output($realname ? $realname : $username) ."</A>" : "<A HREF=\"account.php?op=view&name=". urlencode($username) ."\">". check_output($realname ? $realname : $username) ."</A>");
- else return variable_get(anonymous, "Anonymous");
+function format_name($username, $realname = "") {
+ if ($realname) {
+ watchdog("special", "format_name - FIX ME");
+ return "<font color=\"red\">FIX ME</font>\n";
+ }
+ else if ($username) {
+ return (user_access("administer users") ? "<a href=\"admin.php?mod=account&op=view&name=". urlencode($username) ."\">". $username ."</a>" : "<a href=\"account.php?op=view&name=". urlencode($username) ."\">$username</a>");
+ }
+ else {
+ return variable_get(anonymous, "Anonymous");
+ }
}
function format_email($address) {