-
Notifications
You must be signed in to change notification settings - Fork 0
Installation: Receiver Server
The receiver is(and will be) the smallest, most basic piece of this system. It is intended to run anywhere, so its requirements are low: PHP(and its req's) and and email server are all you need. Even on a cheap fon router, or old PDA these can be found.
- PHP5
- Email server
- And of course, internet access.
Drop the 3 files below into the same directory on your server(packages will be available):
- receiver.php
- functions.php
- emc_config.php
Should be self explanatory, but currently only the following variables, when changed, have any effect:
-
$TRACKING = 1; //Change to 0 to not save any location information outside of what is posted to the outside
-
$MSG_BODY = ""; //Create a message body for services that would use one. Use the following variables in the message
- %location% - Inserts your current location, coordinates from your GPS device
- %phone% - Inserts your phone number, so people receiving your distress signal can contact you
- %map% - Inserts a combination of your location and Map API so others can easily see where you are on a map.
-
$SENDTO = ''; // Change to a comma-separated list of email addresses. These are the addresses where the distress signal will be sent. Currently, you can post to Facebook and Twitter by using email.
-
$FROM = ''; // The address your email will come from
-
$SUBJECT = ''; // email subject. If posting to a service via email, this will be what will post usually.
-
$PHONE = ''; // Your phone or contact information
-
$MAP_API = ; // Choose a map api from the list at the top of emc_config.php, or stick your own in. Remember, use %location% where you want the coordinates to appear