20 if (version_compare(PHP_VERSION,
'5.3.0',
'<')) {
21 set_magic_quotes_runtime(0);
24 if (function_exists(
'mb_http_output')) {
25 mb_http_output(
'pass');
32 header(
'Content-type: image/gif');
33 readfile(XOOPS_ROOT_PATH .
'/uploads/blank.gif');
37 include XOOPS_ROOT_PATH .
'/include/functions.php';
38 include_once XOOPS_ROOT_PATH .
'/class/xoopsload.php';
39 include_once XOOPS_ROOT_PATH .
'/class/preload.php';
40 include_once XOOPS_ROOT_PATH .
'/class/logger/xoopslogger.php';
41 include_once XOOPS_ROOT_PATH .
'/class/module.textsanitizer.php';
42 include_once XOOPS_ROOT_PATH .
'/class/database/databasefactory.php';
43 require_once XOOPS_ROOT_PATH .
'/kernel/object.php';
44 require_once XOOPS_ROOT_PATH .
'/class/criteria.php';
49 define(
'XOOPS_DB_PROXY', 1);
58 header(
'Content-type: ' .
$image[0]->getVar(
'image_mimetype'));
59 header(
'Cache-control: max-age=31536000');
60 header(
'Expires: ' . gmdate(
"D, d M Y H:i:s", time() + 31536000) .
'GMT');
61 header(
'Content-disposition: filename=' .
$image[0]->getVar(
'image_name'));
62 header(
'Content-Length: ' . strlen(
$image[0]->getVar(
'image_body')));
63 header(
'Last-Modified: ' . gmdate(
"D, d M Y H:i:s",
$image[0]->getVar(
'image_created')) .
'GMT');
64 echo
$image[0]->getVar(
'image_body');
66 header(
'Content-type: image/gif');