Removed /usr/local from CDPATH
[clearscm.git] / cc / msl / private / addnuser.php
1 <!--
2 File:           addnuser.php,v
3 Revision:       1.1.1.1
4
5 Description:    Pick a user to be added to the exclusion list (-nusers). 
6
7 Author:         Andrew@DeFaria.com
8 Created:        Fri Jul 14 09:44:04 PDT 2006
9 Modified:       2007/05/17 07:45:48
10 Language:       PHP
11
12 (c) Copyright 2006, Andrew@DeFaria.com, all rights reserved.
13 -->
14
15 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
16    "http://www.w3.org/TR/html4/strict.dtd">
17 <html>
18 <head>
19   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
20   <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
21   <link rel="stylesheet" type="text/css" href="/css/default.css">
22 <?php
23 include_once ("../streams.php");
24 $version = "1.0";
25
26 if (!empty ($_GET ["stream"])) {
27   $stream = $_GET ["stream"];
28 } // if 
29
30 if (!empty ($stream)) {
31   $heading = "Select user to allow access to $stream";
32 } else {
33   $heading = "Select user to allow access to &lt;unknown&gt;";
34 } // if
35 ?>
36   <title><?php echo $heading?></title>
37 </head>
38
39 <center><h1><?php echo $heading?></h1></center>
40
41 <?php
42 // Santity check
43 if (empty ($stream)) {
44   error ("Stream parameter not supplied");
45 } // if
46
47 $users = get_usernames ();
48 asort ($users);
49 print "<center><form method=\"get\" action=\"mknusers.php\" name=\"add_nuser\">\n";
50 print "<input type=hidden name=stream value=$stream>\n";
51 print "<select name=\"user\" class=\"inputfield\">\n";
52 foreach ($users as $key => $user) {
53   print "<option>$user</option>\n";
54 } // foreach
55 ?>
56 </select>
57
58 &nbsp;<input type="submit" value="Select"></p>
59 </form></center>
60
61 <center>
62 <p><small><a href="/nusers_stream">Manage Stream Locks Home</a></small></p>
63 <?php copyright (null ,$version);?>
64 </center>
65 </body>
66 </html>