phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [18472] old nextgen stuff - dropping


From: Dave Hall
Subject: [Phpgroupware-cvs] [18472] old nextgen stuff - dropping
Date: Wed, 06 Feb 2008 02:50:39 +0000

Revision: 18472
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18472
Author:   skwashd
Date:     2008-02-06 02:50:38 +0000 (Wed, 06 Feb 2008)

Log Message:
-----------
old nextgen stuff - dropping

Removed Paths:
-------------
    trunk/admin/class.admin.php

Deleted: trunk/admin/class.admin.php
===================================================================
--- trunk/admin/class.admin.php 2008-02-04 04:50:14 UTC (rev 18471)
+++ trunk/admin/class.admin.php 2008-02-06 02:50:38 UTC (rev 18472)
@@ -1,65 +0,0 @@
-<?php
-       
/**************************************************************************\
-       * phpGroupWare                                                          
   *
-       * http://www.phpgroupware.org                                           
   *
-       * This file written by Dan Kuykendall <address@hidden>                 *
-       * Copyright (C) 2003 Dan Kuykendall                                     
   *
-       * 
-------------------------------------------------------------------------*
-  * This program is free software; you can redistribute it and/or modify it  *
-  * under the terms of the GNU General Public License as published by the    *
-  * Free Software Foundation; either version 2 of the License, or (at your   *
-  * option) any later version.                                               *
-       
\**************************************************************************/
-
-       /* $Id$ */
-
-       class admin_admin
-       {
-               function adduser ()
-               {
-                       $args = new safe_args();
-                       $args->set('username');
-                       $args->set('passwd', '');
-                       $args->set('fname', '');
-                       $args->set('lname', '');
-                       $args->set('isadmin', False, 'bool');
-                       $args = $args->get(func_get_args(),__LINE__,__FILE__);
-
-                       if(isset($args['username'])
-                       {
-                               $account_info['account_lid'] = 
$args['username'];
-                               $account_info['account_passwd'] = 
$args['passwd'];
-                               $account_info['account_firstname'] = 
$args['fname'];
-                               $account_info['account_lastname'] = 
$args['lname'];
-                               $account_info['account_type'] = 'u';
-                               $account_info['account_status'] = 'A';
-                               $account_info['account_expires'] = mktime 
(0,0,0,12,31,2005);
-                               $newid = 
$GLOBALS['phpgw']->accounts->create($account_info);
-                               if($newid === False)
-                               {
-                                       $result['text'] = '';
-                                       return $result;
-                               }
-                               $result['text'] = 'Created 
'.$args['username'].' which has id of '.$newid;
-
-                               $acl = createobject('api_acl', 
array('account_id'=>$newid));
-                               if($args['username'])
-                               {
-                                       $acl->add('.',63);
-                               }
-                               else
-                               {
-                                       $acl->add('api.base',1);
-                                       $acl->add('skel.base',1);
-                                       $acl->add('wcm.base',1);
-                                       $acl->add('admin.base',1);
-                               }
-                       }
-                       else
-                       {
-                               $result['text'] = 'Enter details';
-                       }
-                       $GLOBALS['phpgw']->add_xsl('admin.adduser');
-                       return $result;
-               }       
-       }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]