-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.php
28 lines (22 loc) · 924 Bytes
/
common.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
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
ini_set('html_errors', false);
/* Entry point for the monuments api */
require dirname( __FILE__ ) . '/autoloader.php';
require dirname( __FILE__ ) . '/includes/Defaults.php';
//require dirname( dirname( dirname( __FILE__ ) ) ) . '/database.inc';
/* Localization */
require_once( "$tsI18nDir/ToolStart.php" );
$dbStatus = Database::define($dbServer, $dbDatabase, $dbUser,
isset( $toolserver_password )? $toolserver_password : $dbPassword );
if (!$dbStatus) {
die( "Coudn't connect to db! ". mysql_error() );
}
$opts = array(
'domain' => 'MonumentsAPI', // name of your main text-domain here
'globalfunctions' => true, // defines _(), _e() and _g() as shortcut for $I18N->msg( .. )
'suppresserrors' => false, // Krinkle heeft het stukgemaakt
);
$I18N = new TsIntuition( $opts );
header ('Content-type: text/html; charset=utf-8');