[제나플러스] 설정기간동안 로그인하지 않은 회원삭제 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[제나플러스] 설정기간동안 로그인하지 않은 회원삭제

페이지 정보

본문

<?
/**
 * ZENA Builder for Gnuboard4
 *
 * Copyright (c) 2006-05-18 Park Gwan Su <www.zeronara.net>
 * e-mail : zeronara@gmail.com
 * You are free: to Remix - to adapt the work
 * Attribution : You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
 * Share Alike : If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
 * Nothing in this license impairs or restricts the author's moral rights.
**/

$sub_menu = "911800";
include_once("./_common.php");

auth_check($auth[$sub_menu], "r");

$token = get_token();

if ($is_admin != "super")
    alert("최고관리자만 접근 가능합니다.");

// 회원 삭제 함수 인클루드.
include_once("$zp[admin_path]/admin.lib_super.php");

// 개별 삭제
if ($w == 'd' && $mb_id) {

    // 데이터
    $mb = get_member($mb_id);

    // 체크
    if (!$mb['mb_id']) {

        alert("회원 데이터가 존재하지 않습니다.");

    }

    // 회원삭제
    member_delete($mb_id);

    // 이동
    goto_url("./member_delete.php");

}

$login_time = $config[cf_4]; //지난 몇일 동안?
$today_login_time = date("Y-m-d H:i:s", $g4['server_time'] - ($login_time * 86400));

// 30일 이전에 로그인한 회원 출력. 즉 최근 30일안에 로그인한 사람이 없다는 것이다.
$sql = " select * from $g4[member_table] where mb_today_login < '$today_login_time' and mb_level = '2' order by mb_today_login desc ";
$result = sql_query($sql);

include_once ("./admin.head.php");
?>

<table cellspacing="0" cellpadding="0" border="0">
    <tr height="30">
        <td width='100' align='center'>ID</td>
        <td width='100' align='center'>이 름</td>
        <td width='100' align='center'>닉네임</td>
        <td width='150' align='center'>이메일</td>
        <td width='60' align='center'>포인트</td>
        <td width='20'></td>
        <td width='150' align='center'>마지막로그인</td>
        <!--<td width='40' align='center'>관리</td>-->
    </tr>
    <tr><td height='1' bgcolor='#f3f3f3' colspan='10'></td></tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++) {

    // 게시물 체크. 코멘트 및 원글 포함
    $sql2 = " select count(*) as cnt from $g4[board_new_table] where mb_id = '$row[mb_id]' ";
    $new = sql_fetch($sql2);

    // 내역이 없다면 않았다면?
    if (!$new['cnt']) {

        // 일단 삭제할 아이디와 최종 로그인 출력
        echo "<tr height='25'>";
        echo "<td align='center'>{$row[mb_id]}</td>";
        echo "<td align='center'>{$row[mb_name]}</td>";
        echo "<td align='center'>{$row[mb_nick]}</td>";
        echo "<td align='center'>{$row[mb_email]}</td>";
        echo "<td align='right'>". number_format($row['mb_point']) . "</td>";
        echo "<td></td>";
        echo "<td align='center'>{$row['mb_today_login']}</td>";
        //echo "<td align='center'><a href='?w=d&mb_id={$row['mb_id']}'>삭제</a></td>";
        echo "</tr>";
        echo "<tr><td height='1' bgcolor='#f3f3f3' colspan='10'></td></tr>";

        // 회원삭제
        member_delete($row['mb_id']);

    } // end if

} // end for
?>
</table>

<?
include_once ("./admin.tail.php");
?>

추천0

댓글목록

등록된 댓글이 없습니다.

Total 771건 14 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
446 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 24881 0 05-04
445 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 29163 2 04-23
444 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 43667 0 04-20
443 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 68266 0 04-20
442 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 37169 0 04-16
441 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 31842 0 04-12
440 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 71721 0 04-09
439 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 72679 0 04-07
438 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 55930 0 04-07
437 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 67255 0 03-30
436 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 41719 0 03-26
435 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 40957 0 03-21
434 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 41865 0 03-14
433 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 56013 0 03-10
432 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 30182 0 03-09
431 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 31503 2 03-06
430 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 28607 2 03-06
429 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 26059 0 03-03
428 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 30874 0 03-02
427 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 33612 0 02-26
426 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 26111 0 02-25
425 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 29558 0 02-25
열람중 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 31135 0 02-25
423 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 31655 0 02-25
422 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 46012 0 02-19

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
3,560
어제
4,164
최대
9,679
전체
3,794,162
Copyright (c) 株式会社YHPLUS. All rights reserved.