webapp.account.class.php 839 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. class WebappAccount extends WeAccount {
  8. protected $tablename = 'account_webapp';
  9. protected $menuFrame = 'account';
  10. protected $type = ACCOUNT_TYPE_WEBAPP_NORMAL;
  11. protected $typeSign = WEBAPP_TYPE_SIGN;
  12. protected $typeName = 'PC';
  13. protected $typeTempalte = '-webapp';
  14. public function checkIntoManage() {
  15. if (empty($this->account) || (!empty($this->account['account']) && $this->account['type'] != ACCOUNT_TYPE_WEBAPP_NORMAL && !defined('IN_MODULE'))) {
  16. return false;
  17. }
  18. return true;
  19. }
  20. protected function getAccountInfo($acid) {
  21. $account = table('account')->getWebappAccount($acid);
  22. return $account;
  23. }
  24. }