Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
whitedot
2013-05-02 14:00:29 +09:00
26 changed files with 37 additions and 34 deletions

View File

@ -75,7 +75,10 @@ if ($w == '' || $w == 'u') {
if ($w=='') { if ($w=='') {
if ($msg = exist_mb_id($mb_id)) alert($msg); if ($msg = exist_mb_id($mb_id)) alert($msg);
if (!exist_mb_id($mb_recommend)) alert("추천인이 존재하지 않습니다."); if ($config['cf_use_recommend']) {
if (!exist_mb_id($mb_recommend))
alert("추천인이 존재하지 않습니다.");
}
if (strtolower($mb_id) == strtolower($mb_recommend)) { if (strtolower($mb_id) == strtolower($mb_recommend)) {
alert('본인을 추천할 수 없습니다.'); alert('본인을 추천할 수 없습니다.');

View File

@ -81,7 +81,7 @@ if ($w == 'c') // 댓글 입력
where wr_id = '$comment_id' "; where wr_id = '$comment_id' ";
$reply_array = sql_fetch($sql); $reply_array = sql_fetch($sql);
if (!$reply_array['wr_id']) if (!$reply_array['wr_id'])
alert('답변할 댓글 없습니다.\\n\\n답변하는 동안 댓글 삭제되었을 수 있습니다.'); alert('답변할 댓글 없습니다.\\n\\n답변하는 동안 댓글 삭제되었을 수 있습니다.');
$tmp_comment = $reply_array['wr_comment']; $tmp_comment = $reply_array['wr_comment'];

View File

@ -28,7 +28,7 @@ $subject_row = sql_fetch($sql);
$_link = './bbs/board.php?bo_table=%s&wr_id=%s'; $_link = './bbs/board.php?bo_table=%s&wr_id=%s';
$_sql = "insert into {$g4['syndi_log_table']} (content_id, bbs_id, title, link_alternative, delete_date) values('%s','%s','%s','%s','%s')"; $_sql = "insert into {$g4['syndi_log_table']} (content_id, bbs_id, title, link_alternative, delete_date) values('%s','%s','%s','%s','%s')";
sql_query(sprintf($_sql, $row['wr_id'], $bo_table, addslashes($subject_row['wr_subject']), sprintf($_link, $bo_table, $row['wr_id']), date('YmdHis'))); sql_query(sprintf($_sql, $row['wr_id'], $bo_table, addslashes($subject_row['wr_subject']), sprintf($_link, $bo_table, $row['wr_id']), date('YmdHis')), false);
$oPing = new SyndicationPing; $oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $bo_table)); $oPing->setId(SyndicationHandler::getTag('channel', $bo_table));

View File

@ -27,7 +27,7 @@ $subject_row = sql_fetch($sql);
$_link = './bbs/board.php?bo_table=%s&wr_id=%s'; $_link = './bbs/board.php?bo_table=%s&wr_id=%s';
$_sql = "insert into {$g4['syndi_log_table']} (content_id, bbs_id, title, link_alternative, delete_date) values('%s','%s','%s','%s','%s')"; $_sql = "insert into {$g4['syndi_log_table']} (content_id, bbs_id, title, link_alternative, delete_date) values('%s','%s','%s','%s','%s')";
sql_query(sprintf($_sql, $row['wr_id'], $bo_table, addslashes($subject_row['wr_subject']), sprintf($_link, $bo_table, $row['wr_id']), date('YmdHis'))); sql_query(sprintf($_sql, $row['wr_id'], $bo_table, addslashes($subject_row['wr_subject']), sprintf($_link, $bo_table, $row['wr_id']), date('YmdHis')), false);
$oPing = new SyndicationPing; $oPing = new SyndicationPing;
$oPing->setId(SyndicationHandler::getTag('channel', $bo_table)); $oPing->setId(SyndicationHandler::getTag('channel', $bo_table));

View File

@ -1,3 +1,3 @@
<? <?php
include_once('../../common.php'); include_once('../../common.php');
?> ?>

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -25,7 +25,7 @@ include_once('./_common.php');
<meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Pragma" content="no-cache"/>
</head> </head>
<body> <body>
<? <?php
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격 // <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격
$str = ""; $str = "";
$sql = " select * from {$g4['shop_item_table']} $sql = " select * from {$g4['shop_item_table']}

View File

@ -4,7 +4,7 @@
*/ */
include_once('./_common.php'); include_once('./_common.php');
?> ?>
<? <?php
echo $_SERVER['HTTP_HOST']; echo $_SERVER['HTTP_HOST'];
// \n상품코드#대분류#소분류#상품명#상품URL#가격 // \n상품코드#대분류#소분류#상품명#상품URL#가격

View File

@ -16,7 +16,7 @@ else
$delivery = (int)$tmp[0]; $delivery = (int)$tmp[0];
} }
?> ?>
<? <?php
// 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료 // 상품ID^카테고리^상품명^제조사^이미지URL^상품URL^가격^적립금^할인쿠폰^무이자할부^사은품^모델명^추가정보^출시일^배송료
$str = ""; $str = "";
$sql = " select * from {$g4['shop_item_table']} $sql = " select * from {$g4['shop_item_table']}

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
header("Content-Type: text/html; charset=utf-8"); header("Content-Type: text/html; charset=utf-8");

View File

@ -71,7 +71,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
</head> </head>
<body> <body>
<p align=center>상품수 : <?=number_format($total_count)?> 개 <p align=center>상품수 : <?php echo number_format($total_count); ?> 개
<table border="0" cellspacing="1" cellpadding="5" bgcolor="black" width="90%" align='center'> <table border="0" cellspacing="1" cellpadding="5" bgcolor="black" width="90%" align='center'>
<tr bgcolor="#ededed"> <tr bgcolor="#ededed">
@ -80,7 +80,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
<th>가격</th> <th>가격</th>
<th>재고유무</th> <th>재고유무</th>
</tr> </tr>
<? <?php
// 전체 페이지 계산 // 전체 페이지 계산
$total_page = ceil($total_count / $page_rows); $total_page = ceil($total_count / $page_rows);
// 페이지가 없으면 첫 페이지 (1 페이지) // 페이지가 없으면 첫 페이지 (1 페이지)
@ -122,7 +122,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
</table> </table>
<p align=center> <p align=center>
<?=paging(1000, $page, $total_page, "./enuri.php?ca_id=$caid&page=");?> <?php echo paging(1000, $page, $total_page, "./enuri.php?ca_id=$caid&page="); ?>
</body> </body>
</html> </html>

View File

@ -71,7 +71,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
</head> </head>
<body> <body>
<p align=center>상품수 : <?=number_format($total_count)?> 개 <p align=center>상품수 : <?php echo number_format($total_count); ?> 개
<table border="0" cellspacing="1" cellpadding="5" bgcolor="black" width="90%" align='center'> <table border="0" cellspacing="1" cellpadding="5" bgcolor="black" width="90%" align='center'>
<tr bgcolor="#ededed" align=center> <tr bgcolor="#ededed" align=center>
@ -86,7 +86,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
<td>제조사</td> <td>제조사</td>
<td>상품코드</td> <td>상품코드</td>
</tr> </tr>
<? <?php
// 전체 페이지 계산 // 전체 페이지 계산
$total_page = ceil($total_count / $page_rows); $total_page = ceil($total_count / $page_rows);
// 페이지가 없으면 첫 페이지 (1 페이지) // 페이지가 없으면 첫 페이지 (1 페이지)
@ -139,7 +139,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
</table> </table>
<p align=center> <p align=center>
<?=paging(1000, $page, $total_page, "./enuri.php?ca_id=$caid&page=");?> <?php echo paging(1000, $page, $total_page, "./enuri.php?ca_id=$caid&page="); ?>
</body> </body>
</html> </html>

View File

@ -1,4 +1,4 @@
<?PHP <?php
/* /*
** 가격비교사이트 에누리 분류페이지 ** 가격비교사이트 에누리 분류페이지
*/ */
@ -30,7 +30,7 @@ th,td {font-family:굴림; font-size:10pt ; height:15pt}
</tr> </tr>
<tr bgcolor="white"> <tr bgcolor="white">
<?PHP <?php
$url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); $url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
$sql =" SELECT LENGTH(ca_id)=2 AS cnt, ca_id $sql =" SELECT LENGTH(ca_id)=2 AS cnt, ca_id

