示例#1
0
 public function API_seccode()
 {
     @header("Expires: -1");
     @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
     @header("Pragma: no-cache");
     iPHP::loadClass("Seccode");
     $_GET['pre'] && ($pre = iS::escapeStr($_GET['pre']));
     iSeccode::run($pre);
 }
示例#2
0
 private static function __background()
 {
     self::$im = imagecreatetruecolor(self::$config['width'], self::$config['height']);
     for ($i = 0; $i < 3; $i++) {
         $start[$i] = rand(200, 255);
         $end[$i] = rand(100, 200);
         $step[$i] = ($end[$i] - $start[$i]) / self::$config['width'];
         self::$color[$i] = $start[$i];
     }
     for ($i = 0; $i < self::$config['width']; $i++) {
         $color = imagecolorallocate(self::$im, self::$color[0], self::$color[1], self::$color[2]);
         imageline(self::$im, $i, 0, $i, self::$config['height'], $color);
         self::$color[0] += $step[0];
         self::$color[1] += $step[1];
         self::$color[2] += $step[2];
     }
     self::$color[0] -= 20;
     self::$color[1] -= 20;
     self::$color[2] -= 20;
 }
示例#3
0
 public static function get_seccode()
 {
     iPHP::loadClass("Seccode");
     iSeccode::run('iACP');
     exit;
 }
示例#4
0
 public function API_seccode()
 {
     iPHP::loadClass("Seccode");
     $_GET['pre'] && ($pre = iS::escapeStr($_GET['pre']));
     iSeccode::run($pre);
 }