This commit is contained in:
Savetheinternet 2011-08-15 00:49:52 +10:00
parent 2162238813
commit e3f2aa8da3
5 changed files with 23 additions and 49 deletions

View file

@ -29,12 +29,6 @@
}
}
function sql_close() {
global $pdo, $config;
if(!$config['db']['persistent'])
$pdo = NULL;
}
function prepare($query) {
global $pdo, $debug, $config;
if($config['debug']) {
@ -65,4 +59,4 @@
return $err[2];
}
}
?>
?>

View file

@ -65,8 +65,6 @@
function error($message) {
global $board, $mod, $config;
if(function_exists('sql_close')) sql_close();
if(defined('STDIN')) {
// Running from CLI
die('Error: ' . $message);
@ -89,7 +87,6 @@
function loginForm($error=false, $username=false, $redirect=false) {
global $config;
if(function_exists('sql_close')) sql_close();
die(Element('page.html', Array(
'index'=>$config['root'],
'title'=>'Login',