Merge branch 'master' of github.com:gnuboard/g5 into g5
This commit is contained in:
@ -54,7 +54,7 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40, $cache_time=
|
|||||||
|
|
||||||
if($cache_fwrite) {
|
if($cache_fwrite) {
|
||||||
$handle = fopen($cache_file, 'w');
|
$handle = fopen($cache_file, 'w');
|
||||||
$cache_content = "<?php\nif (!defined('_GNUBOARD_')) exit;\n\$bo_subject=\"".$bo_subject."\";\n\$list=".var_export($list, true)."?>";
|
$cache_content = "<?php\nif (!defined('_GNUBOARD_')) exit;\n\$bo_subject='".$bo_subject."';\n\$list=".var_export($list, true)."?>";
|
||||||
fwrite($handle, $cache_content);
|
fwrite($handle, $cache_content);
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,9 +25,6 @@ function naver_syndi_ping($bo_table, $wr_id)
|
|||||||
// 토큰값이 없다면 네이버 신디케이션 사용안함
|
// 토큰값이 없다면 네이버 신디케이션 사용안함
|
||||||
if ($token == '') return 0;
|
if ($token == '') return 0;
|
||||||
|
|
||||||
// 토큰의 길이는 112 글자입니다.
|
|
||||||
if (strlen($token) != 112) return -1;
|
|
||||||
|
|
||||||
// 신디케이션 수집 제외게시판
|
// 신디케이션 수집 제외게시판
|
||||||
if (preg_match('#^('.$config['cf_syndi_except'].')$#', $bo_table)) return -2;
|
if (preg_match('#^('.$config['cf_syndi_except'].')$#', $bo_table)) return -2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user