diff --git a/AvocadoAmber/adm/theme_preview.php b/AvocadoAmber/adm/theme_preview.php index 929f158..4de6c20 100644 --- a/AvocadoAmber/adm/theme_preview.php +++ b/AvocadoAmber/adm/theme_preview.php @@ -36,7 +36,7 @@ if ($conf['cf_theme'] != $theme) { } $g5['title'] = get_text($info['theme_name']) . ' 테마 미리보기'; -require_once(G5_PATH . '/head.sub.php'); +include_once G5_PATH . '/head.sub.php'; ?> @@ -68,4 +68,4 @@ require_once(G5_PATH . '/head.sub.php'); ', 0); +?> + +
+ +
+ + +
+
diff --git a/AvocadoAmber/inventory/_common.php b/AvocadoAmber/inventory/_common.php new file mode 100644 index 0000000..0c463bb --- /dev/null +++ b/AvocadoAmber/inventory/_common.php @@ -0,0 +1,2 @@ +아이템 보유 정보를 확인할 수 없습니다.

"; +} else { + + if (defined('G5_THEME_PATH') && is_file(G5_THEME_PATH . "/inventory/item.skin.php")) { + include(G5_THEME_PATH . "/inventory/item.skin.php"); + } else { + include(G5_PATH . "/inventory/skin/item.skin.php"); + } + +} diff --git a/AvocadoAmber/inventory/extend/_sample.config.php b/AvocadoAmber/inventory/extend/_sample.config.php new file mode 100644 index 0000000..a7e150d --- /dev/null +++ b/AvocadoAmber/inventory/extend/_sample.config.php @@ -0,0 +1,28 @@ + + +
+
+ +
+
+
+

+ + +

+
+

+
+
+
+ + + + +
+
+ +
+
+ +
+
+ +
+
+
+ +
+
diff --git a/AvocadoAmber/inventory/inc/send_item_form.php b/AvocadoAmber/inventory/inc/send_item_form.php new file mode 100644 index 0000000..0e5ade5 --- /dev/null +++ b/AvocadoAmber/inventory/inc/send_item_form.php @@ -0,0 +1,41 @@ + + +
+
+ +
+
+
+

+ + +

+
+
+ + + +
+
+ + + +
+
+
+ +
+
+ +
+ +
+
+ +
+
diff --git a/AvocadoAmber/inventory/inventory_update.php b/AvocadoAmber/inventory/inventory_update.php new file mode 100644 index 0000000..81d866a --- /dev/null +++ b/AvocadoAmber/inventory/inventory_update.php @@ -0,0 +1,53 @@ +아이템 보유 정보를 확인할 수 없습니다.

"; +} else { + $money = $in['it_sell']; + insert_point($member['mb_id'], $money, '아이템 : ' . $in['it_name'] . ' 판매보상 ( ' . $money . $config['cf_money_pice'] . ' 획득 )', 'item', time(), '판매'); + delete_inventory($in['in_id']); + echo "LOCATIONURL||||" . $return_url; +} diff --git a/AvocadoAmber/inventory/send_item.php b/AvocadoAmber/inventory/send_item.php new file mode 100644 index 0000000..daab473 --- /dev/null +++ b/AvocadoAmber/inventory/send_item.php @@ -0,0 +1,15 @@ +아이템 보유 정보를 확인할 수 없습니다.

"; +} else { + if ($in['ch_id'] == $character['ch_id']) { + $ch = $character; + } else { + $ch = get_character($in['ch_id']); + } + + include('./inc/send_item_form.php'); +} diff --git a/AvocadoAmber/inventory/skin/item.skin.php b/AvocadoAmber/inventory/skin/item.skin.php new file mode 100644 index 0000000..73c3325 --- /dev/null +++ b/AvocadoAmber/inventory/skin/item.skin.php @@ -0,0 +1,52 @@ + + + +
+
+ +
+
+
+

+ + +

+
+
+ +
+ +
+ +
+ + +
+ +

+

By.

+
+ +
+
+
+ + + +
diff --git a/AvocadoAmber/inventory/skin/list.skin.php b/AvocadoAmber/inventory/skin/list.skin.php new file mode 100644 index 0000000..938d03d --- /dev/null +++ b/AvocadoAmber/inventory/skin/list.skin.php @@ -0,0 +1,32 @@ + + + + diff --git a/AvocadoAmber/inventory/use_item.php b/AvocadoAmber/inventory/use_item.php new file mode 100644 index 0000000..f9c3737 --- /dev/null +++ b/AvocadoAmber/inventory/use_item.php @@ -0,0 +1,66 @@ +아이템 보유 정보를 확인할 수 없습니다.

