LinkProvider/header.php
2018-10-03 11:59:53 -04:00

16 lines
347 B
PHP
Executable File

<?php
require 'header-includes.php';
// Make our PDO database connection which will be used in all scripts
try {
$globaldbh = new PDO("mysql:host=" . DBHOST . ";dbname=" . DBNAME, DBUSER, DBPASS);
} catch (PDOException $e) {
header('Location: error.html');
exit();
}
if ( php_sapi_name() != "cli" ) {
require 'startsession.php';
}