Skip to content

Commit fdf969e

Browse files
committed
started to draft a info page for the cookie migration script
1 parent 91c18c6 commit fdf969e

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ lib
77
/.settings
88
/.project
99
/.classpath
10+
*.swp

src/main/resources/migration_redirect.php

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
$success = false;
2626

27-
if( isset($_COOKIE[COOKIE_HISTORY]) and $_COOKIE[COOKIe_HISTORY] != "" ) {
27+
if( isset($_COOKIE[COOKIE_HISTORY]) and $_COOKIE[COOKIE_HISTORY] != "" ) {
2828
// history cookie is set -> decode it
2929
$history = base64_decode($_COOKIE[COOKIE_HISTORY]);
3030
$history = json_decode($history);
@@ -49,14 +49,30 @@
4949
}
5050
}
5151
?><!DOCTYPE html>
52-
<html>
52+
<html lang="en-us">
5353
<head>
5454
<title>webCAT moved</title>
55+
56+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5557
<style>
58+
html, body { margin: 0; padding: 0; background-color: #EEE; color: black; font: 1em normal "Verdana","Arial","Georgia",sans-serif; text-align: center;}
59+
.frame { width: 960px; margin: 0 auto; padding: 2em 5px; text-align: left; }
60+
h1 { width: 100%; font 1.5em bold; line-height: 1.05em; margin-bottom: 2em; }
61+
p { margin-bottom: 1em; padding: 0 5px; }
62+
63+
5664
</style>
5765
</head>
5866

5967
<body>
60-
68+
<div class="frame">
69+
<h1>This webCAT instance moved!<h1>
70+
<p class="explain">
71+
This <a href="http://sems.uni-rostock.de/cat" target="_blank">webCAT</a> instance move to a new domain. To ensure you can still access your pressures workspaces and archives
72+
you can migrate the history cookie, which contains all the workspace ids. To do so please click on the button down below.
73+
</p>
74+
<p class="button">
75+
</p>
76+
</div>
6177
</body>
6278
</html>

0 commit comments

Comments
 (0)