X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_Smart.html;h=4d8f3e20ebf4f742b5d9c9f2b0a2a962198d052f;hp=93dbbeadd81a45a4cf0489f76ad70b861d45846f;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=15e561850b61b10a92a46d8f3e316d53d4970087 diff --git a/httemplate/search/svc_Smart.html b/httemplate/search/svc_Smart.html index 93dbbeadd..4d8f3e20e 100644 --- a/httemplate/search/svc_Smart.html +++ b/httemplate/search/svc_Smart.html @@ -1,22 +1,29 @@ -<% +% +% +%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') %> +% +% +%} +% +% -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') %><% - -} - -%>