[freeside-commits] freeside/httemplate/search svc_Smart.html, NONE,
1.1
Ivan,,,
ivan at wavetail.420.am
Fri Jun 2 06:20:26 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv15334/httemplate/search
Added Files:
svc_Smart.html
Log Message:
add a service search
--- NEW FILE: svc_Smart.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') %><%
}
%>
More information about the freeside-commits
mailing list