"; +} else { + $inven_function = $in['it_type']; + + if ($inven_function == "프로필수정") { + echo location_url(G5_URL . "/mypage/character/character_form.php?w=u&ch_id=" . $in['ch_id'] . "&in_id=" . $in['in_id'] . "&url=" . $url); + } + if ($inven_function == "아이템추가") { + include('./inc/add_item_form.php'); + } + if ($inven_function == "스탯회복") { + set_status($ch['ch_id'], $in['st_id'], ($in['it_value'] * -1)); + delete_inventory($in['in_id'], $in['it_use_ever']); + echo location_url($return_url); + } + if ($inven_function == "뽑기") { + $result = get_item_explo($in['ch_id'], $in['it_id']); + delete_inventory($in['in_id'], $in['it_use_ever']); + + if ($result['it_name']) { + alert("『{$result['it_name']}』 획득 성공!"); + } else { + alert("아무것도 획득하지 못했습니다.", $return_url . "&tabs=i"); + } + } + + + // use_item.php 파일을 수정할 필요가 없도록 확장합니다. + $use_extend_file = []; + $use_tmp = dir(G5_PATH . "/inventory/extend"); + while ($entry = $use_tmp->read()) { + // php 파일만 include 함 + if (preg_match("/(\.php)$/i", $entry)) + $use_extend_file[] = $entry; + } + if (!empty($use_extend_file) && is_array($use_extend_file)) { + natsort($use_extend_file); + foreach ($use_extend_file as $file) { + include_once G5_PATH . "/inventory/extend/" . $file; + } + } + unset($use_extend_file); +} diff --git a/AvocadoAmber/member/_common.php b/AvocadoAmber/member/_common.php new file mode 100644 index 0000000..0c463bb --- /dev/null +++ b/AvocadoAmber/member/_common.php @@ -0,0 +1,2 @@ +', 0); + +$cl = []; +$cl_result = sql_query("select * from {$g5['closthes_table']} where ch_id = '{$ch_id}' order by cl_type desc, cl_id asc"); +$str_array_data = ""; +$array_data = ""; +for ($i = 0; $row = sql_fetch_array($cl_result); $i++) { + $cl[$i] = $row; + $array_data .= "{$str_array_data}'{$row['cl_subject']}'"; + $str_array_data = ","; +} + +?> + +
+
+
+
+ +
+ +
+
+ + + + + diff --git a/AvocadoAmber/member/exp.php b/AvocadoAmber/member/exp.php new file mode 100644 index 0000000..21f685e --- /dev/null +++ b/AvocadoAmber/member/exp.php @@ -0,0 +1,102 @@ +', 0); + +$list = []; +$sql_common = " from {$g5['exp_table']} where ch_id = '{$ch['ch_id']}' "; +$sql_order = " order by ch_id desc "; + +$sql = " select count(*) as cnt {$sql_common} "; +$row = sql_fetch($sql); +$total_count = $row['cnt']; + +$rows = $config['cf_page_rows']; +$total_page = ceil($total_count / $rows); // 전체 페이지 계산 +if ($page < 1) { + $page = 1; +} // 페이지가 없으면 첫 페이지 (1 페이지) +$from_record = ($page - 1) * $rows; // 시작 열을 구함 + +?> + +
+
+ + + + +

+ +

:

+ + +

:

+ +

:

