From 58bd120e541cb9d80a7bcf2daae8b8a97df17586 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Fri, 20 Nov 2009 18:40:35 +0100 Subject: implemented default username feature --- customize.rb | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'customize.rb') diff --git a/customize.rb b/customize.rb index 8a9231a..bad79c1 100755 --- a/customize.rb +++ b/customize.rb @@ -32,10 +32,13 @@ $html.header["Cache-Control"] = "no-cache" $html.add_css("../dudle.css") -$html << "" -$html << Dudle::tabs("Customize") -$html << "
" -$html << "

Customize Personal Settings

" +$html << < +#{Dudle::tabs("Customize")} +
+

Customize Personal Settings

+You need cookies enabled in order to personalize your settings. +END $html << < @@ -77,13 +80,21 @@ $html << < CHARSET + +username = $cgi.cookies["username"][0] +if $cgi.include?("username") + username = $cgi["username"] + $html.add_cookie("username",username,"/",Time.now + 1*60*60*24*365) +end + + $html << <

Default Username

-
+
- +
-- cgit v1.2.3