-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
59 lines (48 loc) · 3.71 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
error_reporting(0);
define('DEBUG',FALSE); // debug mode, TRUE to turn on
define('ERROR',0);
$systemname="OSBS";
$systemURL=""; // github.com/mmmaly/OpenSourceBikeShare";
$systemlang="en_EN"; // default language code such as en_EN, de_DE etc. Language changes auutomatically!
$systemlat="00.000"; // default map center point - latitude
$systemlong="0.00"; // default map center point - longitude
$systemzoom="15"; // default map zoom
$systemrules=""; // example.com/rules.htm";
$systememail=""; // system From: email address for sending emails
$forcestack="0"; // 0 = allow renting any bike at stand, 1 = allow renting last bicycle returned only (top of stack)
$watches["email"]=""; // notification email for notifications such as notes etc., blank if notifications not required
$watches["stack"]="1"; // 0 - do not watch stack, 1 - notify if other than the top of the stack bike is rented from a stand (independent from forcestack)
$watches["longrental"]="24"; // in hours (bike rented for more than X h)
$watches["timetoomany"]="1"; // in hours (high number of rentals by one person in a short time)
$watches["numbertoomany"]="5"; // if userlimit+numbertooomany reached in timetoomany, then notify
$watches["freetime"]="90"; // in minutes (rental changes from free to paid after this time and $credit["rent"] is deducted)
$watches["flatpricecycle"]="45"; // in minutes (uses flat price $credit["rent"] every $watches["flatpricecycle"] minutes after first paid period, i.e. $watches["freetime"]*2)
$watches["doublepricecycle"]="60"; // in minutes (doubles the rental price $credit["rent"] every $watches["doublepricecycle"] minutes after first paid period, i.e. $watches["freetime"]*2)
$watches["doublepricecyclecap"]="3"; // number of cycles after doubling of rental price $credit["rent"] is capped and stays flat (but reached cycle multiplier still applies)
$limits["registration"]="0"; // number of bikes user can rent after he registered: 0 = no bike, 1 = 1 bike etc.
$limits["increase"]="0"; // allow more bike rentals in addition to user limit: 0 = not allowed, otherwise: temporary limit increase - number of bikes
$credit["enabled"]="1"; // 0 = no credit system, 1 = apply credit system rules and deductions
$credit["currency"]="eur"; // currency used for credit system
$credit["min"]="0"; // minimum credit required to allow any bike operations
$credit["rent"]=".39"; // rental fee (after $watches["freetime"])
$credit["pricecycle"]="1"; // 0 = disabled, 1 = charge flat price $credit["rent"] every $watches["flatpricecycle"] minutes, 2 = charge doubled price $credit["rent"] every $watches["doublepricecycle"] minutes
$credit["longrental"]="6"; // long rental fee ($watches["longrental"] time)
$credit["limitincrease"]="10"; // credit needed to temporarily increase limit, applicable only when $limits["increase"]>0
$credit["violation"]="5"; // credit deduction for rule violations (applied by admins)
$notifyuser="0"; // 0 = no notication send to users (when admins get notified), 1 = notification messages sent to users as well
/*** Database ***/
$dbserver="";
$dbuser="";
$dbpassword="";
$dbname="";
/*** Email ***/
$email["smtp"]=""; // SMTP mail server for notifications
$email["user"]=""; // mail server username
$email["pass"]=""; // mail server password
/*** SMS related ***/
$connectors["sms"]="textmagic.com"; // API connector used for SMS operations (connectors/ directory); empty to disable SMS system, "loopback" to simulate dummy gateway API for testing
$countrycode="31"; // international dialing code (country code prefix), no plus sign
/*** geoJSON files - uncomment line below to use, any number of geoJSON files can be included ***/
// $geojson[]="http://example.com/poi.json"; // example geojson file with points of interests to be displayed on the map
?>