forked from leftypol/leftypol
...
This commit is contained in:
parent
2162238813
commit
e3f2aa8da3
5 changed files with 23 additions and 49 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue