aboutsummaryrefslogtreecommitdiff
path: root/backend/index.php
diff options
context:
space:
mode:
authorhitlerrip <git@hitler.rip>2025-08-02 22:29:54 +0200
committerhitlerrip <git@hitler.rip>2025-08-02 22:29:54 +0200
commit67c3af8f8c9bd363f78fcce0c9d08958503918af (patch)
tree2ca3120b49bfc089fb77d5251301bf0a525d51b0 /backend/index.php
parent6b3e92478de8225ac1d2db9deb448c65d4732fca (diff)
downloadhitler-clicker-67c3af8f8c9bd363f78fcce0c9d08958503918af.tar.gz
hitler-clicker-67c3af8f8c9bd363f78fcce0c9d08958503918af.tar.bz2
hitler-clicker-67c3af8f8c9bd363f78fcce0c9d08958503918af.zip
anon clicks
added api for anonymous clicks
Diffstat (limited to 'backend/index.php')
-rw-r--r--backend/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/index.php b/backend/index.php
index 844e0f8..7de8d0a 100644
--- a/backend/index.php
+++ b/backend/index.php
@@ -15,11 +15,11 @@ 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 NOT NULL DEFAULT '0' , `fromanon` INT(128) unsigned NOT NULL DEFAULT '0' , PRIMARY KEY (`team`) ) ENGINE = InnoDB;");
$query->execute();