예제 #1
0
파일: index.php 프로젝트: gorvelyfab/pla
define("PROJECT", "phpLiteAdmin");
define("VERSION", "1.9.7-dev");
define("PAGE", basename(__FILE__));
define("FORCETYPE", false);
//force the extension that will be used (set to false in almost all circumstances except debugging)
define("SYSTEMPASSWORD", $password);
// Makes things easier.
define('PROJECT_URL', 'https://bitbucket.org/phpliteadmin/public');
define('DONATE_URL', 'http://phpliteadmin.christosoft.de/donate.php');
define('VERSION_CHECK_URL', 'https://phpliteadmin.christosoft.de/current_version.php');
define('PROJECT_BUGTRACKER_LINK', '<a href="https://bitbucket.org/phpliteadmin/public/issues?status=new&status=open" target="_blank">https://bitbucket.org/phpliteadmin/public/issues?status=new&status=open</a>');
define('PROJECT_INSTALL_LINK', '<a href="https://bitbucket.org/phpliteadmin/public/wiki/Installation" target="_blank">https://bitbucket.org/phpliteadmin/public/wiki/Installation</a>');
// Resource output (css and javascript files)
// we get out of the main code as soon as possible, without inizializing the session
if (isset($_GET['resource'])) {
    Resources::output($_GET['resource']);
    exit;
}
// don't mess with this - required for the login session
ini_set('session.cookie_httponly', '1');
session_start();
if ($debug == true) {
    ini_set("display_errors", 1);
    error_reporting(E_STRICT | E_ALL);
} else {
    @ini_set("display_errors", 0);
}
// start the timer to record page load time
$pageTimer = new MicroTimer();
// load language file
if ($language != 'en') {