Update of /cvsroot/phpmp/phpMP/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv25903/admin
Modified Files:
main.php
Log Message:
Added user management - I am getting an problem with the script not deleting the user when told to do so - works fine other than that I think
Index: main.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/admin/main.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** main.php 11 Feb 2003 00:24:25 -0000 1.4
--- main.php 11 Feb 2003 21:06:18 -0000 1.5
***************
*** 4,7 ****
--- 4,8 ----
define( C_ACTION_SITE, 1 );
define( C_ACTION_USER, 2 );
+ define( C_PARSE_USER, 3 );
define( C_PHPMP_ROOT, '../' );
***************
*** 20,32 ****
switch ($parse)
{
! case C_ACTION_SITE:
! $admin->parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms);
! break;
! case C_ACTION_USER:
! $admin->show_user($userid);
! break;
! default: // $parse is not supplied, so execute $action instead
! if ($action != C_ACTION_NONE) { $admin->execute($action); }
! break;
}
--- 21,39 ----
switch ($parse)
{
! case C_ACTION_SITE:
! if (!$submit_general) { return; }
! $admin->parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms);
! break;
! case C_ACTION_USER:
! if (!$submit_user) { return; }
! $admin->show_user($userid);
! break;
! case C_PARSE_USER:
! if (!$submit_user_parse) { return; }
! $admin->parse_user($userid, $username, $passwd, $email, $auth_level, $date_format, $template, $signature, $delete);
! break;
! default: // $parse is not supplied, so execute $action instead
! if ($action != C_ACTION_NONE) { $admin->execute($action); }
! break;
}
|