G4 경로 설정 수정

This commit is contained in:
chicpro
2013-01-31 15:25:25 +09:00
parent c4e8b73845
commit 119a3b0e61
3 changed files with 38 additions and 38 deletions

View File

@ -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 (!$is_member)
alert_close('회원만 메일을 발송할 수 있습니다.');
@ -9,9 +9,9 @@ if (!$is_member)
//if (substr_count($to_email, "@") > 3) alert("최대 3명까지만 메일을 발송할 수 있습니다.");
if (substr_count($to_email, "@") > 1) alert('메일 주소는 하나씩만 입력해 주십시오.');
if ($_SESSION["ss_recommend_datetime"] >= ($g4[server_time] - 120))
if ($_SESSION["ss_recommend_datetime"] >= ($g4['server_time'] - 120))
alert("너무 빠른 시간내에 메일을 연속해서 보낼 수 없습니다.");
set_session("ss_recommend_datetime", $g4[server_time]);
set_session("ss_recommend_datetime", $g4['server_time']);
$recommendmail_count = (int)get_session('ss_recommendmail_count') + 1;
if ($recommendmail_count > 3)
@ -28,19 +28,19 @@ if ($_POST["token"] && get_session("ss_token") == $_POST["token"]) {
}
// 상품
$sql = " select * from $g4[yc4_item_table] where it_id = '$it_id' ";
$sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
if (!$it[it_id])
if (!$it['it_id'])
alert("등록된 상품이 아닙니다.");
$subject = stripslashes($subject);
$content = nl2br(stripslashes($content));
$from_name = $member[mb_name];
$from_email = $member[mb_email];
$it_id = $it[it_id];
$it_name = $it[it_name];
$it_mimg = $it[it_id]."_m";
$from_name = $member['mb_name'];
$from_email = $member['mb_email'];
$it_id = $it['it_id'];
$it_name = $it['it_name'];
$it_mimg = $it['it_id']."_m";
ob_start();
include "./mail/itemrecommend.mail.php";