summaryrefslogtreecommitdiff
path: root/httemplate/search/sql.html
blob: df9b8cddbf50bdc1cbd8952d7f83732bfc94a005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<% include( 'elements/search.html',
               'title' => 'Query Results',
               'name'  => 'rows',
               'query' => 'SELECT '. ( $cgi->param('sql')
                             || errorpage('Empty query') ),
    )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Raw SQL');

</%init>