function DebugMessage($message, $file = '', $line = '') { if (is_object($this->phpThumbObject)) { return $this->phpThumbObject->DebugMessage($message, $file, $line); } return false; }
/** * * @param string $message * @param string $file * @param string $line * @return bool */ function DebugMessage($message, $file = '', $line = '') { if (class_exists('\\mnCMS\\Service\\LogService')) { \mnCMS\Service\LogService::debug($message . ' file:' . $file . ' line:' . $line); } return parent::DebugMessage($message, $file, $line); }
} foreach ($_GET as $key => $value) { switch ($key) { case 'src': // allowed break; default: // all other parameters will cause some processing, // therefore cannot pass through original image unmodified $CanPassThroughDirectly = false; $UnAllowedGET[] = $key; break; } } if (!empty($UnAllowedGET)) { $phpthumb->DebugMessage('Cannot pass through directly because $_GET[' . implode(';', array_unique($UnAllowedGET)) . '] are set', __FILE__, __LINE__); } //////////////////////////////////////////////////////////////// // Debug output, to try and help me diagnose problems if (@$_GET['phpthumbDebug'] == '4') { $phpthumb->phpthumbDebug(); } //////////////////////////////////////////////////////////////// function SendSaveAsFileHeaderIfNeeded() { global $phpthumb; if (@$_GET['down']) { $downloadfilename = ereg_replace('[/\\:\\*\\?"<>|]', '_', $_GET['down']); if (phpthumb_functions::version_compare_replacement(phpversion(), '4.1.0', '>=')) { $downloadfilename = trim($downloadfilename, '.'); }