diff options
author | hitlerrip <git@hitler.rip> | 2025-08-02 22:20:13 +0200 |
---|---|---|
committer | hitlerrip <git@hitler.rip> | 2025-08-02 22:20:13 +0200 |
commit | 6b3e92478de8225ac1d2db9deb448c65d4732fca (patch) | |
tree | b151b92057319bdfee6a247a144374540c6f50f4 | |
parent | 6fea1fa2b9e8ae03c36c9088995ac4ac4b09d070 (diff) | |
download | hitler-clicker-6b3e92478de8225ac1d2db9deb448c65d4732fca.tar.gz hitler-clicker-6b3e92478de8225ac1d2db9deb448c65d4732fca.tar.bz2 hitler-clicker-6b3e92478de8225ac1d2db9deb448c65d4732fca.zip |
anon clicks
- changed plans and simply added a variable called "fromanon" to each
team that tracks anonymous clicks
-rw-r--r-- | backend/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/index.php b/backend/index.php index dc97812..844e0f8 100644 --- a/backend/index.php +++ b/backend/index.php @@ -15,13 +15,13 @@ try { }; /* +*/ $query = $pdo->prepare("DROP TABLE `hitlerclicker`.`stats`"); $query->execute(); $query = $pdo->prepare("DROP TABLE `hitlerclicker`.`users`"); $query->execute(); -*/ -$query = $pdo->prepare("CREATE TABLE IF NOT EXISTS `hitlerclicker`.`stats` ( `team` VARCHAR(256) NOT NULL DEFAULT uuid() , `clicks` INT(128) unsigned zerofill NOT NULL DEFAULT '0', PRIMARY KEY (`team`) ) ENGINE = InnoDB;"); +$query = $pdo->prepare("CREATE TABLE IF NOT EXISTS `hitlerclicker`.`stats` ( `team` VARCHAR(256) NOT NULL DEFAULT uuid() , `clicks` INT(128) unsigned NOT NULL DEFAULT '0' , `fromanon` INT(128) unsigned NOT NULL DEFAULT '0' , PRIMARY KEY (`team`) ) ENGINE = InnoDB;"); $query->execute(); $query = $pdo->prepare("CREATE TABLE IF NOT EXISTS `hitlerclicker`.`users` ( `name` VARCHAR(256) NOT NULL DEFAULT uuid() , `password` VARCHAR(256) NOT NULL , `token` VARCHAR(256) NOT NULL DEFAULT uuid() , `team` VARCHAR(256) NOT NULL DEFAULT 'axis' , `clicks` INT(128) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`name`) ) ENGINE = InnoDB;"); $query->execute(); |