mirror of
https://github.com/duplicati/duplicati.git
synced 2025-11-28 11:30:24 +08:00
61 lines
1.8 KiB
HTML
61 lines
1.8 KiB
HTML
<!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-client=' + 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') !== -1 && 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-client'];
|
|
if ((theme || '').trim().length == 0)
|
|
theme = 'ngclient';
|
|
|
|
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>
|