3 header("Location: user_admin.php3?login=$login");
6 require('../conf/config.php3');
7 require('../lib/attrshow.php3');
8 require('../lib/defaults.php3');
10 if ($config[general_lib_type] == 'sql' && $config[sql_use_operators] == 'true'){
22 <title>New user creation page</title>
23 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
24 <link rel="stylesheet" href="style.css">
26 <body bgcolor="#80a040" background="images/greenlines1.gif" link="black" alink="black">
29 include("password_generator.jsc");
33 <table border=0 width=550 cellpadding=0 cellspacing=0>
35 <td align=center><img src="images/title2.gif"></td>
40 <table border=0 width=540 cellpadding=1 cellspacing=1>
43 <td bgcolor="black" width=200>
44 <table border=0 width=100% cellpadding=2 cellspacing=0>
45 <tr bgcolor="#907030" align=right valign=top><th>
46 <font color="white">User Preferences for new user</font>
50 <tr bgcolor="black" valign=top><td colspan=2>
51 <table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
56 if (is_file("../lib/$config[general_lib_type]/user_info.php3"))
57 include("../lib/$config[general_lib_type]/user_info.php3");
58 if ($user_exists != "no"){
60 <b>The username <i>$login</i> already exists in the user database</b>
64 if (is_file("../lib/$config[general_lib_type]/create_user.php3"))
65 include("../lib/$config[general_lib_type]/create_user.php3");
66 require("../lib/defaults.php3");
67 if (is_file("../lib/$config[general_lib_type]/user_info.php3"))
68 include("../lib/$config[general_lib_type]/user_info.php3");
73 <input type=hidden name=create value="0">
74 <input type=hidden name=show value="0">
75 <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
79 <td align=right colspan=$colspan bgcolor="#d0ddb0">
82 <input type=text name="login" value="$login" size=35>
86 <td align=right colspan=$colspan bgcolor="#d0ddb0">
89 <input type=text name="passwd" size=35>
93 if ($config[general_lib_type] == 'sql'){
94 if (isset($member_groups))
95 $selected[$member_groups[0]] = 'selected';
98 <td align=right colspan=$colspan bgcolor="#d0ddb0">
101 <select name="Fgroup">
103 foreach ($member_groups as $group)
104 echo "<option value=\"$group\" $selected[$group]>$group\n";
112 if ($config[general_lib_type] == 'ldap' ||
113 ($config[general_lib_type] == 'sql' && $config[sql_use_user_info_table] == 'true')){
116 <td align=right colspan=$colspan bgcolor="#d0ddb0">
117 Name (First Name Surname)
119 <input type=text name="Fcn" value="$cn" size=35>
123 <td align=right colspan=$colspan bgcolor="#d0ddb0">
126 <input type=text name="Fmail" value="$mail" size=35>
130 <td align=right colspan=$colspan bgcolor="#d0ddb0">
133 <input type=text name="Fou" value="$ou" size=35>
137 <td align=right colspan=$colspan bgcolor="#d0ddb0">
140 <input type=text name="Fhomephone" value="$homephone" size=35>
144 <td align=right colspan=$colspan bgcolor="#d0ddb0">
147 <input type=text name="Ftelephonenumber" value="$telephonenumber" size=35>
151 <td align=right colspan=$colspan bgcolor="#d0ddb0">
154 <input type=text name="Fmobile" value="$mobile" size=35>
159 foreach($show_attrs as $key => $desc){
160 $name = $attrmap["$key"];
163 $oper_name = $name . '_op';
164 $val = ($item_vals["$key"][0] != "") ? $item_vals["$key"][0] : $default_vals["$key"][0];
167 <td align=right bgcolor="#d0ddb0">
175 <select name=$oper_name>
176 <option selected value="=">=
177 <option value=":=">:=
178 <option value="+=">+=
179 <option value="==">==
180 <option value="!=">!=
181 <option value=">">>
182 <option value=">=">>=
183 <option value="<"><
184 <option value="<="><=
185 <option value="=~">=~
186 <option value="!~">!~
194 <input type=text name="$name" value="$val" size=35>
202 <input type=submit class=button value="Create" OnClick="this.form.create.value=1">
204 <input type=submit class=button value="Show User" OnClick="this.form.show.value=1">
206 <input type="button" class=button value="Auto/Password" OnClick="generatepassword(this.form.passwd,8);">