경로 정리 - 큰일었어요!!!

This commit is contained in:
gnuboard
2013-01-27 15:48:08 +09:00
parent 5891f1a77a
commit 023d9233d2
623 changed files with 822 additions and 7680 deletions

View File

@ -1,4 +1,3 @@
<?
$g4_path = '..'; // common.php 의 상대 경로
include_once($g4_path.'/common.php');
include_once('../common.php');
?>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once($g4['path'].'/_head.php');
include_once(G4_PATH.'/_head.php');
?>

View File

@ -1,4 +1,4 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once($g4['path'].'/head.sub.php');
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_PATH.'/head.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once($g4['path'].'/_tail.php');
include_once(G4_PATH.'/_tail.php');
?>

View File

@ -1,4 +1,4 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once($g4['path'].'/tail.sub.php');
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -3,7 +3,7 @@ global $lo_location;
global $lo_url;
include_once('./_common.php');
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
// 필수 입력입니다.
// 양쪽 공백 없애기
// 필수 (선택 혹은 입력)입니다.
@ -61,5 +61,5 @@ document.location.href = "<? echo $url; ?>";
</noscript>
<?
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,6 +1,6 @@
<?
include_once('./_common.php');
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$msg2 = str_replace("\\n", "<br>", $msg);
@ -43,5 +43,5 @@ window.close();
</noscript>
<?
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,9 +1,8 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
if (!$board['bo_table']) {
alert('존재하지 않는 게시판입니다.', $g4['path']);
alert('존재하지 않는 게시판입니다.', G4_PATH);
}
if (isset($write['wr_is_comment']) && $write['wr_is_comment']) {
@ -38,7 +37,7 @@ if (isset($wr_id) && $wr_id) {
$sql = " select count(*) as cnt from {$g4['group_member_table']} where gr_id = '{$board['gr_id']}' and mb_id = '{$member['mb_id']}' ";
$row = sql_fetch($sql);
if (!$row['cnt']) {
alert("접근 권한이 없으므로 글읽기가 불가합니다.\\n\\n궁금하신 사항은 관리자에게 문의 바랍니다.", $g4['path']);
alert("접근 권한이 없으므로 글읽기가 불가합니다.\\n\\n궁금하신 사항은 관리자에게 문의 바랍니다.", $g4['url']);
}
}
}
@ -46,7 +45,7 @@ if (isset($wr_id) && $wr_id) {
// 로그인된 회원의 권한이 설정된 읽기 권한보다 작다면
if ($member['mb_level'] < $board['bo_read_level']) {
if ($is_member)
alert('글을 읽을 권한이 없습니다.', $g4['path']);
alert('글을 읽을 권한이 없습니다.', $g4['url']);
else
alert('글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&amp;url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id));
}
@ -124,7 +123,7 @@ if (isset($wr_id) && $wr_id) {
} else {
if ($member['mb_level'] < $board['bo_list_level']) {
if ($member['mb_id'])
alert('목록을 볼 권한이 없습니다.', $g4['path']);
alert('목록을 볼 권한이 없습니다.', $g4['url']);
else
alert('목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&amp;url='.urlencode('board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id));
}
@ -134,7 +133,7 @@ if (isset($wr_id) && $wr_id) {
$g4['title'] = $board['bo_subject'];
}
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$width = $board['bo_table_width'];
if ($width <= 100) $width .= '%';
@ -177,11 +176,11 @@ if ($board['bo_use_nogood'])
$admin_href = "";
// 최고관리자 또는 그룹관리자라면
if ($member['mb_id'] && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id']))
$admin_href = $g4['admin_path'].'/board_form.php?w=u&amp;bo_table='.$bo_table;
$admin_href = G4_ADM_URL.'/board_form.php?w=u&amp;bo_table='.$bo_table;
include_once('./board_head.php');
echo "<script src=\"".$g4['path']."/js/sideview.js\"></script>";
echo "<script src=\"".$g4['url']."/js/sideview.js\"></script>";
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
if (isset($wr_id) && $wr_id) {
@ -197,5 +196,5 @@ include_once('./board_tail.php');
echo "\n<!-- 사용스킨 : {$board['bo_skin']} -->\n";
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 게시판 관리의 상단 파일 경로
if ($board['bo_include_head']) {
@ -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_PATH.'/data/file/'.$bo_table.'/'.$board['bo_image_head'].'">';
}
// 게시판 관리의 상단 내용

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 게시판 관리의 하단 내용
if ($board['bo_content_tail']) {
@ -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_PATH.'/data/file/'.$bo_table.'/'.$board['bo_image_tail'].'">';
}
// 게시판 관리의 하단 파일 경로

View File

@ -1,32 +1,40 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
function editor_html($id, $content, $class="")
function editor_html($id, $content, $ckeditor=true, $class="")
{
if ( (isset($GLOBALS['is_dhtml_editor']) && $GLOBALS['is_dhtml_editor']) || !isset($GLOBALS['is_dhtml_editor']) ) {
$str = "<textarea id=\"$id\" name=\"$id\" class=\"ckeditor $class\" rows=\"10\" style=\"width:100%;\">$content</textarea>\n";
//if (G4_EDITOR) $str .= "<script>CKEDITOR.replace('$id',{height:'500px'});</script>\n";
} else {
$str = "<textarea id=\"$id\" name=\"$id\" class=\"$class\" rows=\"10\" style=\"width:100%;\">$content</textarea>\n";
global $g4;
static $js = true;
$html = "";
if ($js) {
$html .= PHP_EOL.'<script src="'.G4_CKEDITOR_URL.'/ckeditor.js"></script>';
$html .= PHP_EOL.'<script>var g4_ckeditor_url = "'.G4_CKEDITOR_URL.'";</script>';
$html .= PHP_EOL.'<script src="'.G4_CKEDITOR_URL.'/config.js"></script>';
$js = false;
}
return $str;
$ckeditor_class = $ckeditor ? "ckeditor" : "";
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$ckeditor_class $class\" style=\"width:100%;\">$content</textarea>";
return $html;
}
// textarea 로 값을 넘긴다. javascript 반드시 필요
function get_editor_js($id)
function get_editor_js($id, $ckeditor=true)
{
if ( (isset($GLOBALS['is_dhtml_editor']) && $GLOBALS['is_dhtml_editor']) || !isset($GLOBALS['is_dhtml_editor']) ) {
$str = "var {$id}_editor_data = CKEDITOR.instances.{$id}.getData();\n";
if ( $ckeditor ) {
return "var {$id}_editor_data = CKEDITOR.instances.{$id}.getData();\n";
} else {
$str = "var {$id}_editor = document.getElementById('{$id}');\n";
return "var {$id}_editor = document.getElementById('{$id}');\n";
}
return $str;
}
// textarea 의 값이 비어 있는지 검사
function chk_editor_js($id, $textarea_name="내용을")
function chk_editor_js($id, $ckeditor=true, $textarea_name="내용을")
{
if ( (isset($GLOBALS['is_dhtml_editor']) && $GLOBALS['is_dhtml_editor']) || !isset($GLOBALS['is_dhtml_editor']) ) {
if ( $ckeditor ) {
return "if (!{$id}_editor_data) { alert(\"$textarea_name 입력해 주십시오.\"); CKEDITOR.instances.{$id}.focus(); return false; }\n";
} else {
return "if (!{$id}_editor.value) { alert(\"$textarea_name 입력해 주십시오.\"); {$id}_editor.focus(); return false; }\n";

View File

@ -26,5 +26,5 @@ CKEDITOR.editorConfig = function( config ) {
config.fontSize_sizes = "7pt/9px;8pt/11px;9pt/12px;10pt/13px;11pt/15px;14pt/19px;18pt/24px;24pt/32px;36/48px;";
config.enterMode = CKEDITOR.ENTER_BR;
config.shiftEnterMode = CKEDITOR.ENTER_P;
config.filebrowserUploadUrl = g4_ckeditor_path+"/upload.php?type=Images";
config.filebrowserUploadUrl = g4_ckeditor_url+"/upload.php?type=Images";
};

View File

@ -1,12 +1,10 @@
<?php
define('G4_EDITOR', 1);
$g4_path = "../.."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
include_once("../../common.php");
$ym = date('ym', $g4['server_time']);
$ym = date('ym', G4_SERVER_TIME);
$data_dir = $g4['ckeditor_data_path'].'/'.$ym;
$data_url = $g4['ckeditor_data_url'].'/'.$ym;
$data_dir = G4_EDITOR_PATH.'/'.$ym;
$data_url = G4_EDITOR_URL.'/'.$ym;
@mkdir($data_dir, 0707);
@chmod($data_dir, 0707);
@ -14,8 +12,6 @@ $data_url = $g4['ckeditor_data_url'].'/'.$ym;
$funcNum = $_GET['CKEditorFuncNum'] ;
$CKEditor = $_GET['CKEditor'] ;
$langCode = $_GET['langCode'] ;
header("Content-Type: text/html; charset=$g4[charset]");
if(isset($_FILES['upload']['tmp_name'])) {
$file_name = $_FILES['upload']['name'];

View File

@ -1,6 +1,6 @@
<?
include_once('./_common.php');
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
?>
<article id="confirm_check">
@ -20,5 +20,5 @@ include_once($g4['path'].'/head.sub.php');
</article>
<?
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -26,7 +26,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$list[$i]['num'] = sprintf('%03d',$i+1);
}
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
echo '<script src="'.G4_PATH.'/js/sideview.js"></script>';
include_once($connect_skin_path.'/current_connect.skin.php');

View File

@ -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_PATH.'/data/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']}' ");

View File

@ -92,7 +92,7 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
$result2 = sql_query($sql2);
while ($row2 = sql_fetch_array($result2))
// 파일삭제
@unlink($g4['path'].'/data/file/'.$bo_table.'/'.$row2['bf_file']);
@unlink(G4_PATH.'/data/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']}' ");

View File

@ -34,7 +34,7 @@ if ($member['mb_level'] < $board['bo_download_level']) {
alert($alert_msg.'\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.'&amp;'.$qstr.'&amp;url='.urlencode($g4['bbs_path'].'/board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id));
}
$filepath = $g4['path'].'/data/file/'.$bo_table.'/'.$file['bf_file'];
$filepath = G4_PATH.'/data/file/'.$bo_table.'/'.$file['bf_file'];
$filepath = addslashes($filepath);
if (!is_file($filepath) || !file_exists($filepath))
alert('파일이 존재하지 않습니다.');

View File

@ -4,7 +4,7 @@ include_once('./_common.php');
$sql = " select mb_id, mb_email, mb_datetime from {$g4[member_table]} where mb_id = '{$mb_id}' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert('존재하는 회원이 아닙니다.', $g4['path']);
alert('존재하는 회원이 아닙니다.', G4_PATH);
if ($mb_md5)
{
@ -13,9 +13,9 @@ if ($mb_md5)
{
sql_query(" update {$g4[member_table]} set mb_email_certify = '{$g4[time_ymdhis]}' where mb_id = '{$mb_id}' ");
alert('E-mail 인증 처리를 완료 하였습니다.', $g4['path']);
alert('E-mail 인증 처리를 완료 하였습니다.', G4_PATH);
}
}
alert('제대로 된 값이 넘어오지 않았습니다.', $g4['path']);
alert('제대로 된 값이 넘어오지 않았습니다.', G4_PATH);
?>

View File

@ -4,7 +4,7 @@ include_once('./_common.php');
$sql = " select mb_id, mb_email, mb_datetime from {$g4[member_table]} where mb_id = '{$mb_id}' ";
$row = sql_fetch($sql);
if (!$row[mb_id])
alert('존재하는 회원이 아닙니다.', $g4['path']);
alert('존재하는 회원이 아닙니다.', G4_PATH);
if ($mb_md5)
{
@ -13,9 +13,9 @@ if ($mb_md5)
{
sql_query(" update {$g4[member_table]} set mb_mailling = 0 where mb_id = '{$mb_id}' ");
alert('정보메일을 보내지 않도록 수신거부 하였습니다.', $g4['path']);
alert('정보메일을 보내지 않도록 수신거부 하였습니다.', G4_PATH);
}
}
alert('제대로 된 값이 넘어오지 않았습니다.', $g4['path']);
alert('제대로 된 값이 넘어오지 않았습니다.', G4_PATH);
?>

View File

@ -26,7 +26,7 @@ if ($sendmail_count > 3)
alert_close('한번 접속후 일정수의 메일만 발송할 수 있습니다.\\n\\n계속해서 메일을 보내시려면 다시 로그인 또는 접속하여 주십시오.');
$g4['title'] = '메일 쓰기';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
if (!$name)
$name = base64_decode($email);
@ -39,5 +39,5 @@ $type_checked[$type] = 'checked';
include_once($member_skin_path.'/formmail.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,7 +1,7 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
include_once("{$g4['path']}/lib/mailer.lib.php");
include_once("{G4_PATH}/lib/mailer.lib.php");
if (!$config['cf_email_use'])
alert('환경설정에서 "메일발송 사용"에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.');
@ -46,9 +46,9 @@ mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file);
//$html_title = $tmp_to . "님께 메일발송";
$html_title = '메일 발송중';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
alert_close('메일을 정상적으로 발송하였습니다.');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -23,6 +23,7 @@ class gcaptcha
var $shadow = array('r'=>128, 'g'=>128, 'b'=>128);
var $captcha_length = 6;
var $captcha_filename = '';
// 이미지 크기
function set_box_size($width, $height) {
@ -99,7 +100,7 @@ class gcaptcha
// Replace path by your own font path
$fonts = Array();
foreach (glob($g4['gcaptcha_fonts'].'/*.ttf') as $filename) {
foreach (glob(G4_GCAPTCHA_PATH.'/fonts/*.ttf') as $filename) {
$fonts[] = $filename;
}
$font = $fonts[mt_rand(0, count($fonts)-1)];
@ -119,10 +120,34 @@ class gcaptcha
imagettftext($im, $size, $angle, $x-2, $y-2, $grey, $font, $captcha_key);
}
imagepng($im, captcha_file('.png'), 0, NULL);
$this->captcha_filename = $this->get_captcha_filename();
imagepng($im, G4_CACHE_PATH.'/'.$this->captcha_filename.'.png', 0, NULL);
imagedestroy($im);
make_wav();
$this->make_wav($this->captcha_filename.'.wav');
}
function get_captcha_filename()
{
return 'gcaptcha-'.abs_ip2long().'_'.$_COOKIE['PHPSESSID'];
}
function make_wav($captcha_filename)
{
global $g4;
$number = (string)$_SESSION['ss_captcha_key'];
$wavs = array();
for($i=0;$i<strlen($number);$i++){
$file = G4_GCAPTCHA_PATH.'/wavs/'.$number[$i].'.wav';
$wavs[] = $file;
}
$wav_filepath = G4_CACHE_PATH.'/'.$captcha_filename;
$fp = fopen($wav_filepath, 'w+');
fwrite($fp, join_wavs($wavs));
fclose($fp);
}
}
@ -147,10 +172,14 @@ function captcha_html($class="captcha")
$obj = new gcaptcha();
$obj->run();
$html = '<fieldset id="captcha" class="'.$class.'">';
$png_file_url = G4_CACHE_URL.'/'.$obj->captcha_filename.'.png';
$wav_file_url = G4_CACHE_URL.'/'.$obj->captcha_filename.'.wav';
$html .= PHP_EOL.'<script src="'.G4_GCAPTCHA_URL.'/gcaptcha.js"></script>';
$html .= '<fieldset id="captcha" class="'.$class.'">';
$html .= '<legend class="sound_only">스팸방지</legend>';
$html .= '<img src="'.captcha_file('.png').'" alt="스팸방지 숫자">';
$html .= '<a href="'.captcha_file('.wav').'" id="captcha_wav"><img src="'.$g4['bbs_path'].'/gcaptcha/img/sound.gif" alt="숫자를 음성으로 듣기"></a>';
$html .= '<img src="'.$png_file_url.'" alt="스팸방지 숫자">';
$html .= '<a href="'.$wav_file_url.'" id="captcha_wav" target="_blank"><img src="'.G4_GCAPTCHA_URL.'/img/sound.gif" alt="숫자를 음성으로 듣기"></a>';
$html .= '<input type="text" id="captcha_key" name="captcha_key" class="captcha_box fieldset_input" size="6" maxlength="6" required title="스팸방지 숫자 입력">';
$html .= '<p class="sound_only">스팸방지 숫자를 순서대로 입력하세요.</p>';
$html .= '</fieldset>';
@ -177,24 +206,6 @@ function chk_captcha_js()
return "if (!chk_captcha()) return false;";
}
function make_wav()
{
global $g4;
$number = (string)$_SESSION['ss_captcha_key'];
$wavs = array();
for($i=0;$i<strlen($number);$i++){
$file = $g4['gcaptcha_wavs'].'/'.$number[$i].'.wav';
$wavs[] = $file;
}
$wav_filepath = captcha_file('.wav');
$fp = fopen($wav_filepath, 'w+');
fwrite($fp, join_wavs($wavs));
fclose($fp);
}
function join_wavs($wavs)
{
$fields = join('/',array( 'H8ChunkID', 'VChunkSize', 'H8Format',
@ -240,12 +251,4 @@ function join_wavs($wavs)
.pack('V', strlen($data))
.$data;
}
// 캡챠 파일의 상대 경로를 반환
function captcha_file($extension='.png')
{
global $g4;
return $g4['cache_captcha_path'].'/'.abs_ip2long().'_'.$_COOKIE['PHPSESSID'].$extension;
}
?>

View File

@ -2,7 +2,7 @@
// 상대 경로
$g4_path = '..';
include_once($g4_path.'/common.php');
include_once($g4['path'].'/lib/latest.lib.php');
include_once(G4_PATH.'/lib/latest.lib.php');
$g4['title'] = $group[gr_subject];
include_once('./_head.php');

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 분류 사용 여부
$is_category = false;
@ -111,7 +111,7 @@ while ($row = sql_fetch_array($result))
if ($sca || $stx)
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' ");
$list[$i] = get_list($row, $board, $board_skin_path, $board['bo_subject_len']);
$list[$i] = get_list($row, $board, $board_skin_url, $board['bo_subject_len']);
if (strstr($sfl, 'subject')) {
$list[$i]['subject'] = search_font($stx, $list[$i]['subject']);
}

View File

@ -15,7 +15,7 @@ if ($is_member) {
if ($url)
goto_url($url);
else
goto_url($g4['path']);
goto_url($g4['url']);
}
if ($url)
@ -51,7 +51,7 @@ else
// 로그인 스킨이 없는 경우 관리자 페이지 접속이 안되는 것을 막기 위하여 기본 스킨으로 대체
$login_file = $member_skin_path.'/login.skin.php';
if (!file_exists($login_file)) {
$member_skin_path = $g4['path'].'/'.$g4['skin_dir'].'/member/basic';
$member_skin_path = G4_PATH.'/'.$g4['skin_dir'].'/member/basic';
}
include_once($member_skin_path.'/login.skin.php');

View File

@ -71,7 +71,7 @@ if ($url) {
}
}
} else {
$link = $g4['path'];
$link = G4_PATH;
}
goto_url($link);

View File

@ -18,9 +18,9 @@ if ($url) {
$link = $url;
} else if ($bo_table) {
$link = $g4['bbs_path'].'/board.php?bo_table='.$bo_table;
$link = G4_BBS_URL.'/board.php?bo_table='.$bo_table;
} else {
$link = $g4['path'];
$link = G4_URL;
}
goto_url($link);

View File

@ -2,7 +2,7 @@
include_once('./_common.php');
$g4['title'] = 'E-mail 중복확인';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$mb_email = trim($mb_email);
@ -41,5 +41,5 @@ HEREDOC;
}
}
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -2,7 +2,7 @@
include_once('./_common.php');
$g4['title'] = '회원아이디 중복확인';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$mb_id = trim($mb_id);
@ -35,5 +35,5 @@ if ($mb[mb_id]) {
}
}
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -19,7 +19,7 @@ sql_query($sql);
session_unregister("ss_mb_id");
if (!$url)
$url = $g4['path'];
$url = G4_PATH;
alert(''.$member[mb_nick].'님께서는 '. date("Y년 m월 d일") .'에 회원에서 탈퇴 하셨습니다.', $url);
?>

View File

@ -2,7 +2,7 @@
include_once('./_common.php');
$g4['title'] = '별명 중복확인';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$mb_nick = trim($mb_nick);
@ -47,5 +47,5 @@ if ($mb[mb_nick]) {
}
}
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -5,7 +5,7 @@ if ($is_guest)
alert_close('회원만 이용하실 수 있습니다.');
$g4['title'] = '내 쪽지함';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
// 설정일이 지난 메모 삭제
$sql = " delete from {$g4['memo_table']}
@ -74,9 +74,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list[$i]['del_href'] = './memo_delete.php?me_id='.$row['me_id'].'&amp;kind='.$kind;
}
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
echo '<script src="'.G4_PATH.'/js/sideview.js"></script>';
include_once($member_skin_path.'/memo.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -33,7 +33,7 @@ if ($me_recv_mb_id)
}
$g4['title'] = '쪽지 보내기';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
if ($g4['https_url'])
$memo_action_url = "{$g4['https_url']}/{$g4['bbs']}/memo_form_update.php";
@ -42,5 +42,5 @@ else
include_once($member_skin_path.'/memo_form.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -27,7 +27,7 @@ else
}
$g4['title'] = $t.' 쪽지 보기';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$sql = " select * from {$g4['memo_table']}
where me_id = '$me_id'
@ -63,11 +63,11 @@ else
$mb = get_member($memo['me_'.$unkind.'_mb_id']);
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
echo '<script src="'.G4_PATH.'/js/sideview.js"></script>';
$member_skin_path = $g4['path'].'/skin/member/'.$config['cf_member_skin'];
$member_skin_path = G4_PATH.'/skin/member/'.$config['cf_member_skin'];
include_once($member_skin_path.'/memo_view.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,6 +1,6 @@
<?php
include_once('./_common.php');
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
?>
<script>
@ -22,10 +22,10 @@ if(confirm("<? echo $memo_msg; ?>")) {
</p>
<a href="<? echo $g4['bbs_path']; ?>/memo.php" target="_blank">확인</a>
<a href="<? echo $$g4['path']; ?>">취소</a><br><br>
<a href="<? echo $G4_PATH; ?>">취소</a><br><br>
</article>
</noscript>
<?php
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -13,7 +13,7 @@ if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
alert_close("게시판 관리자 이상 접근이 가능합니다.");
$g4['title'] = '게시물 ' . $act;
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$wr_id_list = '';
if ($wr_id)
@ -134,5 +134,5 @@ function fboardmoveall_submit(f)
</td></tr></table>
<?
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -12,7 +12,7 @@ if(!count($_POST['chk_bo_table']))
alert("게시물을 ".$act."할 게시판을 한개 이상 선택해 주십시오.", $url);
// 원본 파일 디렉토리
$src_dir = $g4['path'].'/data/file/'.$bo_table;
$src_dir = G4_PATH.'/data/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_PATH.'/data/file/'.$bo_table; // 원본 디렉토리
$dst_dir = G4_PATH.'/data/file/'.$move_bo_table; // 복사본 디렉토리
$count_write = 0;
$count_comment = 0;

View File

@ -105,7 +105,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$write_pages = get_paging($config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&amp;view=$view&amp;mb_id=$mb_id&amp;page=");
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>'.PHP_EOL;
echo '<script src="'.G4_PATH.'/js/sideview.js"></script>'.PHP_EOL;
include_once($new_skin_path.'/new.skin.php');

View File

@ -24,7 +24,7 @@ switch ($w) {
alert('w 값이 제대로 넘어오지 않았습니다.');
}
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
if ($board['bo_include_head']) { @include ($board['bo_include_head']); }
if ($board['bo_content_head']) { echo stripslashes($board['bo_content_head']); }
@ -34,5 +34,5 @@ include_once($member_skin_path.'/password.skin.php');
if ($board['bo_content_tail']) { echo stripslashes($board['bo_content_tail']); }
if ($board['bo_include_tail']) { @include ($board['bo_include_tail']); }
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -7,7 +7,7 @@ if ($is_member) {
}
$g4['title'] = '회원아이디/패스워드 찾기';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
if ($g4['https_url'])
$action_url = "{$g4['https_url']}/{$g4['bbs']}/password_lost2.php";
@ -16,5 +16,5 @@ else
include_once($member_skin_path.'/password_lost.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,7 +1,7 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
include_once($g4['path'].'/lib/mailer.lib.php');
include_once(G4_PATH.'/lib/mailer.lib.php');
if ($is_member) {
alert("이미 로그인중입니다.");

View File

@ -5,7 +5,7 @@ if (!$member[mb_id])
alert_close('회원만 조회하실 수 있습니다.');
$g4['title'] = $member[mb_nick].' 님의 포인트 내역';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$list = array();
@ -117,5 +117,5 @@ $(function() {
</script>
<?
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,6 +1,6 @@
<?
include_once('./_common.php');
include_once($g4['path'].'/lib/mailer.lib.php');
include_once(G4_PATH.'/lib/mailer.lib.php');
if ($w == "")
{

View File

@ -1,6 +1,6 @@
<?
// 설문조사 기타의견 입력시 관리자께 보내는 메일을 수정하고 싶으시다면 이 파일을 수정하십시오.
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<head>

View File

@ -84,12 +84,12 @@ for ($i=0; $row2=sql_fetch_array($result); $i++) {
$list3[$i]['subject'] = cut_str($row2['po_subject'],60,"");
}
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
echo '<script src="'.G4_PATH.'/js/sideview.js"></script>';
if (!file_exists($poll_skin_path.'/poll_result.skin.php')) die('skin error');
include_once ($poll_skin_path.'/poll_result.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -56,5 +56,5 @@ if (get_cookie('ck_po_id') != $po['po_id']) {
set_cookie('ck_po_id', $po['po_id'], 86400 * 15); // 투표 쿠키 보름간 저장
//goto_url($g4['bbs_url'].'/poll_result.php?po_id='.$po_id.'&amp;skin_dir='.$skin_dir);
goto_url("{$g4['bbs_url']}/poll_result.php?po_id=$po_id&skin_dir={$_POST['skin_dir']}");
goto_url(G4_BBS_URL."/poll_result.php?po_id=$po_id&skin_dir={$_POST['skin_dir']}");
?>

View File

@ -15,7 +15,7 @@ if (!$mb['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id)
alert_close('정보공개를 하지 않았습니다.');
$g4['title'] = $mb['mb_nick'].'님의 자기소개';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$mb_nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage'], $mb['mb_open']);
@ -27,9 +27,9 @@ $mb_reg_after = $row['days'];
$mb_homepage = set_http($mb['mb_homepage']);
$mb_profile = $mb['mb_profile'] ? conv_content($mb['mb_profile'],0) : '소개 내용이 없습니다.';
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
echo '<script src="'.G4_PATH.'/js/sideview.js"></script>';
include_once($member_skin_path.'/profile.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -3,7 +3,7 @@ include_once('./_common.php');
// 로그인중인 경우 회원가입 할 수 없습니다.
if ($is_member) {
goto_url($g4['path']);
goto_url(G4_PATH);
}
// 세션을 지웁니다.

View File

@ -1,7 +1,7 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
include_once($g4['path'].'/lib/register.lib.php');
include_once(G4_PATH.'/lib/register.lib.php');
// 불법접근을 막도록 토큰생성
$token = md5(uniqid(rand(), true));
@ -13,7 +13,7 @@ if ($w == "") {
// 경고창이 뜨는것을 막기위해 아래의 코드로 대체
// alert("이미 로그인중이므로 회원 가입 하실 수 없습니다.", "./");
if ($is_member) {
goto_url($g4['path']);
goto_url(G4_PATH);
}
// 리퍼러 체크
@ -45,10 +45,10 @@ if ($w == "") {
} else if ($w == 'u') {
if ($is_admin)
alert('관리자의 회원정보는 관리자 화면에서 수정해 주십시오.', $g4['path']);
alert('관리자의 회원정보는 관리자 화면에서 수정해 주십시오.', $g4['url']);
if (!$member[mb_id])
alert('로그인 후 이용하여 주십시오.', $g4['path']);
alert('로그인 후 이용하여 주십시오.', $g4['url']);
if ($member[mb_id] != $mb_id)
alert('로그인된 회원과 넘어온 정보가 서로 다릅니다.');
@ -103,7 +103,7 @@ if ($w == "") {
$captcha_html = captcha_html();
// 회원아이콘 경로
$mb_icon = $g4['path'].'/data/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
$mb_icon = G4_PATH.'/data/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
include_once('./_head.php');

View File

@ -1,8 +1,8 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
include_once($g4['path'].'/lib/register.lib.php');
include_once($g4['path'].'/lib/mailer.lib.php');
include_once(G4_PATH.'/lib/register.lib.php');
include_once(G4_PATH.'/lib/mailer.lib.php');
// 리퍼러 체크
referer_check();
@ -12,7 +12,7 @@ if (!($w == '' || $w == 'u')) {
}
if ($w == 'u' && $is_admin == 'super') {
if (file_exists($g4['path'].'/DEMO'))
if (file_exists(G4_PATH.'/DEMO'))
alert('데모 화면에서는 하실(보실) 수 없는 작업입니다.');
}
@ -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_PATH.'/data/member/'.substr($mb_id,0,2);
// 아이콘 삭제
if (isset($_POST['del_mb_icon'])) {
@ -307,7 +307,7 @@ if ($w == '') {
// 사용자 코드 실행
@include_once ($g4['path'].'/skin/member/'.$config['cf_member_skin'].'/register_update.skin.php');
@include_once (G4_PATH.'/skin/member/'.$config['cf_member_skin'].'/register_update.skin.php');
if ($msg)
@ -321,7 +321,7 @@ if ($w == "") {
if ($old_email != $mb_email && $config['cf_use_email_certify']) {
set_session("ss_mb_id", "");
alert('회원 정보가 수정 되었습니다.\n\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', $g4['path']);
alert('회원 정보가 수정 되었습니다.\n\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', G4_PATH);
} else {
alert('회원 정보가 수정 되었습니다.', $g4['url']);
/*

View File

@ -1,6 +1,6 @@
<?
// 회원가입축하 메일 (회원님께 발송)
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<head>

View File

@ -1,6 +1,6 @@
<?
// 회원가입 메일 (관리자 메일로 발송)
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<head>

View File

@ -1,6 +1,6 @@
<?
// E-mail 수정시 인증 메일 (회원님께 발송)
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<head>

View File

@ -6,7 +6,7 @@ if (isset($_SESSION['ss_mb_reg']))
// 회원정보가 없다면 초기 페이지로 이동
if (!$mb['mb_id'])
goto_url($g4['path']);
goto_url(G4_PATH);
$g4['title'] = '회원가입이 완료되었습니다.';
include_once('./_head.php');

View File

@ -5,7 +5,7 @@ if (!$is_member)
alert_close('회원만 조회하실 수 있습니다.');
$g4['title'] = $member['mb_nick'].'님의 스크랩';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
$list = array();
@ -58,5 +58,5 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
include_once($member_skin_path.'/scrap.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,7 +1,7 @@
<?
include_once('./_common.php');
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
if ($is_guest) {
$href = './login.php?'.$qstr.'&amp;url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id);
@ -55,5 +55,5 @@ HEREDOC;
include_once($member_skin_path.'/scrap_popin.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,7 +1,7 @@
<?
include_once('./_common.php');
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
if (!$is_member)
{

View File

@ -212,7 +212,7 @@ if ($stx) {
$write_pages = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$search_query.'&amp;gr_id='.$gr_id.'&amp;srows='.$srows.'&amp;onetable='.$onetable.'&amp;page=');
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
echo '<script src="'.G4_PATH.'/js/sideview.js"></script>';
}
$group_select = '<select id="gr_id" name="gr_id" class="select" title="그룹선택"><option value="">전체 분류';

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 게시판에서 두단어 이상 검색 후 검색된 게시물에 코멘트를 남기면 나오던 오류 수정
$sop = strtolower($sop);

View File

@ -1,5 +1,6 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
$captcha_html = "";
if ($is_guest) {
@ -114,10 +115,10 @@ 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";
//echo "<script src='G4_PATH/js/filter.js'></script>\n";
if (!$member['mb_id']) // 비회원일 경우에만
echo '<script src="'.$g4['path'].'/js/md5.js"></script>'.PHP_EOL;
echo '<script src="'.G4_PATH.'/js/md5.js"></script>'.PHP_EOL;
@include_once($board_skin_path.'/view_comment.tail.skin.php');
?>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 컴퓨터의 아이피와 쿠키에 저장된 아이피가 다르다면 테이블에 반영함
if (get_cookie('ck_visit_ip') != $_SERVER['REMOTE_ADDR']) {

View File

@ -1,21 +1,21 @@
<?
define('G4_EDITOR', 1);
define('G4_CAPTCHA', 1);
include_once('./_common.php');
include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
set_session('ss_bo_table', $bo_table);
set_session('ss_wr_id', $wr_id);
// 090713
if (!$board['bo_table']) {
alert('존재하지 않는 게시판입니다.', $g4['path']);
alert('존재하지 않는 게시판입니다.', G4_URL);
}
if (!$bo_table) {
alert("bo_table 값이 넘어오지 않았습니다.\\nwrite.php?bo_table=code 와 같은 방식으로 넘겨 주세요.", $g4['path']);
alert("bo_table 값이 넘어오지 않았습니다.\\nwrite.php?bo_table=code 와 같은 방식으로 넘겨 주세요.", G4_URL);
}
@include_once ($g4['path'].'/skin/board/write.head.skin.php');
@include_once (G4_PATH.'/skin/board/write.head.skin.php');
@include_once ($board_skin_path.'/write.head.skin.php');
$notice_array = explode(',', trim($board['bo_notice']));
@ -25,7 +25,7 @@ if (!($w == '' || $w == 'u' || $w == 'r')) {
}
if (($w == 'u' || $w == 'r') && !$write['wr_id']) {
alert("글이 존재하지 않습니다.\\n삭제되었거나 이동된 경우입니다.", $g4['path']);
alert("글이 존재하지 않습니다.\\n삭제되었거나 이동된 경우입니다.", G4_URL);
}
if ($w == '') {
@ -283,7 +283,7 @@ if ($w == '') {
$email = $write['wr_email'];
$homepage = get_text($write['wr_homepage']);
for ($i=1; $i<=$g4['link_count']; $i++) {
for ($i=1; $i<=G4_LINK_COUNT; $i++) {
$write['wr_link'.$i] = get_text($write['wr_link'.$i]);
$link[$i] = $write['wr_link'.$i];
}
@ -309,7 +309,7 @@ if ($w == '') {
$password_required = "required";
for ($i=1; $i<=$g4['link_count']; $i++) {
for ($i=1; $i<=G4_LINK_COUNT; $i++) {
$write['wr_link'.$i] = get_text($write['wr_link'.$i]);
}
}
@ -346,18 +346,18 @@ if ($is_guest) {
$captcha_html = captcha_html();
}
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
include_once('./board_head.php');
if ($g4['https_url'])
$action_url = "{$g4['https_url']}/{$g4['bbs']}/write_update.php";
else
$action_url = "{$g4['url']}/{$g4['bbs']}/write_update.php";
$action_url = G4_BBS_URL."/write_update.php";
include_once ($board_skin_path.'/write.skin.php');
include_once('./board_tail.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
@include_once ($board_skin_path.'/write.tail.skin.php');
?>

View File

@ -195,7 +195,7 @@ if ($w == 'c') // 코멘트 입력
// 4.00.15 - 메일로 보내는 코멘트의 바로가기 링크 수정
$link_url = $g4['url']."/".$g4['bbs']."/board.php?bo_table=".$bo_table."&amp;wr_id=".$wr_id."&amp;".$qstr."#c_".$comment_id;
include_once($g4['path'].'/lib/mailer.lib.php');
include_once(G4_PATH.'/lib/mailer.lib.php');
ob_start();
include_once ('./write_update_mail.php');

View File

@ -1,6 +1,6 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
$g4['title'] = '게시글 저장';
@ -165,8 +165,8 @@ if (!isset($_POST['wr_subject']) || !trim($_POST['wr_subject']))
alert('제목을 입력하여 주십시오.');
// 디렉토리가 없다면 생성합니다. (퍼미션도 변경하구요.)
@mkdir($g4['path'].'/data/file/'.$bo_table, 0707);
@chmod($g4['path'].'/data/file/'.$bo_table, 0707);
@mkdir(G4_DATA_PATH.'/file/'.$bo_table, 0707);
@chmod(G4_DATA_PATH.'/file/'.$bo_table, 0707);
$chars_array = array_merge(range(0,9), range('a','z'), range('A','Z'));
@ -187,7 +187,7 @@ for ($i=0; $i<count($_FILES['bf_file']['name']); $i++) {
$upload[$i]['del_check'] = true;
$row = sql_fetch(" select bf_file from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '{$i}' ");
@unlink($g4['path'].'/data/file/'.$bo_table.'/'.$row['bf_file']);
@unlink(G4_DATA_PATH.'/file/'.$bo_table.'/'.$row['bf_file']);
}
else
$upload[$i]['del_check'] = false;
@ -235,7 +235,7 @@ for ($i=0; $i<count($_FILES['bf_file']['name']); $i++) {
if ($w == 'u') {
// 존재하는 파일이 있다면 삭제합니다.
$row = sql_fetch(" select bf_file from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$i' ");
@unlink($g4['path'].'/data/file/'.$bo_table.'/'.$row['bf_file']);
@unlink(G4_DATA_PATH.'/file/'.$bo_table.'/'.$row['bf_file']);
}
// 프로그램 원래 파일명
@ -256,7 +256,7 @@ for ($i=0; $i<count($_FILES['bf_file']['name']); $i++) {
//$upload[$i]['file'] = abs(ip2long($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.str_replace('%', '', urlencode($filename));
$upload[$i]['file'] = abs(ip2long($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.str_replace('%', '', urlencode(str_replace(' ', '_', $filename)));
$dest_file = $g4['path'].'/data/file/'.$bo_table.'/'.$upload[$i]['file'];
$dest_file = G4_DATA_PATH.'/file/'.$bo_table.'/'.$upload[$i]['file'];
// 업로드가 안된다면 에러메세지 출력하고 죽어버립니다.
$error_code = move_uploaded_file($tmp_file, $dest_file) or die($_FILES['bf_file']['error'][$i]);
@ -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['url'].'/'.$g4['bbs'].'/board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id.'&amp;'.$qstr;
include_once($g4['path'].'/lib/mailer.lib.php');
include_once(G4_PATH.'/lib/mailer.lib.php');
ob_start();
include_once ('./write_update_mail.php');

View File

@ -1,6 +1,6 @@
<?
// 게시물 입력시 게시자, 관리자에게 드리는 메일을 수정하고 싶으시다면 이 파일을 수정하십시오.
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<head>

View File

@ -63,9 +63,9 @@ if ($addr1)
*/
$g4['title'] = '우편번호 검색';
include_once($g4['path'].'/head.sub.php');
include_once(G4_PATH.'/head.sub.php');
include_once($member_skin_path.'/zip.skin.php');
include_once($g4['path'].'/tail.sub.php');
include_once(G4_PATH.'/tail.sub.php');
?>