경로 수정 작업 중

This commit is contained in:
chicpro
2013-03-14 17:56:20 +09:00
parent 8ba59fe9b0
commit 1a60978568
1212 changed files with 39023 additions and 33180 deletions

View File

@ -1,51 +1,59 @@
<?
include_once("./_common.php");
include_once('./_common.php');
include_once("$g4[path]/head.sub.php");
include_once(G4_PATH.'/head.sub.php');
if (!$member[mb_id]) {
$href = "./login.php?$qstr&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id");
if ($is_guest) {
$href = './login.php?'.$qstr.'&amp;url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id);
echo <<<HEREDOC
<script type="text/javascript">
alert("회원만 접근 가능합니다.");
opener.location.href = "$href";
<script>
alert('회원만 접근 가능합니다.');
opener.location.href = '$href';
window.close();
</script>
<noscript>
<p>회원만 접근 가능합니다.</p>
<a href="$href">로그인하기</a>
</noscript>
HEREDOC;
exit;
}
echo <<<HEREDOC
<script type="text/javascript">
if (window.name != "scrap") {
alert("올바른 방법으로 사용해 주십시오.");
<script>
if (window.name != 'win_scrap') {
alert('올바른 방법으로 사용해 주십시오.');
window.close();
}
</script>
HEREDOC;
if ($write[wr_is_comment])
alert_close("코멘트는 스크랩 할 수 없습니다.");
if ($write['wr_is_comment'])
alert_close('코멘트는 스크랩 할 수 없습니다.');
$sql = " select count(*) as cnt from $g4[scrap_table]
where mb_id = '$member[mb_id]'
$sql = " select count(*) as cnt from {$g4['scrap_table']}
where mb_id = '{$member['mb_id']}'
and bo_table = '$bo_table'
and wr_id = '$wr_id' ";
$row = sql_fetch($sql);
if ($row[cnt]) {
if ($row['cnt']) {
echo <<<HEREDOC
<script type="text/javascript">
<script>
if (confirm('이미 스크랩하신 글 입니다.\\n\\n지금 스크랩을 확인하시겠습니까?'))
document.location.href = './scrap.php';
else
window.close();
</script>
<noscript>
<p>이미 스크랩하신 글 입니다.</p>
<a href="./scrap.php">스크랩 확인하기</a>
<a href="./board.php?bo_table={$bo_table}&amp;wr_id=$wr_id">돌아가기</a>
</noscript>
HEREDOC;
exit;
}
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
include_once("$member_skin_path/scrap_popin.skin.php");
include_once($member_skin_path.'/scrap_popin.skin.php');
include_once("$g4[path]/tail.sub.php");
include_once(G4_PATH.'/tail.sub.php');
?>