public static function upload($veeeb23fbd23e52a6a6ff78b9f18cbc4e, $v86536e21993c5a96a4d4c9c9afcc9b17, $vb2ed5fc91c9760886b14c955ac6c82d7, $vb80bb7740288fda1f201890375a60c8f = false) { self::$class_name = __CLASS__; $v6a2a431fe8b621037ea949531c28551d = parent::upload($veeeb23fbd23e52a6a6ff78b9f18cbc4e, $v86536e21993c5a96a4d4c9c9afcc9b17, $vb2ed5fc91c9760886b14c955ac6c82d7, $vb80bb7740288fda1f201890375a60c8f); $vb1444fb0c07653567ad325aa25d4e37a = regedit::getInstance(); $ve6a7ab42343e8bc9131d89646abcb773 = (int) $vb1444fb0c07653567ad325aa25d4e37a->getVal("//settings/max_img_filesize"); $v79001f389eb5f5185f6945430cb57be1 = (int) ini_get("upload_max_filesize"); $ve6a7ab42343e8bc9131d89646abcb773 = $ve6a7ab42343e8bc9131d89646abcb773 < $v79001f389eb5f5185f6945430cb57be1 ? $ve6a7ab42343e8bc9131d89646abcb773 : $v79001f389eb5f5185f6945430cb57be1; $v11b4278c7e5a79003db77272c1ed2cf5 = (int) filesize("." . $v6a2a431fe8b621037ea949531c28551d); $ve6a7ab42343e8bc9131d89646abcb773 = (int) $ve6a7ab42343e8bc9131d89646abcb773 * 1024 * 1024; if ($ve6a7ab42343e8bc9131d89646abcb773 > 0) { if ($ve6a7ab42343e8bc9131d89646abcb773 < $v11b4278c7e5a79003db77272c1ed2cf5) { unlink("." . $v6a2a431fe8b621037ea949531c28551d); return false; } } $vcaf9b6b99962bf5c2264824231d7a40c = @getimagesize("." . $v6a2a431fe8b621037ea949531c28551d); if (!is_array($vcaf9b6b99962bf5c2264824231d7a40c)) { @unlink("." . $v6a2a431fe8b621037ea949531c28551d); return false; } $vf9a3266ad8c9b1c7135d1e0d787fe91b = (bool) mainConfiguration::getInstance()->get("kernel", "jpg-through-gd"); if ($vf9a3266ad8c9b1c7135d1e0d787fe91b) { list(, , $v566bbee0f961ad71b54c3c2fd36db053) = array_values(getPathInfo("." . $v6a2a431fe8b621037ea949531c28551d)); $v566bbee0f961ad71b54c3c2fd36db053 = strtolower($v566bbee0f961ad71b54c3c2fd36db053); if ($v566bbee0f961ad71b54c3c2fd36db053 == 'jpg' || $v566bbee0f961ad71b54c3c2fd36db053 == 'jpeg') { $v9b207167e5381c47682c6b4f58a623fb = imagecreatefromjpeg("." . $v6a2a431fe8b621037ea949531c28551d); if ($v9b207167e5381c47682c6b4f58a623fb) { imagejpeg($v9b207167e5381c47682c6b4f58a623fb, "." . $v6a2a431fe8b621037ea949531c28551d, 100); imagedestroy($v9b207167e5381c47682c6b4f58a623fb); } else { return false; } } } if (self::$useWatermark) { self::addWatermark("./" . $v6a2a431fe8b621037ea949531c28551d); } self::setWatermarkOff(); return $v6a2a431fe8b621037ea949531c28551d; }