summaryrefslogblamecommitdiff
path: root/tpl/general/sqlerror.php
blob: 59f08065353295e137fd164204a9055dafe96dba (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                          
<?php
global $sql_min_priv_for_debug;
require("top.php");

if ($user['priv'] >= $sql_min_priv_for_debug) {
	echo '<div class="error">An error happenned with the following SQL query :<br />';
	echo '<code>' . $request . '</code><br />';
	echo 'Mysql answered : ' . $sql_error . '</div>';
} else {
	echo '<div class="error">An internal error occurred, sorry.</div>';
}

require("bottom.php");