version.php 543 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. [UCenter] (C)2001-2099 Comsenz Inc.
  4. This is NOT a freeware, use is subject to license terms
  5. $Id: user.php 753 2008-11-14 06:48:25Z cnteacher $
  6. */
  7. !defined('IN_UC') && exit('Access Denied');
  8. class versionmodel {
  9. var $db;
  10. var $base;
  11. function __construct(&$base) {
  12. $this->versionmodel($base);
  13. }
  14. function versionmodel(&$base) {
  15. $this->base = $base;
  16. $this->db = $base->db;
  17. }
  18. function check() {
  19. $data = $this->db->result_first("SELECT v FROM ".UC_DBTABLEPRE."settings WHERE k='version'");
  20. return $data;
  21. }
  22. }
  23. ?>