public function toggleDebug()
 {
     $ECCINI = ECCINI::instance();
     $ECCDebug = new ECCDebug();
     if ($ECCDebug->getDebug()) {
         /*
          * Set debug off with ECCINI write method
          */
     } else {
         /*
          * Set debug on with ECCINI write method
          */
     }
     ECCSystem::redirectToURI('/admin/settings/');
 }
Exemplo n.º 2
0
<?php

if (version_compare(PHP_VERSION, '5.4') < 0) {
    print "<h1>Unsupported PHP version " . PHP_VERSION . "</h1>";
    print "<p>EVE Corp Center does not run with PHP version lower than 5.4.</p>" . "<p>For more information about supported software please visit " . "<a href=\"http://www.evecorpcenter.com\" >EVE Corp Center Website</a></p>";
    exit;
}
if (!ini_get("date.timezone")) {
    date_default_timezone_set("UTC");
}
require_once 'autoload.php';
use kernel\classes\DB\ECCPdo;
use kernel\classes\ECCDebug;
use kernel\classes\ECCINI;
$ECCDebug = new ECCDebug();
if (ECCINI::exist()) {
    if (!$ECCDebug->getDebug()) {
        ini_set("display_errors", 0);
    }
} else {
    ini_set("display_errors", 0);
}
try {
    if (!ECCINI::exist()) {
        throw new PDOException('ECCIni required');
    }
    $ini = ECCINI::instance();
    $infos = $ini->getSection('database');
    $host = $infos['host'];
    $port = $infos['port'];
    $dbname = $infos['dbname'];
 private function loadDefaultTheme()
 {
     $this->theme = new Twig_Loader_Filesystem('themes/default16');
     $this->twig = new Twig_Environment($this->theme, $this->twigParams);
     $ECCDebug = new ECCDebug();
     if ($ECCDebug->getDebug()) {
         $this->twig->addExtension(new \Twig_Extension_Debug());
     }
     $this->twig->addExtension(new Twig_Extension_Optimizer());
 }