Merge branch 'master' of github.com:gnuboard/g5
This commit is contained in:
@ -42,8 +42,17 @@ while ($row = sql_fetch_array($result))
|
||||
while ($row2 = sql_fetch_array($result2))
|
||||
{
|
||||
$nick = cut_str($member['mb_nick'], $config['cf_cut_name']);
|
||||
if (!$row2['wr_is_comment'] && $config['cf_use_copy_log'])
|
||||
$row2['wr_content'] .= "\n".'<div class="content_'.$sw.'">[이 게시물은 '.$nick.'님에 의해 '.G5_TIME_YMDHIS.' '.$board['bo_subject'].'에서 '.($sw == 'copy' ? '복사' : '이동').' 됨]</div>';
|
||||
if (!$row2['wr_is_comment'] && $config['cf_use_copy_log']) {
|
||||
if(strstr($row2['wr_option'], 'html')) {
|
||||
$log_tag1 = '<div class="content_'.$sw.'">';
|
||||
$log_tag2 = '</div>';
|
||||
} else {
|
||||
$log_tag1 = "\n";
|
||||
$log_tag2 = '';
|
||||
}
|
||||
|
||||
$row2['wr_content'] .= "\n".$log_tag1.'[이 게시물은 '.$nick.'님에 의해 '.G5_TIME_YMDHIS.' '.$board['bo_subject'].'에서 '.($sw == 'copy' ? '복사' : '이동').' 됨]'.$log_tag2;
|
||||
}
|
||||
|
||||
$sql = " insert into $move_write_table
|
||||
set wr_num = '$next_wr_num',
|
||||
|
||||
14
head.sub.php
14
head.sub.php
@ -37,6 +37,9 @@ if (G5_IS_MOBILE) {
|
||||
echo '<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=0,maximum-scale=10,user-scalable=yes">'.PHP_EOL;
|
||||
echo '<meta name="HandheldFriendly" content="true">'.PHP_EOL;
|
||||
echo '<meta name="format-detection" content="telephone=no">'.PHP_EOL;
|
||||
} else {
|
||||
echo '<meta http-equiv="imagetoolbar" content="no">'.PHP_EOL;
|
||||
echo '<meta http-equiv="X-UA-Compatible" content="IE=Edge">'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
<title><?php echo $g5_head_title; ?></title>
|
||||
@ -44,16 +47,13 @@ if (G5_IS_MOBILE) {
|
||||
if (defined('G5_IS_ADMIN')) {
|
||||
echo '<link rel="stylesheet" href="'.G5_CSS_URL.'/admin.css">'.PHP_EOL;
|
||||
} else {
|
||||
echo '<link rel="stylesheet" href="'.G5_CSS_URL.'/'.(G5_IS_MOBILE?'mobile':'default').'.css">'.PHP_EOL;
|
||||
// canonical 지정
|
||||
$canonical = '';
|
||||
if ($bo_table && $wr_id) $canonical = 'http://'.$_SERVER["HTTP_HOST"].'/bbs/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
||||
else $canonical = 'http://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
|
||||
echo '<link rel="canonical" href="'.$canonical.'">';
|
||||
|
||||
echo '<link rel="stylesheet" href="'.G5_CSS_URL.'/'.(G5_IS_MOBILE?'mobile':'default').'.css">'.PHP_EOL;
|
||||
if ($bo_table && $wr_id) $canonical = 'http://'.$_SERVER['HTTP_HOST'].'/bbs/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
||||
else $canonical = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
||||
echo '<link rel="canonical" href="'.$canonical.'">'.PHP_EOL;
|
||||
}
|
||||
echo '<meta http-equiv="imagetoolbar" content="no">';
|
||||
echo '<meta http-equiv="X-UA-Compatible" content="IE=Edge">';
|
||||
?>
|
||||
<!--[if lte IE 8]>
|
||||
<script src="<?php echo G5_JS_URL ?>/html5.js"></script>
|
||||
|
||||
@ -287,18 +287,6 @@ function get_file($bo_table, $wr_id)
|
||||
}
|
||||
|
||||
|
||||
// 게시글 리스트에 쓰일 1개의 파일 정보를 얻는다.
|
||||
function get_list_file($bo_table, $wr_id)
|
||||
{
|
||||
global $g5;
|
||||
|
||||
$sql = " select * from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '$wr_id' order by bf_no ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
return $row;
|
||||
}
|
||||
|
||||
|
||||
// 폴더의 용량 ($dir는 / 없이 넘기세요)
|
||||
function get_dirsize($dir)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user