일대일 문의 기능 추가

This commit is contained in:
chicpro
2013-11-06 10:05:02 +09:00
parent 223c271399
commit d0d8e3d2b7
58 changed files with 3509 additions and 17 deletions

View File

@ -2039,6 +2039,20 @@ function delete_editor_thumbnail($contents)
}
}
// 1:1문의 첨부파일 썸네일 삭제
function delete_qa_thumbnail($file)
{
if(!$file)
return;
$fn = preg_replace("/\.[^\.]+$/i", "", basename($file));
$files = glob(G5_DATA_PATH.'/qa/thumb-'.$fn.'*');
if (is_array($files)) {
foreach ($files as $filename)
unlink($filename);
}
}
// 스킨 style sheet 파일 얻기
function get_skin_stylesheet($skin_path, $dir='')
{
@ -2357,4 +2371,15 @@ function certify_count_check($mb_id, $type)
if((int)$row['cnt'] >= (int)$config['cf_cert_limit'])
alert_close('오늘 '.$cert.' 본인확인을 '.$row['cnt'].'회 이용하셔서 더 이상 이용할 수 없습니다.');
}
// 1:1문의 설정로드
function get_qa_config($fld='*')
{
global $g5;
$sql = " select $fld from {$g5['qa_config_table']} ";
$row = sql_fetch($sql);
return $row;
}
?>