diff --git a/system/admin/views/backup-start.html.php b/system/admin/views/backup-start.html.php index 15a53c1..aaaa353 100644 --- a/system/admin/views/backup-start.html.php +++ b/system/admin/views/backup-start.html.php @@ -14,7 +14,7 @@ $dir = 'backup'; if (is_dir($dir)) { Zip('content/', 'backup/' . $name . '_' . $timestamp . '.zip', true); } else { - mkdir($dir, 0777, true); + mkdir($dir, 0775, true); Zip('content/', 'backup/' . $name . '_' . $timestamp . '.zip', true); } diff --git a/system/admin/views/layout.html.php b/system/admin/views/layout.html.php index a3865bf..691fa18 100644 --- a/system/admin/views/layout.html.php +++ b/system/admin/views/layout.html.php @@ -11,13 +11,6 @@ -
diff --git a/system/admin/views/main.html.php b/system/admin/views/main.html.php index ac1bb47..6456848 100644 --- a/system/admin/views/main.html.php +++ b/system/admin/views/main.html.php @@ -13,18 +13,8 @@ if (isset($_SESSION[site_url()]['user'])) { if (config("views.counter") == "true") echo ''.i18n('Views').''; echo '' . i18n('Category') . '' . i18n('Tags') . '' . i18n('Operations') . ''; - $i = 0; - $len = count($posts); foreach ($posts as $p) { - if ($i == 0) { - $class = 'item first'; - } elseif ($i == $len - 1) { - $class = 'item last'; - } else { - $class = 'item'; - } - $i++; - echo ''; + echo ''; echo '' . $p->title . ''; echo '' . format_date($p->date) . ''; if (config("views.counter") == "true")