public static function run($pre = null) { extension_loaded('gd') && function_exists('gd_info') or self::$noGD = true; self::$code or self::$code = self::__mkcode(); self::$noGD && (self::$code = 'iCMS'); $name = 'seccode'; $pre && ($name = $pre . '_seccode'); //设定cookie iPHP::set_cookie($name, authcode(self::$code, 'ENCODE')); self::__image(); }
public static function run($pre = null) { extension_loaded('gd') && function_exists('gd_info') or self::$noGD = true; $name = 'seccode'; $pre && ($name = $pre . '_seccode'); if (self::$noGD) { self::icmsChar($name); } else { self::$code or self::$code = self::__mkcode(); iPHP::set_cookie($name, authcode(self::$code, 'ENCODE')); self::__image() or self::icmsChar($name); } }