Style it a bit, add footer text
This commit is contained in:
parent
0c87171b50
commit
bf6c165225
|
@ -1,6 +1,7 @@
|
|||
[html]
|
||||
instance_name = curload
|
||||
instance_description = curload is a simple file uploading site allowing users to upload files by authenticating using a key.
|
||||
footer_text = Licensed under the GNU Affero General Public License version 3.0.<br>
|
||||
css = index.css
|
||||
javascript = index.js
|
||||
logo = logo.svg
|
||||
|
|
|
@ -24,6 +24,7 @@ $logoHeaderSize = 16;
|
|||
$dateFormat = "Y/m/d";
|
||||
$instanceName = "curload";
|
||||
$instanceDescription = "curload is a simple file uploading site allowing users to upload files by authenticating using a key.";
|
||||
$footerText = "Licensed under the GNU Affero General Public License version 3.0.";
|
||||
$cookieName = "speedierocks";
|
||||
$enableKeys = true;
|
||||
$enableAdminKeys = true;
|
||||
|
@ -52,6 +53,7 @@ $logoHeaderSize = $configEntries['logo_header_size'];
|
|||
$dateFormat = $configEntries['date_format'];
|
||||
$instanceName = $configEntries['instance_name'];
|
||||
$instanceDescription = $configEntries['instance_description'];
|
||||
$footerText = $configEntries['footer_text'];
|
||||
$publicUploading = $configEntries['public_uploading'];
|
||||
$renameDuplicates = $configEntries['rename_duplicates'];
|
||||
$replaceOriginal = $configEntries['replace_original'];
|
||||
|
|
5
core.php
5
core.php
|
@ -47,6 +47,11 @@ function printFooter($html) {
|
|||
|
||||
$html .= "\t\t</div>\n";
|
||||
$html .= "\t</body>\n";
|
||||
$html .= "\t<footer>\n";
|
||||
$html .= "\t\t<span id='footerSpan' class='footer'>\n";
|
||||
$html .= "\t\t\t<p class='footerText' id='footerText'>$footerText</p>\n";
|
||||
$html .= "\t\t</span>\n";
|
||||
$html .= "\t</footer>\n";
|
||||
$html .= "</html>\n";
|
||||
|
||||
return "$html";
|
||||
|
|
44
index.css
44
index.css
|
@ -26,21 +26,6 @@
|
|||
padding-left: 2px;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
background-color: #212121;
|
||||
font-family: Monospace;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 5px;
|
||||
font-size: 8pt;
|
||||
font-weight: normal;
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.links {
|
||||
color: #66667d;
|
||||
padding: 5px;
|
||||
|
@ -103,3 +88,32 @@ a:hover {
|
|||
color: #ccccff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
input {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
border-color: #363636;
|
||||
border-width: 0px;
|
||||
background-color: #363636;
|
||||
color: #f0eee4;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
background-color: #212121;
|
||||
font-family: Monospace;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 5px;
|
||||
font-size: 8pt;
|
||||
font-weight: normal;
|
||||
color: #f0eee4;
|
||||
background-color: #363636;
|
||||
text-align: center;
|
||||
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ function main() {
|
|||
$html = printHeader($html);
|
||||
|
||||
$html .= "\t\t\t<h1>$instanceName</h1>\n";
|
||||
$html .= "\t\t\t\t<p>$instanceDescription</h1>\n";
|
||||
$html .= "\t\t\t\t<p>$instanceDescription</p>\n";
|
||||
|
||||
if (isset($_REQUEST['e'])) {
|
||||
$Error = $_REQUEST['e'];
|
||||
|
@ -39,8 +39,6 @@ function main() {
|
|||
}
|
||||
}
|
||||
|
||||
$html .= "\t\t\t<a href=\"https://git.speedie.site/speedie/curload\">source code</a>\n";
|
||||
|
||||
$html = printFooter($html);
|
||||
|
||||
print "$html";
|
||||
|
|
Loading…
Reference in a new issue