Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html « webroot « Server « Duplicati - github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7fb82b7162a5b26358eab4b95119af538f41fb3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<title>Backup</title>

<script type="text/javascript">
    function parseCookies(){

        var cookiestrings = document.cookie.split('; ');
        var cookies = {};

        for(var i=cookiestrings.length-1; i>=0; i--){
           var parts = cookiestrings[i].split('=');
           cookies[parts[0]] = parts[1];
        }

        return cookies;
    }

    function setCookieAndRun(theme) {
        var d = new Date();
        d.setTime(d.getTime() + (90*24*60*60*1000));

        document.cookie = 'default-theme=' + theme  + '; expires=' + d.toUTCString() + '; path=/';

        // Make an absolute path redirect, as relative redirects break if the port is non-standard
        var path = window.location.pathname;
        
        if (path.lastIndexOf('.html') == path.length - '.html'.length)
            path = path.substr(0, path.lastIndexOf('/'));
        
        if (path.lastIndexOf('/') + 1 != path.length)
            path = path + '/';

        path += theme +'/index.html';
        window.location.replace(path);
    }

    var theme = parseCookies()['default-theme'];
    if ((theme || '').trim().length == 0)
        theme = 'ngax';
    if (theme == 'greeno') // Make sure users are redirected automatically
        theme = 'ngax';
    
    setCookieAndRun(theme); // Refresh

</script>

    <script type="text/javascript" src="oem/root/index/oem.js?v=2.0.0.7" ></script>
    <link rel="stylesheet" type="text/css" href="oem/root/index/oem.css?v=2.0.0.7" />

</head>

<body>
<noscript>
    <p>Duplicati web UI relies on JavaScript</p>
    <p>Please enable scripting on this page or turn off script blockers in your browser.</p>
</noscript>

</body>
</html>