コード例 #1
0
ファイル: cloud_security.php プロジェクト: v998/discuzx-en
    showtablefooter();
} elseif ($_G['gp_anchor'] == 'member') {
    $memberperpage = $_G['setting']['memberperpage'];
    $start_limit = ($page - 1) * $memberperpage;
    $count = DB::result_first('SELECT count(*) FROM ' . DB::table('security_eviluser'));
    $multipage = multi($count, $memberperpage, $page, ADMINSCRIPT . '?action=cloud&operation=security&anchor=member');
    list($datas, $eviluids) = getEvilList('user', $start_limit, $memberperpage);
    showtableheader();
    showsubtitle(array('security_members_name', 'members_edit_info', 'security_members_eviltype', 'security_thread_member'));
    foreach ($datas as $value) {
        if ($value['username']) {
            $username = '******' . ADMINSCRIPT . '?action=members&operation=group&uid=' . $value['uid'] . '" target="_blank" title="' . $title . '">' . $value['username'] . '</a>';
        } else {
            $username = $lang['security_userdeleted'] . "(uid:{$value['uid']})";
        }
        $member = array($username, convertMemberInfo($value), convertIdtoStr($value['eviltype']), $value['grouptitle']);
        showtablerow('', array('width = "220px"'), $member);
    }
    if ($multipage) {
        showtablerow('', 'colspan = "5"', $multipage);
    }
    showtablefooter();
}
$jsScript = <<<EOF
\t\t<script type='text/javascript'>

\t\t\tfunction toggle_mod(id) {
\t\t\t\tif(\$(id).style.display == 'none') {
\t\t\t\t\t\$(id).style.display = '';
\t\t\t\t} else {
\t\t\t\t\t\$(id).style.display = 'none';
コード例 #2
0
    list($datas, $evilPids) = getEvilList('post', $start_limit, $tpp);
    echo "<p><a href='###' onclick='\$(\"recyclebinpostform\").submit();'>{$lang['security_recyclebin_post']}</a></p>";
    showformheader('recyclebinpost&operation=search', 'style="display: none;"', 'recyclebinpostform');
    showhiddenfields(array('security' => 1, 'searchsubmit' => 1));
    showformfooter();
    showtableheader('', '', 'id = "security_list"');
    showsubtitle(array('security_subject', 'security_forum', 'security_author', 'security_post_status'));
    foreach ($datas as $key => $value) {
        if (!$value['message']) {
            $subjectstyle = 'class = "threadopt"';
        } else {
            $subjectstyle = '';
        }
        $value['message'] = convertMessage($value);
        $modthreadkey = modauthkey($value['tid']);
        $thread = array(convertSubjectandIP($value), getNamebyFid($value['fid']), convertAuthorAndDate($value), convertIdtoStr($value['invisible'], 'adminoperate'), $viewlink);
        showtagheader('tbody', '', true, 'hover');
        showtablerow($subjectstyle, array('width = "400px"'), $thread);
        $value['message'] ? showtablerow('class="threadopt" style="display: none;" id = "mod_' . $value['tid'] . '_row_' . $key . '"', 'colspan = "6"', $value['message']) : '';
        showtagfooter('tbody');
    }
    if ($multipage) {
        showtablerow('', 'colspan = "6"', $multipage);
    }
    showtablefooter();
} elseif ($_GET['anchor'] == 'member') {
    showtips('security_member_tips');
    if ($_GET['ignoreuid']) {
        C::t('#security#security_eviluser')->delete(intval($_GET['ignoreuid']));
    }
    $memberperpage = $_G['setting']['memberperpage'];