php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
include_once('../../common.php');
|
||||
?>
|
||||
include_once('../../common.php');
|
||||
@ -50,5 +50,4 @@ function f_get_parm_int( $val )
|
||||
|
||||
return $ret_val;
|
||||
}
|
||||
/* ============================================================================== */
|
||||
?>
|
||||
/* ============================================================================== */;
|
||||
@ -237,5 +237,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -109,17 +109,15 @@ class C_CT_CLI
|
||||
if ( is_array( $arg[0] ) ) $arg = $arg[0];
|
||||
|
||||
$exec_cmd = array_shift( $arg );
|
||||
|
||||
while ( list(,$i) = each($arg) )
|
||||
{
|
||||
// 일부서버의 경우 빈값일때 '' 결과가 넘어오지 않는 버그가 있다. kagla 150820
|
||||
//$exec_cmd .= " " . escapeshellarg( $i );
|
||||
$exec_cmd .= " " . ( escapeshellarg($i) ? escapeshellarg($i) : "''" );
|
||||
}
|
||||
|
||||
foreach($arg as $k => $i) {
|
||||
// 일부서버의 경우 빈값일때 '' 결과가 넘어오지 않는 버그가 있다. kagla 150820
|
||||
//$exec_cmd .= " " . escapeshellarg( $i );
|
||||
$exec_cmd .= " " . ( escapeshellarg($i) ? escapeshellarg($i) : "''" );
|
||||
}
|
||||
|
||||
$rt = exec( $exec_cmd );
|
||||
|
||||
return $rt;
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
Reference in New Issue
Block a user