public static function watermark($ext, $frp) { if (self::$watermark) { $allow_ext = array('jpg', 'jpeg', 'png'); self::$watermark_config['allow_ext'] && ($allow_ext = explode(',', self::$watermark_config['allow_ext'])); if (in_array($ext, $allow_ext)) { iPHP::LoadClass('Pic'); iPic::init(self::$watermark_config); iPic::watermark($frp); } } }
public static function init($config) { self::$config = $config; self::$watermark = iPHP_APP_CONF; }