+
+
+ + + + + + + + + + + 0) { + $point1 = number_format($row['ex_point']); + $sum_point1 += $row['ex_point']; + } else { + $point2 = number_format($row['ex_point']); + $sum_point2 += $row['ex_point']; + } + + $ex_content = $row['ex_content']; + ?> + + + + + + '; + else { + if ($sum_point1 > 0) + $sum_point1 = "+" . number_format($sum_point1); + $sum_point2 = number_format($sum_point2); + } + ?> + +
일자내용
+ +
자료가 없습니다.
+ + + +
+ + + diff --git a/AvocadoAmber/member/index.php b/AvocadoAmber/member/index.php new file mode 100644 index 0000000..fa591b7 --- /dev/null +++ b/AvocadoAmber/member/index.php @@ -0,0 +1,38 @@ +', 0); + +// 추가 항목 설정 데이터 +// -- 권한 설정에 따라 가져오기 +// -- 관리자 권한 제외 하고 가져온다. +$ch_ar = []; +$ar_result = sql_query("select * from {$g5['article_table']} where ar_secret != 'H' order by ar_order asc"); +for ($i = 0; $row = sql_fetch_array($ar_result); $i++) { + $ch_ar[$i] = $row; +} + +/** 세력 정보 **/ +$ch_si = []; +if ($config['cf_side_title']) { + $side_result = sql_query("select si_id, si_name from {$g5['side_table']} order by si_id asc"); + for ($i = 0; $row = sql_fetch_array($side_result); $i++) { + $ch_si[$i]['name'] = $row['si_name']; + $ch_si[$i]['id'] = $row['si_id']; + } +} + +/** 종족 정보 **/ +$ch_cl = []; +if ($config['cf_class_title']) { + $class_result = sql_query("select cl_id, cl_name from {$g5['class_table']} order by cl_id asc"); + for ($i = 0; $row = sql_fetch_array($class_result); $i++) { + $ch_cl[$i]['name'] = $row['cl_name']; + $ch_cl[$i]['id'] = $row['cl_id']; + } +} + +$search_arcode = false; +if ($stx) { + $check_sfl = explode("||", $sfl); + if ($check_sfl[0] == 'arcode') { + // 추가 필드 검색 + $search_arcode = true; + $sql_common = "from {$g5['character_table']} ch join {$g5['value_table']} cv on ch.ch_id = cv.ch_id where (ch.ch_state = '대기' OR ch.ch_state = '수정중') and cv.av_value like '%{$stx}%' and cv.ar_code = '{$check_sfl[1]}' "; + if ($s_class) { + $sql_search .= "and ch.ch_class = '{$s_class}'"; + } + + if ($s_side) { + $sql_search .= "and ch.ch_side = '{$s_side}'"; + } + + $sql_order = "order by ch.ch_id desc "; + } +} +if (!$search_arcode) { + $sql_common = "from {$g5['character_table']} where ch_state != '승인' and ch_state != '삭제' "; + if ($s_class) { + $sql_search .= "and ch_class = '{$s_class}'"; + } + + if ($s_side) { + $sql_search .= "and ch_side = '{$s_side}'"; + } + + if ($stx) { + if ($sfl == 'mb_name') { + $temp_search = ""; + $connect_str = ""; + + $temp = sql_query("select mb_id from {$g5['member_table']} where mb_name like '%" . $stx . "%'"); + for ($t = 0; $row = sql_fetch_array($temp); $t++) { + $temp_search .= $connect_str . "mb_id = '" . $row['mb_id'] . "'"; + $connect_str = " OR "; + } + + if ($temp_search) + $sql_search .= "and ( " . $temp_search . " ) "; + else + $sql_search .= "and ( mb_id = '' ) "; + } else { + $sql_search .= " and $sfl like '%" . $stx . "%' "; + } + } + + $sql_order = "order by ch_id desc"; +} + +$all_count = sql_fetch("select count(*) as cnt $sql_common"); +$all_count = $all_count['cnt']; + +$total_count = sql_fetch("select count(*) as cnt $sql_common $sql_search $sql_order"); +$total_count = $total_count['cnt']; + +$page_rows = 10; +if ($page < 1) { + $page = 1; +} // 페이지가 없으면 첫 페이지 (1 페이지) +$total_page = ceil($total_count / $page_rows); // 전체 페이지 계산 +$from_record = ($page - 1) * $page_rows; // 시작 열을 구함 + +$sql = "select * $sql_common $sql_search $sql_order limit {$from_record}, $page_rows "; +$rank_result = sql_query($sql); +$write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, './ready.php?s_class=' . $s_class . '&s_side=' . $s_side . '&sfl=' . $sfl . '&stx=' . $stx . '&page='); +$side_link = ""; + +$character_list = []; +for ($i = 0; $row = sql_fetch_array($rank_result); $i++) { + $character_list[] = $row; +} + +for ($i = 0; $i < count($ch_si); $i++) { + if ($s_side == $ch_si[$i]['id']) { + $class = " style='color: rgb(255, 213, 0);' "; + } else { + $class = ""; + } + + $count = sql_fetch("select count(*) as cnt " . $sql_common . " and ch_side = '{$ch_si[$i]['id']}'"); + $side_link .= " +
  • + + " . $ch_si[$i]['name'] . " " . $ch_cl[$j]['name'] . "({$count['cnt']}) + "; + + if (count($ch_cl) > 0) { + $side_link .= ""; + } + $side_link .= "
  • "; +} + +if (defined('G5_THEME_PATH') && is_file(G5_THEME_PATH . "/member/ready_list.skin.php")) { + include(G5_THEME_PATH . "/member/ready_list.skin.php"); +} else { + include(G5_PATH . "/member/skin/ready_list.skin.php"); +} + +unset($rank_result); +unset($ch); +include_once './_tail.php'; diff --git a/AvocadoAmber/member/skin/list.skin.php b/AvocadoAmber/member/skin/list.skin.php new file mode 100644 index 0000000..a78abf1 --- /dev/null +++ b/AvocadoAmber/member/skin/list.skin.php @@ -0,0 +1,53 @@ +', 0); +?> + +
    + +
    + {$side[$i]['si_name']}
    "; + } + ?> + +
    + + + + diff --git a/AvocadoAmber/member/skin/ready_list.skin.php b/AvocadoAmber/member/skin/ready_list.skin.php new file mode 100644 index 0000000..732125a --- /dev/null +++ b/AvocadoAmber/member/skin/ready_list.skin.php @@ -0,0 +1,98 @@ +', 0); +?> + + + + +
    +
    + +
    + +
    + +
    + + + +
    + +
    + +
    diff --git a/AvocadoAmber/member/skin/viewer.skin.php b/AvocadoAmber/member/skin/viewer.skin.php new file mode 100644 index 0000000..ac54702 --- /dev/null +++ b/AvocadoAmber/member/skin/viewer.skin.php @@ -0,0 +1,276 @@ +', 0); + +?> + +
    + + + + +
    + +
    + 캐릭터 전신 +
    + + +
    + 캐릭터 흉상 +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + +
    + +
    + + +
    + + + + + +
    + + + + +
    +

    + STATUS + + / + +

    +
    +
    + +
    +
    +
    +

    + + + +

    +
    +
    + +
    +
    + + + +
    +

    + TITLE +

    +
    +
    + + + 보유중인 타이틀이 없습니다.
    "; + } + ?> +
    +
    + + + +
    +

    + INVENTORY + + + + + +

    +
    + +
    + + + + + +
    +

    STORY

    +
    + +
    + + +
    + 오너 : +
    + +
    +
    + + diff --git a/AvocadoAmber/member/viewer.php b/AvocadoAmber/member/viewer.php new file mode 100644 index 0000000..15f1e1f --- /dev/null +++ b/AvocadoAmber/member/viewer.php @@ -0,0 +1,90 @@ +', 0); + +// 기본 항목 설정 데이터 +$ad = $article; +?> + +
    +
    + +
    diff --git a/AvocadoAmber/mypage/_head.sub.php b/AvocadoAmber/mypage/_head.sub.php new file mode 100644 index 0000000..6d09b4f --- /dev/null +++ b/AvocadoAmber/mypage/_head.sub.php @@ -0,0 +1,4 @@ + +
    +
    +
    + +

    + 캐릭터 관리 + Character management +

    diff --git a/AvocadoAmber/mypage/character/_head.sub.php b/AvocadoAmber/mypage/character/_head.sub.php new file mode 100644 index 0000000..ff5907a --- /dev/null +++ b/AvocadoAmber/mypage/character/_head.sub.php @@ -0,0 +1,4 @@ + $config['cf_character_count']) { + alert("생성 가능한 캐릭터 갯수를 초과하였습니다.", "./index.php"); + } + + $ch['ch_state'] = '수정중'; + $ch['ch_type'] = 'main'; + $ch['mb_id'] = $member['mb_id']; + $ch['ch_point'] = $config['cf_status_point']; + +} else { + $ch = sql_fetch("select * from {$g5['character_table']} where ch_id = '{$ch_id}'"); + if (empty($ch)) { + alert("캐릭터 내역이 존재하지 않습니다."); + } + if (!$is_mod_character && !$is_admin) { + if ($in['ch_id'] != $ch['ch_id'] || $in['it_type'] != '프로필수정') { + alert("캐릭터 수정 기간이 아닙니다."); + } + } + + // 추가 항목 값 가져오기 + $av_result = sql_query("select * from {$g5['value_table']} where ch_id = '{$ch['ch_id']}'"); + for ($i = 0; $row = sql_fetch_array($av_result); $i++) { + $ch[$row['ar_code']] = $row['av_value']; + } +} +?> + +
    + + + + + + + + + + + + + + +

    신청서 상태

    + + + + + + + + + + + + +
    신청서상태 + [수정완료]로 변경해 주시길 바랍니다.') ?> + +
    +
    + + +

    캐릭터 기본정보

    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +

    + +
    + +
    + +
    +
    + + +

    캐릭터 이미지 정보

    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + 이미지 확인 + + +
    + + + + + + + + + + 이미지 확인 + + +
    + + + + + + + + + + 이미지 확인 + + +
    +
    + + +

    + 캐릭터 스탯 정보 + + + / + + +

    +
    + +
    +
    + + + 0) { ?> +

    추가 캐릭터 프로필 정보

    + + + + + + + + + + + + + + + + + + + +
    + + + + + + + /> + + + + + + + 확인 + + + + + + /> + + + + + + + + + +
    + + +
    +
    + + + 취소 +
    + + +
    + +
    + + + + diff --git a/AvocadoAmber/mypage/character/character_form_update.php b/AvocadoAmber/mypage/character/character_form_update.php new file mode 100644 index 0000000..2581a36 --- /dev/null +++ b/AvocadoAmber/mypage/character/character_form_update.php @@ -0,0 +1,276 @@ + 0) { + // 저장되는 스탯 정보가 존재할 시 + for ($i = 0; $i < count($st_id); $i++) { + $temp_st_id = $st_id[$i]; + $old_sc = sql_fetch("select * from {$g5['status_table']} where ch_id = '{$ch_id}' and st_id = '{$temp_st_id}'"); + if ($old_sc['sc_id']) { + // 업데이트 + $sql = " update {$g5['status_table']} + set sc_max = '{$sc_max[$i]}' + where sc_id = '{$old_sc['sc_id']}' + "; + sql_query($sql); + + } else { + if (!$sc_value[$i]) + $sc_value[$i] = $sc_max[$i]; + // 등록 + $sql = " insert into {$g5['status_table']} + set st_id = '{$st_id[$i]}', + ch_id = '{$ch_id}', + sc_max = '{$sc_max[$i]}' + "; + sql_query($sql); + } + } +} + +if ($in_id && !$in['it_use_ever']) { + delete_inventory($in_id); +} + +goto_url('./viewer.php?ch_id=' . $ch_id, false); +?> diff --git a/AvocadoAmber/mypage/character/cloest.inc.php b/AvocadoAmber/mypage/character/cloest.inc.php new file mode 100644 index 0000000..60519bf --- /dev/null +++ b/AvocadoAmber/mypage/character/cloest.inc.php @@ -0,0 +1,108 @@ + + +
    +
    + +
    + + + + + + + +
    +
    +
    + + + 0) { ?> +
    + + + +
    + +
    + + diff --git a/AvocadoAmber/mypage/character/cloest_path_update.php b/AvocadoAmber/mypage/character/cloest_path_update.php new file mode 100644 index 0000000..dadd473 --- /dev/null +++ b/AvocadoAmber/mypage/character/cloest_path_update.php @@ -0,0 +1,32 @@ + + +
    +
    + + + + + + + + + + +
    대표캐릭터 +
    + + + + +
    +
    +
    +
    + +
    +
    + + + +
    + + +
    + 신규 캐릭터 등록 +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    대상캐릭터 + + +
    +
    +
    +
    호감도 + +
    관계요약 + +
    관계링크입력 + +
    순서 + +
    + + + +
    +
    + + + + + + +
    + + + + + + + + +
    + + + diff --git a/AvocadoAmber/mypage/character/relation_update.php b/AvocadoAmber/mypage/character/relation_update.php new file mode 100644 index 0000000..527df63 --- /dev/null +++ b/AvocadoAmber/mypage/character/relation_update.php @@ -0,0 +1,38 @@ + 0) { + // 승인 상태, 잔여 포인트가 남아 있을 경우 + $status_modify = true; + $status_fix = true; + } + + if (defined('_CHARACTER_FORM_')) { + // 현재 캐릭터 수정 폼일때 + $use_status_form = false; + } else { + // 일반 멤버 프로필 보기 상태일 때 + $use_status_form = true; + } + + } else if (!$ch['ch_id']) { + + // 캐릭터 최초 등록 상태 + $status_modify = true; + $use_status_form = false; + $status_fix = false; + } + +} + +?> + + +
    + + + + + +
    + +
    > + + + + + +
    +
    +

    + + + +

    + +
    + +
    + ">포인트 추가 + ">포인트 차감 +
    + +
    + +
    + + + + + + +
    + +
    + + diff --git a/AvocadoAmber/mypage/character/status_update.php b/AvocadoAmber/mypage/character/status_update.php new file mode 100644 index 0000000..b00d97a --- /dev/null +++ b/AvocadoAmber/mypage/character/status_update.php @@ -0,0 +1,41 @@ + 0) { + // 저장되는 스탯 정보가 존재할 시 + for ($i = 0; $i < count($st_id); $i++) { + $temp_st_id = $st_id[$i]; + $old_sc = sql_fetch("select * from {$g5['status_table']} where ch_id = '{$ch_id}' and st_id = '{$temp_st_id}'"); + + if ($old_sc['sc_id']) { + // 업데이트 + $sql = " update {$g5['status_table']} + set sc_max = '{$sc_max[$i]}' + where sc_id = '{$old_sc['sc_id']}' + "; + sql_query($sql); + + } else { + // 등록 + $sql = " insert into {$g5['status_table']} + set st_id = '{$st_id[$i]}', + ch_id = '{$ch_id}', + sc_max = '{$sc_max[$i]}' + "; + sql_query($sql); + } + } +} +goto_url($return_url); diff --git a/AvocadoAmber/mypage/character/title.inc.php b/AvocadoAmber/mypage/character/title.inc.php new file mode 100644 index 0000000..ac30f9a --- /dev/null +++ b/AvocadoAmber/mypage/character/title.inc.php @@ -0,0 +1,46 @@ + 0) { ?> + +
    + + + +
    + + + +
    + 타이틀 변경 : + + + 보유중인 타이틀이 없습니다."; +} +?> diff --git a/AvocadoAmber/mypage/character/title_update.php b/AvocadoAmber/mypage/character/title_update.php new file mode 100644 index 0000000..bda2359 --- /dev/null +++ b/AvocadoAmber/mypage/character/title_update.php @@ -0,0 +1,7 @@ + + + +
    +
    + + +
    + +
    + + + +
    + + +
    +

    + + · · + +

    +

    + +

    +
    +
    + + +
    + + + + + + + + + + + + + + + +
    + +
    + +
    > + +
    + + + +
    > + + / +
    + +
    + +
    + + + +
    > +
    + +
    +
    + + +
    > + +
    + + +
    > + +
    + +
    + +
    + +
    + + +
    + + + 캐릭터 정보 삭제 + + +
    + +
    +
    +
    + + diff --git a/AvocadoAmber/mypage/index.php b/AvocadoAmber/mypage/index.php new file mode 100644 index 0000000..c212e93 --- /dev/null +++ b/AvocadoAmber/mypage/index.php @@ -0,0 +1,138 @@ + + + +

    + 계정정보 + My Information +

    + +
    + + + + + + + + + + + + + + + + + + + 0) { ?> + + + + + + +
    오너 + ( 년생 ) +
    E-mail + +
    가입일 + +
    경고내역 +

    + [ + ] 회 +

    + +
    +
    +
    + 정보수정 +
    +
    + + +

    + 호출내역 + My Calling +

    +
    + + + + + + + + + + + + + + + > + + + + + + + + + +
    호출내용
    +

    + +

    +
    + 호출 내역이 존재하지 않습니다. +
    +
    + + +
    + +
    + +
    +
    + 탈퇴 +
    + + diff --git a/AvocadoAmber/mypage/log/_common.php b/AvocadoAmber/mypage/log/_common.php new file mode 100644 index 0000000..4a76911 --- /dev/null +++ b/AvocadoAmber/mypage/log/_common.php @@ -0,0 +1,5 @@ + +

    + 로그 관리 + Log management +

    diff --git a/AvocadoAmber/mypage/log/_head.sub.php b/AvocadoAmber/mypage/log/_head.sub.php new file mode 100644 index 0000000..ff5907a --- /dev/null +++ b/AvocadoAmber/mypage/log/_head.sub.php @@ -0,0 +1,4 @@ + + + + + + + + +
    + + +
    +
    + + + +
    +
    + "; + } + ?> +
  • +

    + + [ 익명의 누군가 ] + + [ / ] + + +

    +

    + +

    +
  • + 0) { + echo ""; + } + ?> +
    +
    + +
    + 등록한 로그 내역이 없습니다. +
    + +
    + + + + + + + + + + diff --git a/AvocadoAmber/mypage/log/log_favorite.php b/AvocadoAmber/mypage/log/log_favorite.php new file mode 100644 index 0000000..5e8eede --- /dev/null +++ b/AvocadoAmber/mypage/log/log_favorite.php @@ -0,0 +1,147 @@ + + +
    + +
    + + + + + +
    + + +
    +
    + + + +
    +
    + +
    +
    + +
    + 등록한 로그 내역이 없습니다. +
    + +
    + + + + +
    +
    + + + + diff --git a/AvocadoAmber/mypage/memo/_common.php b/AvocadoAmber/mypage/memo/_common.php new file mode 100644 index 0000000..4a76911 --- /dev/null +++ b/AvocadoAmber/mypage/memo/_common.php @@ -0,0 +1,5 @@ + '{$me_id}' + ORDER BY me_id asc "; +$result = sql_query($sql); +$total = sql_num_rows($result); + +$last_me_id = 0; +if ($total > 0) { + $sql = " update {$g5['member_table']} + set mb_memo_call = '' + where mb_id = '{$member['mb_id']}' + and mb_name = '{$re_ch['mb_name']}"; + sql_query($sql); + + for ($i = 0; $me = sql_fetch_array($result); $i++) { + if ($me['me_send_mb_id'] == $member['mb_id']) { + $class = "me"; + $mb = $member; + $ch = $character; + $del = './memo_delete.php?me_id=' . $me['me_id']; + } else { + $class = "you"; + $mb = $re_mb; + $ch = $re_ch; + $del = ''; + + $sql = " update {$g5['memo_table']} + set me_read_datetime = '" . G5_TIME_YMDHIS . "' + where me_send_mb_id = '{$re_mb['mb_id']}' + and me_recv_mb_id = '{$member['mb_id']}' + and me_read_datetime = '0000-00-00 00:00:00' "; + sql_query($sql); + } + $last_me_id = $last_me_id > $me['me_id'] ? $last_me_id : $me['me_id']; + // 템플릿 불러오기 + include('../memo_view.skin.php'); + } + ?> + + + $row['me_id'] ? $last_me_id : $row['me_id']; +} + +for ($i = ($max_count - 1); $i >= 0; $i--) { + $me = $list[$i]; + + if ($me['me_send_mb_id'] == $member['mb_id']) { + $class = "me"; + $mb = $member; + $ch = $character; + $del = './memo_delete.php?me_id=' . $me['me_id']; + } else { + $class = "you"; + $mb = $re_mb; + $ch = $re_ch; + $del = ''; + } + $last_me_id = $me['me_id']; + + // 템플릿 불러오기 + include('../memo_view.skin.php'); +} diff --git a/AvocadoAmber/mypage/memo/index.php b/AvocadoAmber/mypage/memo/index.php new file mode 100644 index 0000000..eabb595 --- /dev/null +++ b/AvocadoAmber/mypage/memo/index.php @@ -0,0 +1,89 @@ + + + +
    + REFRESH + WRITE +
    + +
    + +
    +
    + + + +
    +
    +

    +   +

    +
    + + + + + + N + + T + + + +
    + +
    +
    + +
    + + + +
    +
    + + diff --git a/AvocadoAmber/mypage/memo/memo_delete.php b/AvocadoAmber/mypage/memo/memo_delete.php new file mode 100644 index 0000000..55b5cd0 --- /dev/null +++ b/AvocadoAmber/mypage/memo/memo_delete.php @@ -0,0 +1,26 @@ +' + . "\n" . ' >' + . "\n" . ' >' . str_replace("\n", "\n> ", get_text($row['me_memo'], 0)) + . "\n" . ' >' + . ' >'; + + } +} + +?> + + +
    + + + + + + + + + + + + + + + +
    받는사람 + + +
    +
    +
    +
    내용 + +
    + +
    + +
    + +
    + + + diff --git a/AvocadoAmber/mypage/memo/memo_update.php b/AvocadoAmber/mypage/memo/memo_update.php new file mode 100644 index 0000000..fb28216 --- /dev/null +++ b/AvocadoAmber/mypage/memo/memo_update.php @@ -0,0 +1,17 @@ + $row['me_id'] ? $last_me_id : $row['me_id']; +} +?> + + +
    + REFRESH +  LIST  +
    + +
    + 1) { ?> + 이전대화보기 + +
    + = 0; $i--) { + $me = $list[$i]; + if ($me['me_send_mb_id'] == $member['mb_id']) { + $class = "me"; + $mb = $member; + $ch = $character; + $del = './memo_delete.php?me_id=' . $me['me_id']; + } else { + $class = "you"; + $mb = $re_mb; + $ch = $re_ch; + $del = ''; + } + + // 템플릿 불러오기 + include('./memo_view.skin.php'); + + } ?> +
    + +
    + + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + + + + + diff --git a/AvocadoAmber/mypage/memo/memo_view.skin.php b/AvocadoAmber/mypage/memo/memo_view.skin.php new file mode 100644 index 0000000..41a804d --- /dev/null +++ b/AvocadoAmber/mypage/memo/memo_view.skin.php @@ -0,0 +1,35 @@ + + +
    +
    + + + + + +
    +
    +
    +

    []

    +

    +

    + + *** + + 읽음 + + + + 삭제 + +

    +
    +
    + +
    +
    +
    diff --git a/AvocadoAmber/mypage/money/_common.php b/AvocadoAmber/mypage/money/_common.php new file mode 100644 index 0000000..4a76911 --- /dev/null +++ b/AvocadoAmber/mypage/money/_common.php @@ -0,0 +1,5 @@ + +

    + 관리 + Money Information +

    diff --git a/AvocadoAmber/mypage/money/_head.sub.php b/AvocadoAmber/mypage/money/_head.sub.php new file mode 100644 index 0000000..ff5907a --- /dev/null +++ b/AvocadoAmber/mypage/money/_head.sub.php @@ -0,0 +1,4 @@ + +
    + + + + + + + + + + + + + + + + +
    받는사람 + + +
    +
    +
    +
    전달 + +
    +
    + +
    +
    +
    + + + + + + + + + + + + + + + 0) { + $point1 = number_format($row['po_point']) . $config['cf_money_pice']; + $sum_point1 += $row['po_point']; + } else { + $point2 = number_format($row['po_point'] * -1) . $config['cf_money_pice']; + $sum_point2 += $row['po_point']; + } + $po_content = $row['po_content']; + $expr = ''; + if ($row['po_expired'] == 1) + $expr = ' txt_expired'; + ?> + + + + + + '; + else { + if ($sum_point1 > 0) + $sum_point1 = number_format($sum_point1); + $sum_point2 = number_format($sum_point2 * -1); + } + ?> + + + + + + + + + + +
    내용획득사용
    []
    자료가 없습니다.
    소계
    보유 금액 +
    + +
    + 0) { + if ($member['mb_point'] < $point) { + alert("소지" . $config['cf_money'] . " 보다 많은 " . $config['cf_money'] . j($config['cf_money'], '은') . " 보낼 수 없습니다."); + } + if (!$ch_id) { + $re_ch = sql_fetch("select * from {$g5['character_table']} where ch_name = '{$ch_name}'"); + } else { + $re_ch = get_character($ch_id); + } + $recv_name = get_member_name($re_ch['mb_id']); + + if (!$recv_name) { + alert("상대를 확인할 수 없습니다."); + } + + $recv_id = $re_ch['mb_id']; + + insert_point($recv_id, $point, "[받음] " . $member['mb_name'] . '님 (' . $point . ' ' . $config['cf_money_pice'] . ' )', 'money', time(), '입금'); + insert_point($member['mb_id'], ($point * -1), "[보냄] " . $recv_name . '님 (-' . $point . ' ' . $config['cf_money_pice'] . ' )', 'money', time(), '출금'); + + $memo_content = $member['mb_name'] . "님이 " . $point . $config['cf_money_pice'] . " 보냈습니다."; + + // 쪽지 보내기 + send_memo($member['mb_id'], $recv_id, $memo_content); + + alert($recv_name . "님께 " . $point . $config['cf_money'] . " 보냈습니다."); +} else { + alert("오류로 인해 보내지 못하였습니다."); +} diff --git a/AvocadoAmber/plugin/sns/twitter/callback-sample.php b/AvocadoAmber/plugin/sns/twitter/callback-sample.php index fe55f88..12a0ea5 100644 --- a/AvocadoAmber/plugin/sns/twitter/callback-sample.php +++ b/AvocadoAmber/plugin/sns/twitter/callback-sample.php @@ -7,8 +7,8 @@ /* Start session and load lib */ session_start(); -require_once('twitteroauth/twitteroauth.php'); -require_once('config.php'); +include_once 'twitteroauth/twitteroauth.php'; +include_once 'config.php'; /* If the oauth_token is old redirect to the connect page. */ if (isset($_REQUEST['oauth_token']) && $_SESSION['oauth_token'] !== $_REQUEST['oauth_token']) { diff --git a/AvocadoAmber/plugin/sns/twitter/callback.php b/AvocadoAmber/plugin/sns/twitter/callback.php index c111d09..1ffb174 100644 --- a/AvocadoAmber/plugin/sns/twitter/callback.php +++ b/AvocadoAmber/plugin/sns/twitter/callback.php @@ -9,8 +9,8 @@ include_once "./_common.php"; /* Start session and load lib */ //session_start(); -require_once(G5_SNS_PATH . '/twitter/twitteroauth/twitteroauth.php'); -require_once(G5_SNS_PATH . '/twitter/twitterconfig.php'); +include_once G5_SNS_PATH . '/twitter/twitteroauth/twitteroauth.php'; +include_once G5_SNS_PATH . '/twitter/twitterconfig.php'; //print_r2($_SESSION); print_r2($_REQUEST); exit; diff --git a/AvocadoAmber/plugin/sns/twitter/connect.php b/AvocadoAmber/plugin/sns/twitter/connect.php index 6aa6d41..539045e 100644 --- a/AvocadoAmber/plugin/sns/twitter/connect.php +++ b/AvocadoAmber/plugin/sns/twitter/connect.php @@ -9,7 +9,7 @@ include_once "./_common.php"; /** * Exit with an error message if the CONSUMER_KEY or CONSUMER_SECRET is not defined. */ -require_once(G5_SNS_PATH.'/twitter/twitterconfig.php'); +include_once G5_SNS_PATH.'/twitter/twitterconfig.php'; if (CONSUMER_KEY === '' || CONSUMER_SECRET === '' || CONSUMER_KEY === 'CONSUMER_KEY_HERE' || CONSUMER_SECRET === 'CONSUMER_SECRET_HERE') { echo 'You need a consumer key and secret to test the sample code. Get one from dev.twitter.com/apps'; exit; diff --git a/AvocadoAmber/plugin/sns/twitter/index.php b/AvocadoAmber/plugin/sns/twitter/index.php index e02aced..6025c05 100644 --- a/AvocadoAmber/plugin/sns/twitter/index.php +++ b/AvocadoAmber/plugin/sns/twitter/index.php @@ -8,8 +8,8 @@ include_once "./_common.php"; /* Load required lib files. */ //session_start(); -require_once(G5_SNS_PATH.'/twitter/twitteroauth/twitteroauth.php'); -require_once(G5_SNS_PATH.'/twitter/twitterconfig.php'); +include_once G5_SNS_PATH.'/twitter/twitteroauth/twitteroauth.php'; +include_once G5_SNS_PATH.'/twitter/twitterconfig.php'; /* If access tokens are not available redirect to connect page. */ if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) { diff --git a/AvocadoAmber/plugin/sns/twitter/redirect.php b/AvocadoAmber/plugin/sns/twitter/redirect.php index 89a625f..cb610bd 100644 --- a/AvocadoAmber/plugin/sns/twitter/redirect.php +++ b/AvocadoAmber/plugin/sns/twitter/redirect.php @@ -3,8 +3,8 @@ include_once "./_common.php"; /* Start session and load library. */ //session_start(); -require_once(G5_SNS_PATH.'/twitter/twitteroauth/twitteroauth.php'); -require_once(G5_SNS_PATH.'/twitter/twitterconfig.php'); +include_once G5_SNS_PATH.'/twitter/twitteroauth/twitteroauth.php'; +include_once G5_SNS_PATH.'/twitter/twitterconfig.php'; /* Build TwitterOAuth object with client credentials. */ $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET); diff --git a/AvocadoAmber/plugin/sns/twitter/twitteroauth/twitteroauth.php b/AvocadoAmber/plugin/sns/twitter/twitteroauth/twitteroauth.php index 49bee14..c339f52 100644 --- a/AvocadoAmber/plugin/sns/twitter/twitteroauth/twitteroauth.php +++ b/AvocadoAmber/plugin/sns/twitter/twitteroauth/twitteroauth.php @@ -7,7 +7,7 @@ */ /* Load OAuth lib. You can find it at http://oauth.net */ -require_once('OAuth.php'); +include_once 'OAuth.php'; /** * Twitter OAuth class