Will things ever be the same again?
[freeside.git] / httemplate / search / svc_Smart.html
1 %
2 %
3 %if ( $cgi->param('search_svc') =~ /\.[a-z]{2,8}$/i ) {
4 %
5 %  # looks (enough) like a domain
6 %
7 %  
8 <% $cgi->redirect('svc_domain.cgi?domain='. uri_escape( $cgi->param('search_svc') ) ) %>
9 %
10 %
11 %} elsif ( $cgi->param('search_svc') =~ /\w/ ) {
12 %
13 %  #looks (enough) like a username
14 %
15 %  
16 <% $cgi->redirect('svc_acct.cgi?username_type=Exact;username='. uri_escape( $cgi->param('search_svc') ) ) %>
17 %
18 %
19 %} else {
20 %
21 %
22 <% include('/elements/header.html', 'Unrecognized service string') %>
23   <% include('/elements/footer.html') %>
24 %
25 %
26 %} 
27 %
28 %
29