* Removed unecesery home page * Added PHP Api that provides auth and replaces the json-server for data storage * Added support for alternate geocode-api * Added registration page
14 lines
322 B
Plaintext
14 lines
322 B
Plaintext
<?php
|
|
|
|
$host = 'localhost';
|
|
$dbname = 'ttapi';
|
|
$username = 'ttapi';
|
|
$password = '';
|
|
|
|
try {
|
|
$pdo = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
|
|
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
} catch (PDOException $e) {
|
|
echo "Connection failed: " . $e->getMessage();
|
|
}
|