View File

@ -78,7 +78,7 @@ body, td {font-family:굴림; font-size:10pt;}
<td>제조사</td> <td>제조사</td>
<td>이미지</td> <td>이미지</td>
</tr> </tr>
<? <?php
// 전체 페이지 계산 // 전체 페이지 계산
$total_page = ceil($total_count / $page_rows); $total_page = ceil($total_count / $page_rows);
// 페이지가 없으면 첫 페이지 (1 페이지) // 페이지가 없으면 첫 페이지 (1 페이지)
@ -124,7 +124,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
} }
?> ?>
<tr> <tr>
<td colspan=7><?=paging(1000, $page, $total_page, "./mymargin.php?page=");?> &nbsp;</td> <td colspan=7><?php echo paging(1000, $page, $total_page, "./mymargin.php?page="); ?> &nbsp;</td>
</tr> </tr>
</table> </table>

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -1,4 +1,4 @@
<? <?php
include_once('./_common.php'); include_once('./_common.php');
ob_start(); ob_start();

View File

@ -12,7 +12,7 @@ include_once('./_common.php');
<meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Pragma" content="no-cache"/>
</head> </head>
<body> <body>
<? <?php
// <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^가격 // <p>상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^가격
$str = ""; $str = "";
$sql = " select * from {$g4['shop_item_table']} $sql = " select * from {$g4['shop_item_table']}

