Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
155 lines (150 loc) · 4.44 KB
/
Copy pathindex.php
File metadata and controls
155 lines (150 loc) · 4.44 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
<?php
/**
* Ava CMS - Setup Helper
*/
http_response_code(500);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>Setup Required - Ava CMS</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: system-ui, -apple-system, sans-serif;
background: #f8fafc;
color: #334155;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
line-height: 1.6;
}
.container {
max-width: 520px;
text-align: center;
}
.icon {
width: 48px;
height: 48px;
background: #8b5cf6;
border-radius: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 1.25rem;
}
.icon svg {
width: 24px;
height: 24px;
color: white;
}
h1 {
font-size: 1.25rem;
font-weight: 600;
color: #1e293b;
margin-bottom: 0.5rem;
}
.subtitle {
color: #64748b;
margin-bottom: 1.75rem;
}
.card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 1.25rem 1.5rem;
margin-bottom: 1rem;
text-align: left;
}
.card h2 {
font-size: 0.875rem;
font-weight: 600;
color: #1e293b;
margin-bottom: 0.5rem;
}
.card p {
font-size: 0.875rem;
color: #64748b;
margin: 0;
}
code {
background: #f1f5f9;
padding: 0.125rem 0.375rem;
border-radius: 4px;
font-size: 0.8125rem;
color: #334155;
}
.example {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid #f1f5f9;
font-size: 0.8125rem;
}
.good { color: #16a34a; }
.bad { color: #dc2626; }
.or {
color: #94a3b8;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
margin: 0.75rem 0;
}
.footer {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid #e2e8f0;
font-size: 0.75rem;
color: #94a3b8;
}
.footer a {
color: #8b5cf6;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
</svg>
</div>
<h1>Setup Required</h1>
<p class="subtitle">
Ava keeps sensitive files separate from public files for security.<br>
Only the <code>public</code> folder should be web-accessible.
</p>
<div class="card">
<h2>Option 1: Reorganize the files</h2>
<p>
Move Ava to a folder outside your web directory, then copy only
the contents of <code>public/</code> into your web folder
(e.g. <code>public_html</code> or <code>public</code>).
</p>
</div>
<div class="or">— or —</div>
<div class="card">
<h2>Option 2: Change your document root</h2>
<p>
Point your site's document root to Ava's <code>public</code> folder.
</p>
<div class="example">
<span class="bad">✗</span> <code>/home/user/ava</code><br>
<span class="good">✓</span> <code>/home/user/ava/public</code>
</div>
</div>
<div class="footer">
<a href="https://ava.addy.zone/docs/hosting">View full hosting guide →</a>
</div>
</div>
</body>
</html>
<?php exit;