新的radius程序
源代码在线查看: user_new.php3
require('../conf/config.php3'); if ($show == 1){ header("Location: user_admin.php3?login=$login"); exit; } require('../lib/attrshow.php3'); require('../lib/defaults.php3'); if ($config[general_lib_type] == 'sql' && $config[sql_use_operators] == 'true'){ $colspan=2; $show_ops=1; }else{ $show_ops = 0; $colspan=1; } ?> New user creation page include("password_generator.jsc"); ?> User Preferences for new user if ($create == 1){ if (is_file("../lib/$config[general_lib_type]/user_info.php3")) include("../lib/$config[general_lib_type]/user_info.php3"); if ($user_exists != "no"){ echo The username $login already exists in the user database EOM; } else{ if (is_file("../lib/$config[general_lib_type]/create_user.php3")) include("../lib/$config[general_lib_type]/create_user.php3"); require("../lib/defaults.php3"); if (is_file("../lib/$config[general_lib_type]/user_info.php3")) include("../lib/$config[general_lib_type]/user_info.php3"); } } ?> echo Username Password EOM; if ($config[general_lib_type] == 'sql'){ if (isset($member_groups)) $selected[$member_groups[0]] = 'selected'; echo Group EOM; foreach ($member_groups as $group) echo "$group\n"; echo EOM; } if ($config[general_lib_type] == 'ldap' || ($config[general_lib_type] == 'sql' && $config[sql_use_user_info_table] == 'true')){ echo Name (First Name Surname) Mail Department Home Phone Work Phone Mobile Phone EOM; } foreach($show_attrs as $key => $desc){ $name = $attrmap["$key"]; if ($name == 'none') continue; $oper_name = $name . '_op'; $val = ($item_vals["$key"][0] != "") ? $item_vals["$key"][0] : $default_vals["$key"][0]; print $desc EOM; if ($show_ops) print = := += == != > >= < <= =~ !~ EOM; print EOM; } ?>
|
相关资源 |
|
-
新的radius程序
-
用C#编写的一个新的打印程序
-
一种新的人脸识别算法程序
-
这是一个较新的伪随机数生成程序,是用汇编语言编写的,不错
-
GEP(基因表达式程序设计)是一种新的演化算法
-
这是一个生成全排列的程序,采用最小变化算法,相邻两个序列之间只有两个数的次序不同,每交换两个数,便形成一个新的序列,速度非常快.
-
石子归并问题:在一个圆形操场的四周摆放着N堆石子(N<= 100),现要将石子有次序地合并成一堆.规定每次只能选取相邻的两堆合并成新的一堆,并将新的一堆的石子数,记为该次合并的得分.编一程序,由
-
一个新的keypad的示例程序
|