경로 및 파일명 수정
This commit is contained in:
12
bbs/ajax.mb_email.php
Normal file
12
bbs/ajax.mb_email.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
|
||||
$mb_email = escape_trim($_POST['reg_mb_email']);
|
||||
$mb_id = escape_trim($_POST['reg_mb_id']);
|
||||
|
||||
if ($msg = empty_mb_email($mb_email)) die($msg);
|
||||
if ($msg = valid_mb_email($mb_email)) die($msg);
|
||||
if ($msg = prohibit_mb_email($mb_email)) die($msg);
|
||||
if ($msg = exist_mb_email($mb_email, $mb_id)) die($msg);
|
||||
?>
|
||||
12
bbs/ajax.mb_id.php
Normal file
12
bbs/ajax.mb_id.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
|
||||
$mb_id = escape_trim($_POST['reg_mb_id']);
|
||||
|
||||
if ($msg = empty_mb_id($mb_id)) die($msg);
|
||||
if ($msg = valid_mb_id($mb_id)) die($msg);
|
||||
if ($msg = count_mb_id($mb_id)) die($msg);
|
||||
if ($msg = exist_mb_id($mb_id)) die($msg);
|
||||
if ($msg = reserve_mb_id($mb_id)) die($msg);
|
||||
?>
|
||||
12
bbs/ajax.mb_nick.php
Normal file
12
bbs/ajax.mb_nick.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
|
||||
$mb_nick = escape_trim($_POST['reg_mb_nick']);
|
||||
$mb_id = escape_trim($_POST['reg_mb_id']);
|
||||
|
||||
if ($msg = empty_mb_nick($mb_nick)) die($msg);
|
||||
if ($msg = valid_mb_nick($mb_nick)) die($msg);
|
||||
if ($msg = count_mb_nick($mb_nick)) die($msg);
|
||||
if ($msg = exist_mb_nick($mb_nick, $mb_id)) die($msg);
|
||||
?>
|
||||
@ -8,7 +8,7 @@ if ($board['bo_include_head']) {
|
||||
|
||||
// 게시판 관리의 상단 이미지 경로
|
||||
if ($board['bo_image_head']) {
|
||||
echo '<img src="'.G4_PATH.'/data/file/'.$bo_table.'/'.$board['bo_image_head'].'">';
|
||||
echo '<img src="'.G4_DATA_PATH.'/file/'.$bo_table.'/'.$board['bo_image_head'].'">';
|
||||
}
|
||||
|
||||
// 게시판 관리의 상단 내용
|
||||
|
||||
@ -8,7 +8,7 @@ if ($board['bo_content_tail']) {
|
||||
|
||||
// 게시판 관리의 하단 이미지 경로
|
||||
if ($board['bo_image_tail']) {
|
||||
echo '<img src="'.G4_PATH.'/data/file/'.$bo_table.'/'.$board['bo_image_tail'].'">';
|
||||
echo '<img src="'.G4_DATA_PATH.'/file/'.$bo_table.'/'.$board['bo_image_tail'].'">';
|
||||
}
|
||||
|
||||
// 게시판 관리의 하단 파일 경로
|
||||
|
||||
@ -80,7 +80,7 @@ while ($row = sql_fetch_array($result))
|
||||
$sql2 = " select * from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ";
|
||||
$result2 = sql_query($sql2);
|
||||
while ($row2 = sql_fetch_array($result2))
|
||||
@unlink(G4_PATH.'/data/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
@unlink(G4_DATA_PATH.'/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
|
||||
// 파일테이블 행 삭제
|
||||
sql_query(" delete from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
@ -34,7 +34,7 @@ if ($member['mb_level'] < $board['bo_download_level']) {
|
||||
alert($alert_msg.'\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.'&'.$qstr.'&url='.urlencode($g4['bbs_path'].'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
||||
}
|
||||
|
||||
$filepath = G4_PATH.'/data/file/'.$bo_table.'/'.$file['bf_file'];
|
||||
$filepath = G4_DATA_PATH.'/file/'.$bo_table.'/'.$file['bf_file'];
|
||||
$filepath = addslashes($filepath);
|
||||
if (!is_file($filepath) || !file_exists($filepath))
|
||||
alert('파일이 존재하지 않습니다.');
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
<?
|
||||
$g4_path = "../.."; // common.php 의 상대 경로
|
||||
include_once("$g4_path/common.php");
|
||||
include_once('../../common.php');
|
||||
?>
|
||||
@ -1,8 +1,6 @@
|
||||
<?
|
||||
// 상대 경로
|
||||
$g4_path = '..';
|
||||
include_once($g4_path.'/common.php');
|
||||
include_once(G4_PATH.'/lib/latest.lib.php');
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/latest.lib.php');
|
||||
|
||||
$g4['title'] = $group[gr_subject];
|
||||
include_once('./_head.php');
|
||||
@ -14,10 +12,7 @@ include_once('./_head.php');
|
||||
<td>
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]}
|
||||
where gr_id = '{$gr_id}'
|
||||
and bo_list_level <= '{$member[mb_level]}'
|
||||
order by bo_table ";
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' order by bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
|
||||
@ -12,7 +12,7 @@ if(!count($_POST['chk_bo_table']))
|
||||
alert("게시물을 ".$act."할 게시판을 한개 이상 선택해 주십시오.", $url);
|
||||
|
||||
// 원본 파일 디렉토리
|
||||
$src_dir = G4_PATH.'/data/file/'.$bo_table;
|
||||
$src_dir = G4_DATA_PATH.'/file/'.$bo_table;
|
||||
|
||||
$save = array();
|
||||
$save_count_write = 0;
|
||||
@ -31,8 +31,8 @@ while ($row = sql_fetch_array($result))
|
||||
$move_bo_table = $_POST['chk_bo_table'][$i];
|
||||
$move_write_table = $g4['write_prefix'] . $move_bo_table;
|
||||
|
||||
$src_dir = G4_PATH.'/data/file/'.$bo_table; // 원본 디렉토리
|
||||
$dst_dir = G4_PATH.'/data/file/'.$move_bo_table; // 복사본 디렉토리
|
||||
$src_dir = G4_DATA_PATH.'/file/'.$bo_table; // 원본 디렉토리
|
||||
$dst_dir = G4_DATA_PATH.'/file/'.$move_bo_table; // 복사본 디렉토리
|
||||
|
||||
$count_write = 0;
|
||||
$count_comment = 0;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
if ($is_member) {
|
||||
alert("이미 로그인중입니다.");
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
include_once(G4_PATH.'/lib/register.lib.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
|
||||
// 불법접근을 막도록 토큰생성
|
||||
$token = md5(uniqid(rand(), true));
|
||||
@ -103,7 +103,7 @@ if ($w == "") {
|
||||
include_once('./_head.php');
|
||||
|
||||
// 회원아이콘 경로
|
||||
$mb_icon = G4_PATH.'/data/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
||||
$mb_icon = G4_DATA_PATH.'/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
||||
|
||||
$register_action_url = G4_HTTPS_BBS_URL.'/register_form_update.php';
|
||||
$req_nick = !isset($member['mb_nick_date']) || (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_nick_modify'] * 86400)));
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
include_once(G4_PATH.'/lib/register.lib.php');
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
// 리퍼러 체크
|
||||
referer_check();
|
||||
@ -89,7 +89,7 @@ if ($w == '' || $w == 'u') {
|
||||
if ($msg = exist_mb_email($mb_email, $mb_id)) alert($msg);
|
||||
}
|
||||
|
||||
$mb_dir = G4_PATH.'/data/member/'.substr($mb_id,0,2);
|
||||
$mb_dir = G4_DATA_PATH.'/member/'.substr($mb_id,0,2);
|
||||
|
||||
// 아이콘 삭제
|
||||
if (isset($_POST['del_mb_icon'])) {
|
||||
|
||||
@ -113,10 +113,6 @@ else
|
||||
|
||||
include_once($board_skin_path.'/view_comment.skin.php');
|
||||
|
||||
// 필터
|
||||
//echo "<script> var g4_cf_filter = '$config['cf_filter']'; </script>\n";
|
||||
//echo "<script src='G4_PATH/js/filter.js'></script>\n";
|
||||
|
||||
if (!$member['mb_id']) // 비회원일 경우에만
|
||||
echo '<script src="'.G4_JS_URL.'/md5.js"></script>'.PHP_EOL;
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ if (!$bo_table) {
|
||||
|
||||
check_device($board['bo_device']);
|
||||
|
||||
@include_once (G4_PATH.'/skin/board/write.head.skin.php');
|
||||
@include_once (G4_SKIN_PATH.'/board/write.head.skin.php');
|
||||
@include_once ($board_skin_path.'/write.head.skin.php');
|
||||
|
||||
$notice_array = explode(',', trim($board['bo_notice']));
|
||||
|
||||
@ -194,7 +194,7 @@ if ($w == 'c') // 코멘트 입력
|
||||
// 4.00.15 - 메일로 보내는 코멘트의 바로가기 링크 수정
|
||||
$link_url = G4_BBS_URL."/board.php?bo_table=".$bo_table."&wr_id=".$wr_id."&".$qstr."#c_".$comment_id;
|
||||
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
ob_start();
|
||||
include_once ('./write_update_mail.php');
|
||||
|
||||
@ -562,7 +562,7 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
|
||||
$subject = '"'.$board['bo_subject'].'" 게시판에 '.$str.'글이 올라왔습니다.';
|
||||
$link_url = G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&'.$qstr;
|
||||
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
ob_start();
|
||||
include_once ('./write_update_mail.php');
|
||||
|
||||
Reference in New Issue
Block a user