diff --git a/config.ini b/config.ini index 82fc30d..bf64acf 100644 --- a/config.ini +++ b/config.ini @@ -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.
css = index.css javascript = index.js logo = logo.svg diff --git a/config.php b/config.php index 34a96fe..3cdf1b0 100644 --- a/config.php +++ b/config.php @@ -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']; diff --git a/core.php b/core.php index 45e391d..384d952 100644 --- a/core.php +++ b/core.php @@ -47,6 +47,11 @@ function printFooter($html) { $html .= "\t\t\n"; $html .= "\t\n"; + $html .= "\t\n"; $html .= "\n"; return "$html"; diff --git a/index.css b/index.css index 5704e3d..709a83f 100644 --- a/index.css +++ b/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%; +} diff --git a/index.php b/index.php index d0c8f74..95b2dc9 100644 --- a/index.php +++ b/index.php @@ -14,7 +14,7 @@ function main() { $html = printHeader($html); $html .= "\t\t\t

$instanceName

\n"; - $html .= "\t\t\t\t

$instanceDescription\n"; + $html .= "\t\t\t\t

$instanceDescription

\n"; if (isset($_REQUEST['e'])) { $Error = $_REQUEST['e']; @@ -39,8 +39,6 @@ function main() { } } - $html .= "\t\t\tsource code\n"; - $html = printFooter($html); print "$html";