diff options
| author | ivan <ivan> | 2006-06-02 13:20:24 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2006-06-02 13:20:24 +0000 |
| commit | 3a820c27d5290f9d2761636b2b4fe865caeb0804 (patch) | |
| tree | 8360f16bb719eefbb1d2aec809e2f4bc8d3243e7 /httemplate/search | |
| parent | 7b5aa356c7ed954bb60ce22d44d6de5f4852fafd (diff) | |
add a service search
Diffstat (limited to 'httemplate/search')
| -rw-r--r-- | httemplate/search/svc_Smart.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/httemplate/search/svc_Smart.html b/httemplate/search/svc_Smart.html new file mode 100644 index 000000000..93dbbeadd --- /dev/null +++ b/httemplate/search/svc_Smart.html @@ -0,0 +1,22 @@ +<% + +if ( $cgi->param('search_svc') =~ /\.[a-z]{2,8}$/i ) { + + # looks (enough) like a domain + + %><%= $cgi->redirect('svc_domain.cgi?domain='. uri_escape( $cgi->param('search_svc') ) ) %><% + +} elsif ( $cgi->param('search_svc') =~ /\w/ ) { + + #looks (enough) like a username + + %><%= $cgi->redirect('svc_acct.cgi?username_type=Exact;username='. uri_escape( $cgi->param('search_svc') ) ) %><% + +} else { + +%><%= include('/elements/header.html', 'Unrecognized service string') %> + <%= include('/elements/footer.html') %><% + +} + +%> |
