devilbox/.devilbox/www/htdocs/vendor/phpmemcachedadmin-1.3.0/Library/Bootstrap.php

31 lines
663 B
PHP
Raw Normal View History

2019-03-09 10:09:40 +00:00
<?php
# Headers
header('Content-type: text/html;');
header('Cache-Control: no-cache, must-revalidate');
# Constants declaration
define('CURRENT_VERSION', '1.3.0');
# PHP < 5.3 Compatibility
if (defined('ENT_IGNORE') === false) {
define('ENT_IGNORE', 0);
}
# XSS / User input check
foreach ($_REQUEST as $index => $data) {
$_REQUEST[$index] = htmlentities($data);
}
# Autoloader
function autoloader($class)
{
require_once str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
}
spl_autoload_register('autoloader');
# Loading ini file
$_ini = Library_Configuration_Loader::singleton();
# Date timezone
date_default_timezone_set('Europe/Paris');