DiscuzX/upload/source/function/cache/cache_myapp.php

25 lines
548 B
PHP
Raw Normal View History

2016-12-15 08:20:54 -05:00
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: cache_myapp.php 24946 2011-10-18 02:54:40Z zhengqingpeng $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
function build_cache_myapp() {
$data = array();
foreach(C::t('common_myapp')->fetch_all_by_flag(-1, '!=') as $myapp) {
$myapp['icon'] = getmyappiconpath($myapp['appid'], $myapp['iconstatus']);
$data[$myapp['appid']] = $myapp;
}
savecache('myapp', $data);
}
?>