We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 815578e commit cb6d339Copy full SHA for cb6d339
2 files changed
lib/backup-versions.css
@@ -0,0 +1,29 @@
1
+/* First, reset everything to a standard */
2
+html, body, div, span, applet, object, iframe,
3
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
4
+a, abbr, acronym, address, big, cite, code,
5
+del, dfn, em, font, img, ins, kbd, q, s, samp,
6
+small, strike, strong, sub, sup, tt, var,
7
+b, u, i, center,
8
+dl, dt, dd, ol, ul, li,
9
+fieldset, form, label, legend,
10
+table, caption, tbody, tfoot, thead, tr, th, td {
11
+ border: 0;
12
+ margin: 0;
13
+ padding: 0;
14
+ outline: 0;
15
+ font-size: 12px;
16
+ vertical-align: top;
17
+}
18
+
19
+body {overflow: hidden;
20
+ -webkit-user-select: none;
21
+ -moz-user-select: none;
22
+ -ms-user-select: none;
23
+ user-select: none;
24
25
26
+h1 {font-size: 36px; font-weight: normal; color: #888; margin-bottom: 20px}
27
+a {color: #fff; text-decoration: none}
28
29
+.backup-versions {font-family: arial, verdana, helvetica, sans-serif; background-color: #1c1c19; color: #fff; padding: 20px}
lib/backup-versions.php
@@ -0,0 +1,45 @@
+<?php
+// Load common functions
+include("headers.php");
+include_once("settings-common.php");
+$text = $_SESSION['text'];
+$t = $text['backup-versions'];
+$file = str_replace("|","/",xssClean($_GET['file'],'html'));
+$fileCountInfo = getVersionsCount(dirname($file),basename($file));
+$versions = $fileCountInfo['count'];
+?>
+<!DOCTYPE html>
+<html>
+<head>
+<title>ICEcoder <?php echo $ICEcoder["versionNo"];?> backup version control</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="robots" content="noindex, nofollow">
+<link rel="stylesheet" type="text/css" href="backup-versions.css?microtime=<?php echo microtime(true);?>">
+</head>
+<body class="backup-versions">
+<h1 id="title"><?php echo $versions." ".($versions != 1 ? $t["backups"] : $t["backup"])." ".$t['available for'].":";?></h1>
+<h2><?php echo $file;?></h2>
+<br>
+$dateCounts = $fileCountInfo['dateCounts'];
30
+$displayVersions = $versions;
31
32
+foreach ($dateCounts as $key => $value) {
33
+ echo "<b>".date("jS M Y",strtotime($key))." (".$value." ".($value != 1 ? $t["backups"] : $t["backup"]).")</b>";
34
+ echo '<br>';
35
+ for ($j=0; $j<$value; $j++) {
36
+ echo "Backup ".$displayVersions.'<br>';
37
+ $displayVersions--;
38
+ }
39
40
41
42
43
+</body>
44
45
+</html>
0 commit comments