$uniacid, ); } else { $cache_lastaccount['webapp'] = $uniacid; } cache_write($cache_key, $cache_lastaccount); isetcookie('__uniacid', $uniacid, 7 * 86400); isetcookie('__switch', $_GPC['__switch'], 7 * 86400); return true; } function webapp_can_create($uid) { if(user_is_founder($uid)) { return true; } $data = permission_user_account_num($uid); return isset($data['webapp_limit']) && $data['webapp_limit'] > 0; }