summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorchris <chris@teacherscpd.co.uk>2005-10-20 20:14:34 +0200
committerchris <chris@teacherscpd.co.uk>2005-10-20 20:14:34 +0200
commit8b06d178223afa83719d5719942e315c41adc596 (patch)
tree3a2a7e18d883a8aff5ba2db763e6d1eed6793578 /inc/actions.php
parent453493f24ca09d6d213a95e42de8d91bb5577458 (diff)
downloadrpg-8b06d178223afa83719d5719942e315c41adc596.tar.gz
rpg-8b06d178223afa83719d5719942e315c41adc596.tar.bz2
auth update, incl. auth object, plain.class.php; resend password & update profile actions
darcs-hash:20051020181434-50fdc-44222aa2074bb0e39a1c240c516259579b380740.gz
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 636858106..2b5fa7ace 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -46,7 +46,15 @@ function act_dispatch(){
if($ACT == 'register' && register()){
$ACT = 'login';
}
-
+
+ if ($ACT == 'resendpwd' && act_resendpwd()) {
+ $ACT = 'login';
+ }
+
+ //update user profile
+ if (($ACT == 'profile') && updateprofile()) {
+ }
+
//save
if($ACT == 'save')
$ACT = act_save($ACT);
@@ -118,7 +126,7 @@ function act_clean($act){
if(array_search($act,array('login','logout','register','save','edit',
'preview','search','show','check','index','revisions',
'diff','recent','backlink','admin','subscribe',
- 'unsubscribe',)) === false
+ 'unsubscribe','profile','resendpwd',)) === false
&& substr($act,0,7) != 'export_' ) {
msg('Unknown command: '.htmlspecialchars($act),-1);
return 'show';
@@ -147,7 +155,7 @@ function act_permcheck($act){
}else{
$permneed = AUTH_CREATE;
}
- }elseif(in_array($act,array('login','search','recent'))){
+ }elseif(in_array($act,array('login','search','recent','profile'))){
$permneed = AUTH_NONE;
}elseif($act == 'register'){
if ($conf['openregister']){
@@ -325,5 +333,4 @@ function act_subscription($act){
return 'show';
}
-
//Setup VIM: ex: et ts=2 enc=utf-8 :