| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/GXMainComponents/ |
Upload File : |
<?php
/* --------------------------------------------------------------
ApplicationCss.inc.php 2019-08-15
Gambio GmbH
http://www.gambio.de
Copyright (c) 2019 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
namespace Gambio\GX;
require_once __DIR__ . '/Application.inc.php';
/**
* Class ApplicationCss
*
* @package Gambio
*/
class ApplicationCss extends Application
{
protected $error = '';
public function run()
{
$this->runActions();
$this->sendHeader();
}
public function runWithoutHeader()
{
$this->runActions();
}
public function errorHandler($errorNumber, $errorMessage, $errorFile, $errorLine)
{
if (!(error_reporting() & $errorNumber)) {
return null; // This error code is not included in error_reporting.
}
$this->error .= str_replace('"', '\"', "[CSS compile error] '$errorMessage' in $errorFile:$errorLine ");
echo '
body:before {
content: "' . $this->error . '";
position: absolute;
background: #FF5722;
color: #fff;
top: 0;
left: 0;
z-index: 100000;
padding: 15px;
}
';
return true; // Don't execute PHP internal error handler.
}
public function errorOccurred()
{
return $this->error !== '';
}
protected function runActions()
{
$this->runGProtector();
self::loadConfig();
$this->defineInitialConstants();
$this->setMemoryLimit(256);
$this->registerErrorHandler();
$this->includeFunctions();
$this->includeWrapperFunctions();
$this->initGXEngine();
$this->setTimezone();
$this->registerAutoloader();
$this->connectToDatabase();
$this->defineConstantsFromDbConfigurationTable();
$this->setCurrentTemplate();
}
protected function registerErrorHandler()
{
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_CORE_ERROR & ~E_CORE_WARNING);
set_error_handler([$this, 'errorHandler']);
}
protected function sendHeader()
{
header('Content-Type: text/css; charset=utf-8');
}
}