seccode.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /*
  3. [UCenter] (C)2001-2099 Comsenz Inc.
  4. This is NOT a freeware, use is subject to license terms
  5. $Id: seccode.php 1059 2011-03-01 07:25:09Z monkey $
  6. */
  7. !defined('IN_UC') && exit('Access Denied');
  8. class control extends base {
  9. function __construct() {
  10. $this->control();
  11. }
  12. function control() {
  13. parent::__construct();
  14. $authkey = md5(UC_KEY.$_SERVER['HTTP_USER_AGENT'].$this->onlineip);
  15. $this->time = time();
  16. $seccodeauth = getgpc('seccodeauth');
  17. $seccode = $this->authcode($seccodeauth, 'DECODE', $authkey);
  18. @header("Expires: -1");
  19. @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
  20. @header("Pragma: no-cache");
  21. include_once UC_ROOT.'lib/seccode.class.php';
  22. $code = new seccode();
  23. $code->code = $seccode;
  24. $code->type = 0;
  25. $code->width = 70;
  26. $code->height = 21;
  27. $code->background = 0;
  28. $code->adulterate = 1;
  29. $code->ttf = 1;
  30. $code->angle = 0;
  31. $code->color = 1;
  32. $code->size = 0;
  33. $code->shadow = 1;
  34. $code->animator = 0;
  35. $code->fontpath = UC_ROOT.'images/fonts/';
  36. $code->datapath = UC_ROOT.'images/';
  37. $code->includepath = '';
  38. $code->display();
  39. }
  40. }
  41. ?>