%PDF- %PDF-
Direktori : /var/www/adminer/ |
Current File : //var/www/adminer/index.php |
<?php //ob_start(); error_reporting(E_ALL); include "sqlite-login.php"; function adminer_object() { // required to run any plugin include_once "./plugins/plugin.php"; // autoloader foreach (glob("plugins/*.php") as $filename) { include_once "./$filename"; } $plugins = array( // specify enabled plugins here new AdminerEditCalendar, new AdminerLoginSqlite ); /* It is possible to combine customization and plugins: class AdminerCustomization extends AdminerPlugin { } return new AdminerCustomization($plugins); */ return new AdminerPlugin($plugins); } // include original Adminer or Adminer Editor //include "./adminer-4.7.0.php"; include "./adminer-4.8.1.php"; //$ret = ob_get_clean(); /*$gz = false; foreach(headers_list() as $h) { if(stristr($h, "content-encoding")) $gz = true; } if(!$gz) { // Gzip/Deflate/Bzip2 compression if(stristr($_SERVER["HTTP_ACCEPT_ENCODING"], "bzip2")) { $ret = bzcompress($ret, 9); header("Content-Encoding: bzip2"); } elseif(stristr($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip")) { $ret = gzencode($ret, 9); header("Content-Encoding: gzip"); } elseif (stristr($_SERVER["HTTP_ACCEPT_ENCODING"], "deflate")) { $ret = gzdeflate($ret, 9); header("Content-Encoding: deflate"); } }*/ /*header("Content-length: ".strlen($ret)); echo $ret;*/ ?>