// Otherwise create the thumb image
// begin by getting the details of the original
list($width, $height, $type) = getimagesize($original);
// strip the extension off the image filename (case insensitive)
//$imagetypes = array('/\.gif$/i', '/\.jpg$/i', '/\.jpeg$/i', '/\.png$/i');
//$name = preg_replace($imagetypes, '', basename($original));
// create an image resource for the original
switch ($type) {
case 1:
$source = @ imagecreatefromgif($original);
if (!$source) {
JError::raiseNotice('', JText::_('JW_SIGP_PLG_GIF_IMAGE_PROCESS_FAILED'));
return;
}
break;
case 2:
$source = imagecreatefromjpeg($original);
break;
case 3:
$source = imagecreatefrompng($original);
break;
default:
$source = null;
}
// Bail out if the image resource is not OK
if (!$source) {
JError::raiseNotice('', JText::_('JW_SIGP_PLG_SRC_IMG_CONVERSION_FAILED'));
return;
}
// calculate thumbnails
$thumbnail = self::thumbDimCalc($width, $height, $thb_width, $thb_height, $smartResize);
$thumb_width = $thumbnail['width'];
$thumb_height = $thumbnail['height'];
*
* @return void
*/
public function handleShutdown()
{
// If we reached this step, we are in shutdown handler.
// An exception thrown in a shutdown handler will not be propagated
// to the exception handler. Pass that information along.
$this->canThrowExceptions = false;
$error = $this->system->getLastError();
if ($error && Misc::isLevelFatal($error['type'])) {
// If there was a fatal error,
// it was not handled in handleError yet.
$this->allowQuit = false;
$this->handleError(
$error['type'],
$error['message'],
$error['file'],
$error['line']
);
}
}
/**
* @param Throwable $exception
*
* @return Inspector
*/
private function getInspector($exception)
{
return new Inspector($exception);
}
/**
* Resolves the giving handler.
*
* @param callable|HandlerInterface $handler
*
* @return HandlerInterface
}
// Propagate error to the next handler.
if ($this->platformExceptionHandler) {
call_user_func_array($this->platformExceptionHandler, [&$exception]);
}
}
/**
* Special case to deal with Fatal errors and the like.
*/
public function handleShutdown()
{
$handler = $this->whoopsShutdownHandler;
$error = $this->getLastError();
// Ignore core warnings and errors.
if ($error && !($error['type'] & (E_CORE_WARNING | E_CORE_ERROR))) {
$handler();
}
}
}
Key | Value |
view | item |
Key | Value |
joomla | TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjo0OntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjI6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTcxMTY4OTI2OTtzOjQ6Imxhc3QiO2k6MTcxMTY4OTI2OTtzOjM6Im5vdyI7aToxNzExNjg5MjY5O319czo4OiJyZWdpc3RyeSI7TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjA6e31zOjE0OiIAKgBpbml0aWFsaXplZCI7YjowO3M6OToic2VwYXJhdG9yIjtzOjE6Ii4iO31zOjQ6InVzZXIiO086MjA6Ikpvb21sYVxDTVNcVXNlclxVc2VyIjoxOntzOjI6ImlkIjtpOjA7fXM6MjU6InBsZ19zeXN0ZW1fbGFuZ3VhZ2VmaWx0ZXIiO086ODoic3RkQ2xhc3MiOjE6e3M6ODoibGFuZ3VhZ2UiO3M6NToiZGUtREUiO319fXM6MTQ6IgAqAGluaXRpYWxpemVkIjtiOjA7czo5OiJzZXBhcmF0b3IiO3M6MToiLiI7fQ== |
Key | Value |
USER | swisscitizens |
HOME | /var/www/vhosts/schweizforscht.ch |
SCRIPT_NAME | /index.php |
REQUEST_URI | /projekte/schul-zeit-reisen |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /projekte/schul-zeit-reisen |
REMOTE_PORT | 36564 |
SCRIPT_FILENAME | /var/www/vhosts/schweizforscht.ch/httpdocs/index.php |
SERVER_ADMIN | [no address given] |
CONTEXT_DOCUMENT_ROOT | /var/www/vhosts/schweizforscht.ch/httpdocs |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /var/www/vhosts/schweizforscht.ch/httpdocs |
REMOTE_ADDR | 34.207.178.236 |
SERVER_PORT | 443 |
SERVER_ADDR | 92.51.132.67 |
SERVER_NAME | www.schweizforscht.ch |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.schweizforscht.ch Port 443</address> |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
HTTP_HOST | www.schweizforscht.ch |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
SSL_TLS_SNI | www.schweizforscht.ch |
HTTPS | on |
HTTP_AUTHORIZATION | |
SCRIPT_URI | https://www.schweizforscht.ch/projekte/schul-zeit-reisen |
SCRIPT_URL | /projekte/schul-zeit-reisen |
REDIRECT_STATUS | 200 |
REDIRECT_SSL_TLS_SNI | www.schweizforscht.ch |
REDIRECT_HTTPS | on |
REDIRECT_HTTP_AUTHORIZATION | |
REDIRECT_SCRIPT_URI | https://www.schweizforscht.ch/projekte/schul-zeit-reisen |
REDIRECT_SCRIPT_URL | /projekte/schul-zeit-reisen |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711689269.9638 |
REQUEST_TIME | 1711689269 |