$this->width = $info[0];
$this->height = $info[1];
$this->bits = isset($info['bits']) ? $info['bits'] : '';
$this->mime = isset($info['mime']) ? $info['mime'] : '';
if ($this->mime == 'image/gif') {
$this->image = imagecreatefromgif($file);
} elseif ($this->mime == 'image/png') {
$this->image = imagecreatefrompng($file);
imageinterlace($this->image, false);
} elseif ($this->mime == 'image/jpeg') {
$this->image = imagecreatefromjpeg($file);
} elseif ($this->mime == 'image/webp') {
$this->image = imagecreatefromwebp($file);
}
} else {
throw new \Exception('Error: Could not load image ' . $file . '!');
think | { "theme_dir": "ella" } |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | / |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REMOTE_PORT | 39748 |
SCRIPT_FILENAME | /www/wwwroot/biliardimoratti.it/public/index.php |
SERVER_ADMIN | [email protected] |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/biliardimoratti.it/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/biliardimoratti.it/public |
REMOTE_ADDR | 172.71.223.41 |
SERVER_PORT | 80 |
SERVER_ADDR | 209.74.108.18 |
SERVER_NAME | www.biliardimoratti.it |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.biliardimoratti.it Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_CONNECTING_IP | 54.173.214.79 |
HTTP_REFERER | http://www.biliardimoratti.it/ |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 86ba70757afe29b5-IAD |
HTTP_X_FORWARDED_FOR | 54.173.214.79 |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_CONNECTION | Keep-Alive |
HTTP_HOST | www.biliardimoratti.it |
proxy-nokeepalive | 1 |
SCRIPT_URI | http://www.biliardimoratti.it/ |
SCRIPT_URL | / |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711658468.8265 |
REQUEST_TIME | 1711658468 |
UC_CONNECT | mysql |
UC_DBHOST | localhost |
UC_DBUSER | root |
UC_DBPW | root |
UC_DBNAME | ucenter |
UC_DBCHARSET | utf8 |
UC_DBTABLEPRE | `ucenter`.uc_ |
UC_DBCONNECT | 0 |
UC_KEY | ceshi_ss |
UC_API | http://localhost/ucenter |
UC_CHARSET | utf-8 |
UC_IP | |
UC_APPID | 1 |
UC_PPP | 20 |