<?php /** * 应用 >> 安米手机客户端 >> 更新缓存 * * @author 谢建平 <*****@*****.**> * @copyright 2012-2014 Appbyme * @license http://opensource.org/licenses/LGPL-3.0 */ if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); } set_time_limit(0); require_once dirname(__FILE__) . '/appbyme.class.php'; Appbyme::init(); $baseUrl = rawurldecode(cpurl()); $step = max(1, intval($_GET['step'])); $cleanImage = true; showsubmenusteps('nav_updatecache', array(array('nav_updatecache_confirm', $step == 1), array('nav_updatecache_verify', $step == 2), array('nav_updatecache_completed', $step == 3))); showtips(Appbyme::lang('mobcent_tips_updatecache')); switch ($step) { case 1: $thumbTaskList = Appbyme::getDzPluginCache('thumb_task_list'); $thumbTaskList === false && ($thumbTaskList = array()); $thumbTaskCount = (int) count($thumbTaskList); cpmsg(sprintf(' <input type="checkbox" name="type[]" value="cleandata" id="clean_datacache" class="checkbox" checked /> <label for="clean_datacache">%s</label> <input type="checkbox" name="type[]" value="updatedata" id="update_datacache" class="checkbox" checked /> <label for="update_datacache">%s</label> <input type="checkbox" name="type[]" value="cleanthumb" id="clean_thumbcache" class="checkbox" />
public function global_footer() { if (Appbyme::isInstalled()) { Appbyme::init(); Appbyme::runCron(); } return ''; }
public function common() { if (Appbyme::isInstalled()) { Appbyme::init(); if (Appbyme::$config['mobile_allow_download_redirect']) { !defined('MOBILE_API_OUTPUT') && define('MOBILE_API_OUTPUT', 1); } } }