The Xinchejian payment/door/membership system! Allows members to register their (cash) payment and receive a password. This password can be used to open the door. Once you open the door, your device may access members' Wi-Fi.
There are three entry points:
index.php
opens the door if the MAC is known, else redirects toindex.html
for PIN, which POSTs toopen.php
and redirects towelcomeback.html
submit.html
for submitting a new payment, POSTs tosubmit.php
and finally redirects towelcome.html
admin.php
for payment verification; callsverify.php
using XHR
- Pay money in envelope, write name on it
- Scan the QR code at the box
- Fill in name/email and payment
- Get email with code for door
The SQLite DB schema create script can be found in db.sql
.
- Cronjob for membership reminders DONE:
checkpaid.php
- Need "Access denied" page DONE:
accessdenied.html
- Cronjob for DB backups
- Push-to-deploy DONE: see comment in #37
- libapache2-mod-php5
- php5-sqlite