diff --git a/core/classes.php b/core/classes.php index 8fbeb78..fc0dcf9 100644 --- a/core/classes.php +++ b/core/classes.php @@ -11,7 +11,7 @@ class PartyStarter { function header() { // to not confuse you i renamed it from loggedoutheader to header since qzip made it both lol require ('core/config.php'); - $grubloxlogotohome = ''; + $grubloxlogotohome = ''; $showhome = ''; if (isset($_SESSION['user'])) { $showhome = ' '; - $grubloxlogotohome = ''; + $grubloxlogotohome = ''; $query = $con->prepare('SELECT money FROM users WHERE id=:id'); $query->bindParam(':id', $id); $query->execute(); @@ -52,7 +52,7 @@ class PartyStarter { Login '; } - echo ' + echo ' diff --git a/css/global.css b/css/global.css new file mode 100644 index 0000000..c7f6ead --- /dev/null +++ b/css/global.css @@ -0,0 +1,6 @@ +.headerLogo{ + background-image: url(/assets/icons/Grublox.png); + background-size: 131px 30px; + width: 131px; + height: 30px; +} \ No newline at end of file diff --git a/grublox.sql b/grublox.sql index 5a7d553..8380b1a 100644 --- a/grublox.sql +++ b/grublox.sql @@ -30,7 +30,7 @@ SET time_zone = "+00:00"; CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(20) NOT NULL, - `password` varchar(450) NOT NULL, + `password` varchar(500) NOT NULL, `date` datetime NOT NULL DEFAULT current_timestamp(), `token` varchar(25) DEFAULT NULL COMMENT 'Token for joining. Useful to secure joining to prevent unauthorized users to use other names.', `description` varchar(250) DEFAULT NULL, diff --git a/user.php b/user.php index 75ae947..e69de29 100644 --- a/user.php +++ b/user.php @@ -1,39 +0,0 @@ -prepare("SELECT * FROM users WHERE id = :id"); -$q->bindParam(':id',$id,PDO::PARAM_INT); -$q->execute(); -$requestUser = $q->fetch(); -if(!$requestUser) { - die("go fuck yourself (can't find user)"); // todo: redirect to 404 -} -?> - - - -header(); -?> - -<?php echo $sitename; ?> | <?php echo htmlspecialchars($requestUser["username"]); ?> - -
- -
- -