webapp.mod.php 246 B

123456789101112
  1. <?php
  2. defined('IN_IA') or exit('Access Denied');
  3. function webapp_can_create($uid) {
  4. if(user_is_founder($uid)) {
  5. return true;
  6. }
  7. $data = permission_user_account_num($uid);
  8. return isset($data['webapp_limit']) && $data['webapp_limit'] > 0;
  9. }