⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 find.php3

📁 RADIUS 服务器介绍 RADIUS服务器支持标准的RADIUS协议
💻 PHP3
字号:
<?phpif (is_file("../lib/sql/drivers/$config[sql_type]/functions.php3"))	include_once("../lib/sql/drivers/$config[sql_type]/functions.php3");else{	echo "<b>Could not include SQL library</b><br>\n";	exit();}$link = @da_sql_pconnect($config);if ($link){	if (($search_IN == 'name' || $search_IN == 'ou') && $config[sql_use_user_info_table] == 'true'){		$attr = ($search_IN == 'name') ? 'Name' : 'Department';		$res = @da_sql_query($link,$config,		"SELECT UserName FROM $config[sql_user_info_table] WHERE		$attr LIKE '%$search%' LIMIT $max_results;");		if ($res){			while(($row = @da_sql_fetch_array($res,$config)))				$found_users[] = $row[UserName];		}		else			"<b>Database query failed: " . da_sql_error($link,$config) . "</b><br>\n";	}	else if ($search_IN == 'radius' && $radius_attr != ''){		require("../lib/sql/attrmap.php3");		if ($attrmap["$radius_attr"] == ''){			$attrmap["$radius_attr"] = $radius_attr;			$attr_type["$radius_attr"] = 'replyItem';		}		$table = ($attr_type[$radius_attr] == 'checkItem') ? $config[sql_check_table] : $config[sql_reply_table];		$attr = $attrmap[$radius_attr];		$res = @da_sql_query($link,$config,		"SELECT UserName FROM $table WHERE Attribute = '$attr' AND Value LIKE '%$search%' LIMIT $max_results;");		if ($res){			while(($row = @da_sql_fetch_array($res,$config)))				$found_users[] = $row[UserName];		}		else			"<b>Database query failed: " . da_sql_error($link,$config) . "</b><br>\n";	}}else	echo "<b>Could not connect to SQL database</b><br>\n";?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -