cache_userapp.php 522 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: cache_userapp.php 24946 2011-10-18 02:54:40Z zhengqingpeng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. function build_cache_userapp() {
  12. $data = array();
  13. foreach(C::t('common_myapp')->fetch_all_by_flag(1) as $myapp) {
  14. $myapp['icon'] = getmyappiconpath($myapp['appid'], $myapp['iconstatus']);
  15. $data[$myapp['appid']] = $myapp;
  16. }
  17. savecache('userapp', $data);
  18. }
  19. ?>