Revision [16683]

This is an old revision of DanWestUserReg made by TpiAhn on 2007-05-31 10:35:44.

 

Admin User Registration

See Also
  • Need link to original action by DarTar here.
Last edited by TpiAhn
Thu, 31 May 2007 10:35 UTC [diff]

What


Since I was using Wikka as a content management system and did not want the general public to be able to register, I needed to have a method to register users under administrator control. I hack up the user registration action from DarTar. The main function is it allows you to register a user but does NOT log you in after doing so. So it allows you to add a new user to the database with all the validations but will not log you in to that user. It also checks to make sure you have 'write' access to the page the action is defined on as a basic permission trigger to allow you to register users.


Use

Installation

Code
Action: userreg.php (Or name it what you like)
%%(php)
<?php
constants
define('MIN_PASSW_LENGTH', '5');

print $this->Format('

New User Registration page


');
if ($user = $this->GetUser()
There are 4 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki