Merge branch 'master' of github.com:gnuboard/g5 into g5
This commit is contained in:
@ -59,15 +59,19 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_
|
|||||||
|
|
||||||
if($tname) {
|
if($tname) {
|
||||||
if($edt) {
|
if($edt) {
|
||||||
|
// 오리지날 이미지
|
||||||
|
$ori = G5_URL.$data_path;
|
||||||
|
// 썸네일 이미지
|
||||||
$src = G5_URL.str_replace($filename, $tname, $data_path);
|
$src = G5_URL.str_replace($filename, $tname, $data_path);
|
||||||
} else {
|
} else {
|
||||||
|
$ori = G5_DATA_URL.'/file/'.$bo_table.'/'.$filename;
|
||||||
$src = G5_DATA_URL.'/file/'.$bo_table.'/'.$tname;
|
$src = G5_DATA_URL.'/file/'.$bo_table.'/'.$tname;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$thumb = array("src"=>$src, "alt"=>$alt);
|
$thumb = array("src"=>$src, "ori"=>$ori, "alt"=>$alt);
|
||||||
|
|
||||||
return $thumb;
|
return $thumb;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -93,7 +93,9 @@ class C_CT_CLI
|
|||||||
|
|
||||||
while ( list(,$i) = each($arg) )
|
while ( list(,$i) = each($arg) )
|
||||||
{
|
{
|
||||||
$exec_cmd .= " " . escapeshellarg( $i );
|
// 일부서버의 경우 빈값일때 '' 결과가 넘어오지 않는 버그가 있다. kagla 150820
|
||||||
|
//$exec_cmd .= " " . escapeshellarg( $i );
|
||||||
|
$exec_cmd .= " " . ( escapeshellarg($i) ? escapeshellarg($i) : "''" );
|
||||||
}
|
}
|
||||||
|
|
||||||
$rt = exec( $exec_cmd );
|
$rt = exec( $exec_cmd );
|
||||||
|
|||||||
Reference in New Issue
Block a user