-
Notifications
You must be signed in to change notification settings - Fork 10
/
header.php
31 lines (22 loc) · 895 Bytes
/
header.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
<?php
// **************************************************************************
//
// This file will setup all objects required by the server (e.g. a database
// connection).
//
date_default_timezone_set('UTC');
require_once 'lib/KLogger.php';
$log = new KLogger ( "log" , KLogger::DEBUG );
$file_db = new PDO('sqlite:db/baker.sqlite3');
$file_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
require_once 'tables.php';
require_once 'functions.php';
$log->LogInfo("");
$log->LogInfo("===vvv=============== Received request ================vvv===");
$log->LogInfo($_SERVER["REQUEST_URI"]);
$log->LogInfo("GET " . var_export($_GET, true));
$log->LogInfo("POST " . var_export($_POST, true));
$log->LogInfo("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
$app_id = $_POST['app_id'];
$user_id = $_POST['user_id'];
?>