View File

@ -68,7 +68,7 @@ body, td {font-family:굴림; font-size:9pt;}
<td width="80">할인쿠폰</td> <td width="80">할인쿠폰</td>
<td width="80">제조년월</td> <td width="80">제조년월</td>
</tr> </tr>
<? <?php
// 전체 페이지 계산 // 전체 페이지 계산
$total_page = ceil($total_count / $page_rows); $total_page = ceil($total_count / $page_rows);
// 페이지가 없으면 첫 페이지 (1 페이지) // 페이지가 없으면 첫 페이지 (1 페이지)
@ -124,7 +124,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
</table> </table>
<DIV> <DIV>
<p align=center> <p align=center>
<?=paging($page_rows, $page, $total_page, "./shopbinder.php?page=");?> <?php echo paging($page_rows, $page, $total_page, "./shopbinder.php?page="); ?>
</DIV> </DIV>
</body> </body>
</html> </html>

View File

@ -80,7 +80,7 @@ body, td {font-family:굴림; font-size:10pt;}
<td>모델명</td> <td>모델명</td>
<td>상품코드</td> <td>상품코드</td>
</tr> </tr>
<? <?php
// 전체 페이지 계산 // 전체 페이지 계산
$total_page = ceil($total_count / $page_rows); $total_page = ceil($total_count / $page_rows);
// 페이지가 없으면 첫 페이지 (1 페이지) // 페이지가 없으면 첫 페이지 (1 페이지)
@ -127,7 +127,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
?> ?>
</table> </table>
<p>총 <?=$total_count?>개 &nbsp;<?=paging(1000, $page, $total_page, "./yavis.php?page=");?> <p>총 <?php echo $total_count; ?>개 &nbsp;<?php echo paging(1000, $page, $total_page, "./yavis.php?page="); ?>
</body> </body>
</html> </html>

View File

@ -214,7 +214,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php if ($w == "" && $config['cf_use_recommend']) { ?> <?php if ($w == "" && $config['cf_use_recommend']) { ?>
<tr> <tr>
<th scope="row"><label for="reg_mb_recommend">추천인아이디</label></th> <th scope="row"><label for="reg_mb_recommend">추천인아이디</label></th>
<td><input type="text" name="mb_recommend" id="reg_mb_recommend" class="frm_input"></td> <td><input type="text" name="mb_recommend" id="reg_mb_recommend" class="frm_input" required></td>
</tr> </tr>
<?php } ?> <?php } ?>