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

📄 email_lookup.cgi

📁 嵌入式WEB
💻 CGI
字号:
#!/usr/bin/perl -wTuse strict;use DB_File;use Fcntl;use CGI;my $q        = new CGI;my $username = $q->param( "user" );my $dbm_file = "/usr/local/apache/data/user_email.db";my %dbm_hash;my $email;tie %dbm_hash, "DB_File", $dbm_file, O_RDONLY or    die "Unable to open dbm file $dbm_file: $!";if ( exists $dbm_hash{$username} ) {    $email = $q->a( { href => "mailto:$dbm_hash{$username}" },                    $dbm_hash{$username} );}else {    $email = "Username not found";}untie %dbm_hash;print $q->header( "text/html" ),      $q->start_html( "Email Lookup Results" ),      $q->h2( "Email Lookup Results" ),      $q->hr,      $q->p( "Here is the email address for the username you requested: " ),      $q->p( "Username: $username", $q->br,             "Email: $email" ),      $q->end_html; 

⌨️ 快捷键说明

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