Requirments and Tested Platforms
N27 has been tested on the following platforms:
- Linux - PHP 5.2.3 and MySQL 5.0.27
If you have tested N27 Booking on another platform, please contact me so I can update this section accordingly.
Installation
Create Database - create a new database and run the MySQL.sql script located in /includes/sql.
Upload all files to your web server. All configuration is done in a single file - /includes/application_top.php. Edit this file using a text editor or similar and configure the following settings as required:
- Site Name - The name of the booking website.
LINE #9 - define('SITE_NAME', 'My Booking Website') ;
- Document Root - The location of the site installation files relative to the root of the site. For example, if the installation is located in www.domain.com/test/, enter /test/ (including the trailing slash). If the site is installed at the root of the website, leave this value blank e.g. ''.
LINE #24 - define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT'] . '/test/');
- Domain Name - The domain name to be used to access the booking website. Include trailing slash.
LINE #26 - define('DOMAIN_NAME', 'http://www.yourdomain.com/');
- Scripts Dir - The location of the installation files. This value should be the same as entered for Line #24. Must include start and end slashes.
LINE #30 - define('DIR_WS_SCRIPTS', '/test/');
- Database Server - The MySQL database server e.g. 'localhost'
LINE #145 - define('DB_SERVER', 'localhost');
- Database Username - The user to connect to the DB.
LINE #146 - define('DB_SERVER_USERNAME', 'username');
- Database Password - The password to connect to the DB.
LINE #147 - define('DB_SERVER_PASSWORD', 'password');
- Database Name - The name of the database to connect to.
LINE #148 - define('DB_DATABASE', 'database');
- Booking Time Interval - The length of time of each booking. Recommended: 15, 30 or 60 minutes.
LINE #226 - define('BOOKING_TIME_INTERVAL', '15');
- Min Booking Hour - The start of the booking day - 00-24 hours e.g. 09 for 9AM.
LINE #227 - define('MIN_BOOKING_HOUR', '09');
- Max Booking Hour - The end of the booking day - 00-24 hours e.g. 22 for 10PM.
LINE #228 - define('MAX_BOOKING_HOUR', '22');
- Display Time Interval - Display time - set this to the same value as #226 e.g. '15' for 15 minute intervals.
LINE #232 - define('DISPLAY_TIME_INTERVAL', '15');
- Location Array - Add entrances to this array to match your location requirments. For example, if you required the ability to book 3 seperate locations, the array would read:
LINE #236 -
$location_db_name = array (
'loc1' => 'event_id_location_1',
'loc2' => 'event_id_location_2',
'loc3' => 'event_id_location_3',
);
- Location Display Array - These are the string values that are displayed on the booking site for each location e.g. court 1, court 2 etc. The number of entrances here must match the Location Array above on line #236. For example, if you have 3 entrances there, you should list 3 values here.
LINE #241 -
$location_display = array (
'loc1' => 'Location 1',
'loc2' => 'Location 2',
'loc3' => 'Location 3',
);
Folder Permissions - Set the following folder permissions on the web server.
- /include/sessions - CHMOD 776
- /attachments - CHMOD 776
Login
- Navigate to http://www.yourdomain.com/user_login.php
- Login as username 'administrator' with password 'password'
User and Group Administration
To do.
Advanced Booking Rules
To do.
Booking User Credits
To do.
Booking Confirmation Email
To do.
Bulk Email Users and Groups
To do.
Buddy List Notifications
To do.
Booking Options
To do.
Products and PayPal Integration
To do.