This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
emergencysite/ess-include.php

10 lines
442 B
PHP
Raw Normal View History

2013-08-18 22:14:09 +00:00
<?php
//Handle cloudflare
//(should be improved if possible)
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
}
define('ESS_SERVERSIDE_LOCATION', dirname(__FILE__) . '/');
require_once(ESS_SERVERSIDE_LOCATION . 'ess-settings.php');
require_once(ESS_SERVERSIDE_LOCATION . 'lib/ess-classes.php');
require_once(ESS_SERVERSIDE_LOCATION . 'lib/ess-db_' . ESS_DB_TYPE . '.php');