Browse Source

Cleanup

pull/674/head
danpros 1 year ago
parent
commit
93e9ae6f6e
3 changed files with 2 additions and 19 deletions
  1. +1
    -1
      system/admin/views/backup-start.html.php
  2. +0
    -7
      system/admin/views/layout.html.php
  3. +1
    -11
      system/admin/views/main.html.php

+ 1
- 1
system/admin/views/backup-start.html.php View File

@ -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);
}


+ 0
- 7
system/admin/views/layout.html.php View File

@ -11,13 +11,6 @@
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
</head>
<?php
if (isset($_GET['search'])) {
$search = _h($_GET['search']);
$url = site_url() . 'search/' . remove_accent($search);
header("Location: $url");
}
?>
<?php if (login()) { ?>
<body class="hold-transition sidebar-mini">
<div class="wrapper">


+ 1
- 11
system/admin/views/main.html.php View File

@ -13,18 +13,8 @@ if (isset($_SESSION[site_url()]['user'])) {
if (config("views.counter") == "true")
echo '<th>'.i18n('Views').'</th>';
echo '<th>' . i18n('Category') . '</th><th>' . i18n('Tags') . '</th><th>' . i18n('Operations') . '</th></tr>';
$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 '<tr class="' . $class . '">';
echo '<tr>';
echo '<td><a target="_blank" href="' . $p->url . '">' . $p->title . '</a></td>';
echo '<td>' . format_date($p->date) . '</td>';
if (config("views.counter") == "true")


Loading…
Cancel
Save