Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
should probably global that
Browse files Browse the repository at this point in the history
  • Loading branch information
TermOfficial authored Apr 18, 2022
1 parent 028b5f4 commit 75e4431
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function setup(){
$setup = $db->prepare("CREATE TABLE `".$dbname."`.`bans` ( `uid` INT(10) NOT NULL ) ENGINE = MyISAM;");
$setup->execute();
if($setup->error){
echo "Failed, DB is probably already setup";
return $setup->error();
} else {
return 1;
Expand Down Expand Up @@ -163,6 +164,7 @@ function logout(){
setcookie('username', null, -1, '/');
return 1;
} else {
global $_SESSION;
session_destroy();
return 1;
}
Expand All @@ -172,5 +174,5 @@ function logout(){
function checktoken($username, $token){
return "not implemented";
}
//checkver("b1026");
//checkver("b1027");
?>

0 comments on commit 75e4431

Please sign in to comment.