-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
199 lines (174 loc) · 6.33 KB
/
index.php
File metadata and controls
199 lines (174 loc) · 6.33 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php
/**
* simpleapps.eu — front controller
*
* Legacy /simplemind/ redirects and file redirects are handled by .htaccess.
* This file contains the same logic as a PHP fallback (in case mod_rewrite is
* unavailable) AND serves the new SimpleApps homepage for all other requests.
*/
$path = ltrim(
parse_url($_SERVER["REQUEST_URI"] ?? "", PHP_URL_PATH) ?? "",
"/",
);
// ---------------------------------------------------------------------------
// PHP fallback: file-specific redirects → modelmakertools.com
// (mirrors .htaccess rules; only reached if mod_rewrite is not active)
// ---------------------------------------------------------------------------
$fileRedirects = [
"simplemind/appdata/simplemind_links.xml" =>
"https://modelmakertools.com/simplemind/appdata/simplemind_links.xml",
"simplemind/appdata/smpmac1-blacklist.xml" =>
"https://modelmakertools.com/simplemind/appdata/smpmac1-blacklist.xml",
"simplemind/appdata/smpmac1-blacklist2.txt" =>
"https://modelmakertools.com/simplemind/appdata/smpmac1-blacklist2.txt",
"simplemind/appdata/smpmac1-versions.xml" =>
"https://modelmakertools.com/simplemind/appdata/smpmac1-versions.xml",
"simplemind/appdata/smpwin1-blacklist.xml" =>
"https://modelmakertools.com/simplemind/appdata/smpwin1-blacklist.xml",
"simplemind/appdata/smpwin1-blacklist2.txt" =>
"https://modelmakertools.com/simplemind/appdata/smpwin1-blacklist2.txt",
"simplemind/appdata/smpwin1-versions.xml" =>
"https://modelmakertools.com/simplemind/appdata/smpwin1-versions.xml",
"download/full-edition/simplemind-pro-windows" =>
"https://modelmakertools.com/download/simplemind-pro-windows/",
"download/full-edition/simplemind-pro-windows/" =>
"https://modelmakertools.com/download/simplemind-pro-windows/",
"download/full-edition/simplemind-pro-mac" =>
"https://modelmakertools.com/download/simplemind-pro-mac/",
"download/full-edition/simplemind-pro-mac/" =>
"https://modelmakertools.com/download/simplemind-pro-mac/",
];
if (isset($fileRedirects[$path])) {
header("Location: " . $fileRedirects[$path], true, 301);
exit();
}
// ---------------------------------------------------------------------------
// PHP fallback: everything under /simplemind/ → https://simplemind.eu
// ---------------------------------------------------------------------------
if ($path === "simplemind" || str_starts_with($path, "simplemind/")) {
header("Location: https://simplemind.eu", true, 301);
exit();
}
// ---------------------------------------------------------------------------
// New SimpleApps homepage
// ---------------------------------------------------------------------------
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SimpleApps</title>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #f5f7fa;
--surface: #ffffff;
--accent: #0a7cff;
--text: #1a1a2e;
--muted: #6b7280;
--border: #e5e7eb;
--radius: 12px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem 1.5rem;
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 3rem 2.5rem;
max-width: 520px;
width: 100%;
text-align: center;
box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.logo {
font-size: 2.5rem;
font-weight: 800;
letter-spacing: -0.03em;
color: var(--text);
margin-bottom: .25rem;
}
.logo span {
color: var(--accent);
}
.tagline {
font-size: 1rem;
color: var(--muted);
margin-bottom: 2rem;
}
.badge {
display: inline-block;
background: #eff6ff;
color: var(--accent);
font-size: .75rem;
font-weight: 600;
letter-spacing: .05em;
text-transform: uppercase;
padding: .35rem .75rem;
border-radius: 999px;
margin-bottom: 1.5rem;
}
h1 {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: .75rem;
}
p {
font-size: .975rem;
color: var(--muted);
line-height: 1.7;
}
.divider {
border: none;
border-top: 1px solid var(--border);
margin: 2rem 0;
}
.link {
display: inline-flex;
align-items: center;
gap: .4rem;
color: var(--accent);
font-size: .9rem;
font-weight: 500;
text-decoration: none;
}
.link:hover { text-decoration: underline; }
footer {
margin-top: 2rem;
font-size: .8rem;
color: var(--muted);
}
</style>
</head>
<body>
<div class="card">
<div class="logo">Simple<span>Apps</span></div>
<div class="tagline">simpleapps.eu</div>
<span class="badge">Coming soon</span>
<h1>Something new is on its way</h1>
<p>
We're working on a new home for SimpleApps.
Check back soon to discover what we're building.
</p>
<hr class="divider">
<a class="link" href="https://simplemind.eu">
<!-- arrow icon -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
Looking for SimpleMind? Visit simplemind.eu
</a>
</div>
<footer>© <?= date("Y") ?> SimpleApps</footer>
</body>
</html>