diff options
author | Robin <robin@Amaya.(none)> | 2010-04-22 22:08:38 +0400 |
---|---|---|
committer | Robin <robin@Amaya.(none)> | 2010-04-22 22:08:38 +0400 |
commit | 07a8992a84c252ab10d6047e3de1ce16ac3c6b0b (patch) | |
tree | fe5ca58f65f7be5fe1ef992e93c21e4b147db7dd /inc/lib_config.php | |
parent | 6b5bd8134131c4573f81cfe43fc9bbbe8fb35c05 (diff) |
admins can now create new users
Diffstat (limited to 'inc/lib_config.php')
-rwxr-xr-x | inc/lib_config.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/lib_config.php b/inc/lib_config.php index 0522ef3862f..5fa6b5f7c64 100755 --- a/inc/lib_config.php +++ b/inc/lib_config.php @@ -14,6 +14,18 @@ class OC_CONFIG{ require('templates/configform.php'); } + public static function createuserlisener(){ + if(isset($_POST['new_username']) and isset($_POST['new_password'])){ + if(OC_USER::createuser($_POST['new_username'],$_POST['new_password'])){ + return 'user successfully created'; + }else{ + return 'error while trying to create user'; + } + }else{ + return false; + } + } + /** * lisen for configuration changes and write it to the file * |