-
Notifications
You must be signed in to change notification settings - Fork 1
Create the scripts that will show info around the bus
#Create the databases and copy the scripts in order to enable info around the bus point
First, open phpmyadmin and submit the sql statments which are located in the file https://github.com/ellak-monades-aristeias/mult_bus/blob/master/src/mysql_scripts/create_tables_opeshift2.sql.
Then, open the user database and add a new user with a password. In what follows we use id=1, pass=1234.
Afterwards, copy the files below to the openshift root directory:
- https://github.com/ellak-monades-aristeias/mult_bus/blob/master/src/php_scripts/map.php
- https://github.com/ellak-monades-aristeias/mult_bus/blob/master/src/php_scripts/delete_place.php
- https://github.com/ellak-monades-aristeias/mult_bus/blob/master/src/php_scripts/insert_place.php
These files must be on the same server as the files form https://github.com/ellak-monades-aristeias/mult_bus/wiki/Create-a-server-that-will-store-the-GPS-coordinates].
Go to the location servername/insert_place.php. Enter the user id and pass from above (1 and 1234). In the new page, enter the title, a description (optional), an image (optional) and the GPS coordinates of the point. Whenever the bus is close to this location, the location will be visible on the map.