Skip to content

Commit 7f65c67

Browse files
committed
Initial documentation
1 parent a291929 commit 7f65c67

File tree

4 files changed

+81
-1
lines changed

4 files changed

+81
-1
lines changed

README.md

+41-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,44 @@
11
phpMyReservation
22
================
33

4-
Fork of OleJohn's booking system
4+
Fork of [OleJon's](http://www.olejon.net) wonderful timeslot booking system for PHP and MySQL hosts.
5+
6+
7+
####Features
8+
Fast, easy & smooth
9+
User login
10+
Browse through all weeks of the year
11+
A price per reservation can be set
12+
Usage is stored automatically
13+
User control panel
14+
Advanced admin control panel
15+
Receive reservation reminders by email
16+
17+
####Requirements
18+
19+
#####Server:
20+
Web server with PHP
21+
MySQL
22+
23+
#####Client:
24+
A modern browser
25+
26+
####Screenshots
27+
![1.0 reservation screen](doc/demo.png "1.0 reservation screen")
28+
![1.0 signup screen](doc/signup.png "1.0 signup screen")
29+
30+
####Demo
31+
[This is a hosted demo of 1.0 of the project](http://www.olejon.net/code/phpmyreservation/?demo)
32+
33+
####Installation
34+
1. Clone this repo
35+
2. Import phpmyreservation.sql into mysql or use phpMyAdmin
36+
3. Edit config.php. Secret code is 1234 by default. Set to 0 to disable.
37+
4. Move the phpmyreservation folder to where it can be reached through your web server
38+
5. If you chose to enable reservation reminders in config.php, read this to make it work
39+
6. Open phpMyReservation in a web browser. If you have done everything correctly, you should see the login page
40+
7. Create a new user. The first created user will get admin rights
41+
8. Set the price per reservation in the control panel (just set to 0 if usage is free)
42+
43+
####Reservation reminders
44+
[Email reminders are documented here](doc/ReservationReminders.md)

doc/ReservationReminders.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
phpMyReservation Email Reminders
2+
================
3+
[Documentation from Google Code site](http://code.google.com/p/phpmyreservation/wiki/ReservationReminders)
4+
5+
If you choose to enable reservation reminders in config.php, read the following carefully to make it work.
6+
7+
Reservation reminders will be sent by email to those who have reservations the current day and have enabled reservation reminders in the control panel. The script that sends out reservation reminders is reminders.php, and the idea is to run the script daily (early in the morning).
8+
9+
There are different ways to to this, depending on operating system etc.
10+
11+
If you have access to the command line on the web server and the web server is running Linux (which it most likely does), you can do this:
12+
13+
1) Log in to the command line on the web server
14+
15+
2) Run these commands:
16+
17+
export EDITOR=nano
18+
crontab -e
19+
20+
3) Add this line
21+
22+
0 6 * * * php /full/path/to/phpmyreservation/reminders.php
23+
24+
This will run the script daily, at 06:00. Make sure that you use the correct path.
25+
26+
4) Save with Ctrl+O and then return, exit with Ctrl+X
27+
28+
If you don't have access to the command line:
29+
30+
If you don't have access to the command line, your web host provider may have a control panel or similar where you can add scheduled events.
31+
32+
If you have another computer/server that is running 24/7, you can set it up to run the reminders.php script daily over HTTP (for example using cron & cURL).
33+
34+
To run the script over HTTP you must supply the code that you set in config.php (to avoid that everyone is able to run the script). You must run it like this:
35+
36+
http://your.server/phpmyreservation/reminders.php?code=CODE
37+
38+
If it doesn't work
39+
40+
There are several reasons why this may not work. Your web server may be unable to send emails (depending on your web host provider). If you're running phpMyReservation on domain.com, you should edit config.php to use whatever@domain.com (an email address that you own) as sender for reservation reminders, or else it may not work (rejected or marked as spam).

doc/demo.png

128 KB
Loading

doc/signup.png

136 KB
Loading

0 commit comments

Comments
 (0)