$formUrl = ltrim($baseUrl, 'action=');
    showtagheader('div', 'operation_manage', true);
    showformheader($formUrl);
    showtableheader(Appbyme::lang('mobcent_operation_setting'));
    loadcache('plugin');
    global $_G;
    $dsuPaulsignSetting = $_G['cache']['plugin']['dsu_paulsign'];
    $extcreditsSetting = $_G['setting']['extcredits'];
    // 签到奖励基数设置
    $signExtcreditBase = Appbyme::getDzPluginCache('sign_extcredit_base');
    $signExtcreditBase == false && ($signExtcreditBase = 100);
    if (isset($extcreditsSetting[$dsuPaulsignSetting['nrcredit']])) {
        showsetting(Appbyme::lang('mobcent_operation_sign_extcredit_base') . ' ' . $_G['setting']['extcredits'][$dsuPaulsignSetting['nrcredit']]['title'], 'signextcreditbase_new', (int) $signExtcreditBase, 'text', '', 0, Appbyme::lang('mobcent_tips_extcredit_base'), '', '', true);
    }
    // 发回帖奖励基数设置
    $forumExtcreditBase = Appbyme::getDzPluginCache('forum_extcredit_base');
    !is_array($forumExtcreditBase) && ($forumExtcreditBase = array());
    foreach ($extcreditsSetting as $id => $extcredit) {
        showsetting(Appbyme::lang('mobcent_operation_forum_extcredit_base') . ' ' . $extcredit['title'], sprintf('forumextcreditbase_new[%d]', $id), (int) (isset($forumExtcreditBase[$id]) ? $forumExtcreditBase[$id] : 100), 'text', '', 0, Appbyme::lang('mobcent_tips_extcredit_base'), '', '', true);
    }
    showtablefooter();
    showsubmit('operation_submit', 'submit');
    showformfooter();
    showtagfooter('div');
} else {
    if (!empty($_POST['signextcreditbase_new'])) {
        Appbyme::setDzPluginCache('sign_extcredit_base', (int) $_POST['signextcreditbase_new']);
    }
    if (!empty($_POST['forumextcreditbase_new'])) {
        $bases = array();
        foreach ($_POST['forumextcreditbase_new'] as $id => $base) {
Beispiel #2
0
 * @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" />
            <label for="clean_thumbcache">%s</label><br />
            %s
            <input type="text" name="thumb_task_length" value="0" class="text" />
            %s
            ', Appbyme::lang('mobcent_clean_datacache'), Appbyme::lang('mobcent_update_datacache'), Appbyme::lang('mobcent_clean_thumbcache'), Appbyme::lang('mobcent_thumb_task_length_setting'), Appbyme::lang('mobcent_thumb_task_length') . ' ' . $thumbTaskCount), "{$baseUrl}&step=2", 'form');
        break;
    case 2:
Beispiel #3
0
require_once dirname(__FILE__) . '/appbyme.class.php';
Appbyme::init();
$baseUrl = rawurldecode(cpurl());
if (!submitcheck('forum_submit')) {
    $formUrl = ltrim($baseUrl, 'action=');
    showtagheader('div', 'forum_manage', true);
    showformheader($formUrl);
    showtagheader('div', 'forum_stype', true);
    showtableheader(Appbyme::lang('mobcent_forum_style_setting'));
    $groupList = DB::fetch_all('
        SELECT *
        FROM %t
        WHERE type=%s AND status=%d
        ORDER BY displayorder ASC
        ', array('forum_forum', 'group', 1));
    $forumColumnStyle = Appbyme::getDzPluginCache('forum_column_style');
    foreach ($groupList as $group) {
        echo sprintf('
            <tr>
                <td class="td27">%s</td>
                <td><input type="radio" name="forumcolumnstyle_new[%d]" value="2" %s />%s</td>
                <td><input type="radio" name="forumcolumnstyle_new[%d]" value="1" %s />%s</td>
            </tr>
            ', $group['name'], $group['fid'], !isset($forumColumnStyle[$group['fid']]) ? 'checked' : ($forumColumnStyle[$group['fid']] == '2' ? 'checked' : ''), Appbyme::lang('mobcent_forum_column_style_col2'), $group['fid'], isset($forumColumnStyle[$group['fid']]) && $forumColumnStyle[$group['fid']] == '1' ? 'checked' : '', Appbyme::lang('mobcent_forum_column_style_col1'));
        // showsetting(
        //     $group['name'], sprintf('group_new[%d]', $group['fid']),
        //     1, 'radio', '', 0, '', '', '', true
        // );
    }
    showtablefooter();
    showtagfooter('div');