From f98810b47eb4174e073f6f8b04e091b051efa0f7 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 18 Nov 2009 12:53:45 -0500 Subject: Remove another obsolete file, add some other files that no longer exist in the repo to the obsoleted files list. --- usr/local/www/services_usermanager.php | 210 --------------------------------- 1 file changed, 210 deletions(-) delete mode 100755 usr/local/www/services_usermanager.php (limited to 'usr') diff --git a/usr/local/www/services_usermanager.php b/usr/local/www/services_usermanager.php deleted file mode 100755 index 487a604..0000000 --- a/usr/local/www/services_usermanager.php +++ /dev/null @@ -1,210 +0,0 @@ -. - All rights reserved. - Copyright (C) 2005 Pascal Suter . - All rights reserved. - (files was created by Pascal based on the source code of services_captiveportal.php from Manuel) - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ -/* - pfSense_MODULE: interfaces -*/ - -##|+PRIV -##|*IDENT=page-services-usermanager -##|*NAME=Services: User Manager page -##|*DESCR=Allow access to the 'Services: User Manager' page. -##|*MATCH=services_usermanager.php* -##|-PRIV - -require("guiconfig.inc"); - -if(isset($_POST['save'])){ - $_POST['username']=trim($_POST['username']); - if($_POST['old_username']!="" && $_POST['old_username']!=$_POST['username']){ - $config['users'][$_POST['username']]=$config['users'][$_POST['old_username']]; - unset($config['users'][$_POST['old_username']]); - } - foreach(Array('fullname','expirationdate') as $field){ - $config['users'][$_POST['username']][$field]=trim($_POST[$field]); - } - if(trim($_POST['password1'])!="********" && trim($_POST['password1'])!=""){ - if(trim($_POST['password1'])==trim($_POST['password2'])){ - $config['users'][$_POST['username']]['password']=md5(trim($_POST['password1'])); - } else { - $input_errors[]="passwords did not match --> password was not changed!"; - } - } - if($_POST['username']=="" || trim($_POST['password1'])==""){ - $input_errors[] = "Username and password must not be empty!"; - $_GET['act']="new"; - } else { - write_config(); - $savemsg=$_POST['username']." successfully saved
"; - } -} else if ($_GET['act']=="delete" && isset($_GET['username'])){ - unset($config['users'][$_GET['username']]); - write_config(); - $savemsg=$_GET['username']." successfully deleted
"; -} -//erase expired accounts -$changed=false; -if(is_array($config['users'])){ - foreach($config['users'] as $username => $user){ - if(trim($user['expirationdate'])!="" && strtotime("-1 day")>strtotime($user['expirationdate'])){ - unset($config['users'][$username]); - $changed=true; - $savemsg.="$username has expired --> $username was deleted
"; - } - } - if($changed){ - write_config(); - } -} - -$pgtitle = array("Services","User Manager"); -include("head.inc"); - -?> - - - - - - - - - - - - - - - -END; - if(is_array($config['users'])){ - foreach($config['users'] as $username => $user){ -?> - - - - - - - - - - -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
Username - -
- Enter the desired username.
Password - "> -
- Enter the desired password.
Password confirmation - "> -
- Confirm the above password.
Full name - -
- Enter the user's full name.
Expiration Date - - Pick a date -
Enter this acocunt's expiration date in us-format (mm/dd/yyyy) or leave this field empty for no expiration.
  - - -
-
- -
UsernameFull NameExpires
-   - -   - -   - -  
-END; -} -?> - - - - - -- cgit v1.1