diff --git a/adm/admin.lib.php b/adm/admin.lib.php index adf71fd6d..1f1245cff 100644 --- a/adm/admin.lib.php +++ b/adm/admin.lib.php @@ -159,7 +159,6 @@ function icon($act, $link='', $target='_parent') function rm_rf($file) { if (file_exists($file)) { - @chmod($file, G5_FILE_PERMISSION); if (is_dir($file)) { $handle = opendir($file); while($filename = readdir($handle)) { @@ -167,9 +166,13 @@ function rm_rf($file) rm_rf($file.'/'.$filename); } closedir($handle); - rmdir($file); - } else - unlink($file); + + @chmod($file, G5_DIR_PERMISSION); + @rmdir($file); + } else { + @chmod($file, G5_FILE_PERMISSION); + @unlink($file); + } } } diff --git a/adm/config_form.php b/adm/config_form.php index cec883d30..6dec4a4d5 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -1101,5 +1101,33 @@ function fconfigform_submit(f) diff --git a/adm/popular_rank.php b/adm/popular_rank.php index fc6ab489c..a6b396c47 100644 --- a/adm/popular_rank.php +++ b/adm/popular_rank.php @@ -1,7 +1,6 @@ 전체목록 diff --git a/adm/visit.sub.php b/adm/visit.sub.php index 7cb87dd68..b153152b1 100644 --- a/adm/visit.sub.php +++ b/adm/visit.sub.php @@ -1,9 +1,9 @@ $(function(){ - $("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" }); + $("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" }); }); function fvisit_submit(act) diff --git a/adm/visit_search.php b/adm/visit_search.php index 3408614ed..1c3d6c964 100644 --- a/adm/visit_search.php +++ b/adm/visit_search.php @@ -1,13 +1,13 @@ -처음'; //페이지 처음