Simple website with some JavaScript games.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 
jrtechs 1eeeec9bc2 Replaced mysql dependency with sqlite před 3 roky
RepoJS Updated to place the right color. před 7 roky
games Replaced mysql dependency with sqlite před 3 roky
includes Replaced mysql dependency with sqlite před 3 roky
nbproject added zombie game to games folder před 8 roky
php_docker Replaced mysql dependency with sqlite před 3 roky
user Replaced mysql dependency with sqlite před 3 roky
.gitignore added zombie game to games folder před 8 roky
Dockerfile Modified docker file to make it work with infrastructure docker compose před 5 roky
LICENSE Create LICENSE před 7 roky
README.md Replaced mysql dependency with sqlite před 3 roky
about.php Refactored syntax style of project před 7 roky
admin.php Refactored syntax style of project před 7 roky
club_connect.php Replaced mysql dependency with sqlite před 3 roky
docker-compose.yml Replaced mysql dependency with sqlite před 3 roky
games.php Refactored syntax style of project před 7 roky
index.php Refactored syntax style of project před 7 roky
site.conf Created docker compose script to run application locally on port 8080 před 5 roky

README.md

Club-Panda

A simple website with some JavaScript Games

Preview

Preview site here: https://clubpanda.jrtechs.net

Contributing

How to submit a PR

  1. Fork this repo.
  2. Checkout your fork.
  3. Make changes and commit them to your fork.
  4. Hit the button that says "Submit Pull Request" on your forked repo.

SQL Lite DB Initialization

sqlite3 clubpanda.sqlite

CREATE TABLE scores (
    score_id INTEGER PRIMARY KEY AUTOINCREMENT,
  game INTEGER NOT NULL,
  user_id mediumint(9) NOT NULL,
  score mediumint(9) NOT NULL
);


CREATE TABLE users (
  user_id INTEGER PRIMARY KEY AUTOINCREMENT,
  first_name varchar(20) NOT NULL,
  last_name varchar(40) NOT NULL,
  user_name varchar(60) NOT NULL,
  pass char(40) NOT NULL,
  registration_date datetime NOT NULL,
  admin tinyint(1) NOT NULL
);

select score, users.user_name username from scores  inner join users on users.user_id=scores.user_id where game = '1' order by score desc limit 20

.exit

Notes on php sqlite documentation: https://www.php.net/manual/en/sqlite3.construct.php