web based game
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
applib
config
core
db
docker
images
include
language
lib
lightbox
log
scripts
skins/default
.gitignore
README.md
admin.php
berlinske_novinky.php
error404.php
favicon.ico
forum.php
frame_akcni_menu.php
frame_mapa.php
frame_menu.php
help.php
hlaseni.php
index.php
info.php
intro.php
lightbox.js
news.php
phpinfo.php
pngfix_map.js
posta.php
prepocet.php
profil.php
registrace.php
svet.php
test.php
zebricky.php

README.md

berlingame

web based game

install

install apache, PHP a MySQL

change DB connection settings in config/config.php

install DB scripts from db/install.sql

allow write to directories log, include (chmod -R 777 log, chmod -R 777 log)

run

just register and play. In database is one admin account and one player account.

login: admin password: heslo

login player password: heslo

If you want to do "midnight's calclulation" of new turns, just run script

prepocet.php?heslo=heslo

(if you want to run it again, you will have to delete file log/prepocet.second.lock)

Enjoy!

ABOUT CODE

This was one of my first web pages, so it is almost example of "how not to code". There will be warnings from PHP, weird code constructs, names of functions in Czech, frames, multiple code entries, ... You will see run of hundreds DB queries on single page reload and much more.

I quickly tried to fix all major troubles which blocked working in newer version of PHP, but there will definitely remain plenty of bugs.