Пример #1
0
 /**
  * @return cropInterface
  * @param bool $debug
  * @desc Class initializer
  */
 function cropInterface($debug = false)
 {
     parent::canvasCrop($debug);
     $this->img = array();
     $this->crop = array();
     $this->useFilter = false;
     $agent = trim($_SERVER['HTTP_USER_AGENT']);
     if ((stristr($agent, 'wind') || stristr($agent, 'winnt')) && (preg_match('|MSIE ([0-9.]+)|', $agent) || preg_match('|Internet Explorer/([0-9.]+)|', $agent))) {
         $this->useFilter = true;
     } else {
         $this->useFilter = false;
     }
     $this->setResizing();
     $this->setCropMinSize();
 }