mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 19:26:08 +05:30
Cleanup
This commit is contained in:
parent
aa026234d2
commit
93e9ae6f6e
3 changed files with 2 additions and 19 deletions
|
|
@ -14,7 +14,7 @@ $dir = 'backup';
|
||||||
if (is_dir($dir)) {
|
if (is_dir($dir)) {
|
||||||
Zip('content/', 'backup/' . $name . '_' . $timestamp . '.zip', true);
|
Zip('content/', 'backup/' . $name . '_' . $timestamp . '.zip', true);
|
||||||
} else {
|
} else {
|
||||||
mkdir($dir, 0777, true);
|
mkdir($dir, 0775, true);
|
||||||
Zip('content/', 'backup/' . $name . '_' . $timestamp . '.zip', true);
|
Zip('content/', 'backup/' . $name . '_' . $timestamp . '.zip', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,6 @@
|
||||||
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
|
<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>
|
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<?php
|
|
||||||
if (isset($_GET['search'])) {
|
|
||||||
$search = _h($_GET['search']);
|
|
||||||
$url = site_url() . 'search/' . remove_accent($search);
|
|
||||||
header("Location: $url");
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<?php if (login()) { ?>
|
<?php if (login()) { ?>
|
||||||
<body class="hold-transition sidebar-mini">
|
<body class="hold-transition sidebar-mini">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,8 @@ if (isset($_SESSION[site_url()]['user'])) {
|
||||||
if (config("views.counter") == "true")
|
if (config("views.counter") == "true")
|
||||||
echo '<th>'.i18n('Views').'</th>';
|
echo '<th>'.i18n('Views').'</th>';
|
||||||
echo '<th>' . i18n('Category') . '</th><th>' . i18n('Tags') . '</th><th>' . i18n('Operations') . '</th></tr>';
|
echo '<th>' . i18n('Category') . '</th><th>' . i18n('Tags') . '</th><th>' . i18n('Operations') . '</th></tr>';
|
||||||
$i = 0;
|
|
||||||
$len = count($posts);
|
|
||||||
foreach ($posts as $p) {
|
foreach ($posts as $p) {
|
||||||
if ($i == 0) {
|
echo '<tr>';
|
||||||
$class = 'item first';
|
|
||||||
} elseif ($i == $len - 1) {
|
|
||||||
$class = 'item last';
|
|
||||||
} else {
|
|
||||||
$class = 'item';
|
|
||||||
}
|
|
||||||
$i++;
|
|
||||||
echo '<tr class="' . $class . '">';
|
|
||||||
echo '<td><a target="_blank" href="' . $p->url . '">' . $p->title . '</a></td>';
|
echo '<td><a target="_blank" href="' . $p->url . '">' . $p->title . '</a></td>';
|
||||||
echo '<td>' . format_date($p->date) . '</td>';
|
echo '<td>' . format_date($p->date) . '</td>';
|
||||||
if (config("views.counter") == "true")
|
if (config("views.counter") == "true")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue