fancy url for confirmation of email

darcs-hash:20080620062847-84dde-e7dd5ea325b1cbbf3cb5e3668851750497242e64.gz
This commit is contained in:
Evan Prodromou 2008-06-20 02:28:47 -04:00
parent 9277f8da1a
commit 940b14952a
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,8 @@ RewriteRule ^main/openid$ index.php?action=openidlogin [L,QSA]
RewriteRule ^main/subscribe$ index.php?action=subscribe [L,QSA] RewriteRule ^main/subscribe$ index.php?action=subscribe [L,QSA]
RewriteRule ^main/unsubscribe$ index.php?action=unsubscribe [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/avatar$ index.php?action=avatar [L,QSA]
RewriteRule ^settings/password$ index.php?action=password [L,QSA] RewriteRule ^settings/password$ index.php?action=password [L,QSA]

View File

@ -573,6 +573,8 @@ function common_fancy_url($action, $args=NULL) {
} else { } else {
return common_path($args['nickname']); return common_path($args['nickname']);
} }
case 'confirmemail':
return common_path('main/confirmemail/'.$args['code']);
default: default:
return common_simple_url($action, $args); return common_simple_url($action, $args);
} }