require_once R_P . 'require/nav.php'; require M_P . 'index.php'; aliasStatic($channelInfo['alias']); echo getLangInfo('msg', 'operate_success'); ajax_footer(); exit; } elseif ($action == 'static_all') { define('AREA_STATIC', '1'); $ChannelService = L::loadClass('channelService', 'area'); $channelsArray = $ChannelService->getChannels(); require_once R_P . 'require/nav.php'; require M_P . 'index.php'; foreach ($channelsArray as $channelInfoValue) { $alias = $channelInfoValue['alias']; require M_P . 'index.php'; aliasStatic($channelInfoValue['alias']); } echo getLangInfo('msg', 'operate_success'); ajax_footer(); exit; } else { S::gp(array('default_step', 'channels', 'defaultalias')); if ($default_step == 1) { $channelService->updateChannels($channels); $channelService->updateDefaultAlias($defaultalias); Showmsg("operate_success"); } else { //* include_once pwCache::getPath(D_P.'data/bbscache/area_config.php'); pwCache::getData(D_P . 'data/bbscache/area_config.php'); $addUrl = $admin_file . "?adminjob=mode&admintype=area_channel_manage&action=add&ajax=1"; $editUrl = $admin_file . "?adminjob=mode&admintype=area_channel_manage&action=edit&ajax=1";
$imgpath = $db_http != 'N' ? $db_http : $db_picpath; ObStart(); define('M_P', R_P . "mode/area/"); define('AREA_PATH', R_P . 'html/channel/'); include_once M_P . 'require/core.php'; define('AREA_STATIC', '1'); $db_mode = 'area'; $ChannelService = L::loadClass('channelService', 'area'); $channelsArray = $ChannelService->getChannels(); $ChannelService->updateAreaChannels(); require_once R_P . 'require/nav.php'; $alias = array('baby', 'decoration', 'auto', 'delicious', 'home85', 'tucool'); foreach ($alias as $value) { $alias = $value; require M_P . 'index.php'; aliasStatic($alias); } list($prev, $next) = getStepto($action); pwHeader("{$basename}?action={$next}"); exit; } if ($action == 'finish') { @set_time_limit(120); if (!file_exists(D_P . 'data/sql_config.php')) { Promptmsg('config_noexists', 'database'); } else { $db = pwNewDBForInstall(); } $db_htmdir = 'html'; if ($_GET['app'] == '1') { M::sendNotice(array($manager['0']), array('title' => $lang['app_subject'], 'content' => $lang['app_content2']));
pwCache::getData(D_P . 'data/bbscache/area_config.php'); if (!$alias || !$area_channels[$alias]) { exit; } //频道不存在 if (!$area_statictime) { exit; } //未设置更新时间 $channelInfo = $area_channels[$alias]; if ($db_distribute) { $file = S::escapePath(AREA_PATH . $alias . '/index.html'); if ($channelInfo['statictime'] && pwFilemtime($file) < $channelInfo['statictime']) { require M_P . 'index.php'; aliasStatic($channelInfo['alias']); touch($file, $channelInfo['statictime']); exit; } } if ($channelInfo['statictime'] && $channelInfo['statictime'] + $area_statictime * 60 > $timestamp) { exit; } require M_P . 'index.php'; aliasStatic($channelInfo['alias']); $chanelService->updateChannelStaticTime($alias, $timestamp); } elseif ($type == 'read') { S::gp(array('id')); $areaLevelService = L::loadClass('arealevel', 'area'); $ifEditAdmin = $areaLevelService->getAreaLevelByUserId($winduid); !$ifEditAdmin && Showmsg("no_right_to_static"); }