summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-20 02:28:47 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-20 02:28:47 -0400
commit940b14952aca8490d7ad854f3356554edfc3a58c (patch)
tree2f66c2e1f7a7be181550a5253f9d487557acaad2
parent9277f8da1a42b675eed3305af9877388635293c4 (diff)
fancy url for confirmation of email
darcs-hash:20080620062847-84dde-e7dd5ea325b1cbbf3cb5e3668851750497242e64.gz
-rw-r--r--htaccess.sample2
-rw-r--r--lib/util.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/htaccess.sample b/htaccess.sample
index 090857e4a..cd8ba1003 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -16,6 +16,8 @@ RewriteRule ^main/openid$ index.php?action=openidlogin [L,QSA]
RewriteRule ^main/subscribe$ index.php?action=subscribe [L,QSA]
RewriteRule ^main/unsubscribe$ index.php?action=unsubscribe [L,QSA]
+RewriteRule ^main/confirmemail$ index.php?action=confirmemail [L,QSA]
+RewriteRule ^main/confirmemail/(.*)$ index.php?action=confirmemail&code=$1 [L,QSA]
RewriteRule ^settings/avatar$ index.php?action=avatar [L,QSA]
RewriteRule ^settings/password$ index.php?action=password [L,QSA]
diff --git a/lib/util.php b/lib/util.php
index 42c9a1a0b..646d93c3b 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -573,6 +573,8 @@ function common_fancy_url($action, $args=NULL) {
} else {
return common_path($args['nickname']);
}
+ case 'confirmemail':
+ return common_path('main/confirmemail/'.$args['code']);
default:
return common_simple_url($action, $args);
}