diff options
Diffstat (limited to 'httemplate/search/sql.html')
-rw-r--r-- | httemplate/search/sql.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/httemplate/search/sql.html b/httemplate/search/sql.html new file mode 100644 index 000000000..df9b8cddb --- /dev/null +++ b/httemplate/search/sql.html @@ -0,0 +1,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> |