radius开放源码,用C写的,广泛用于认证服务器、认证计费。
源代码在线查看: user_new.php3
if ($show == 1){ header("Location: user_admin.php3?login=$login"); exit; } require('../conf/config.php3'); 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写的,广泛用于认证服务器、认证计费。
-
模拟器的源码,用c写的,包括对底层硬件驱动,cpu驱动,的实现,是不可多的编程典范.(文件改名成exe,解包即可)
-
一个通讯录源码,用C#写的.挺不错的,大家可以参考看一下.
-
单片机控制步进电机的源码.用C写的.还有原理等.
-
一个关于GSM手机短信的程序源码,用C++编写的,与大家分享,希望对大家有帮助.
-
SVM训练的源码,用C++实现的,包含详细的说明
-
人工智能中八数码难题的源码,用C++编写的
-
本应用为温度计的源程式,用C写的,不错哦
|