summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2015-11-22 20:59:36 +0000
committerLuke Bratch <luke@bratch.co.uk>2015-11-22 20:59:36 +0000
commitee66f2046089f2dce3d84185a3807f2711319d66 (patch)
tree7e4f4f836780d70b665bce1043049b0f703d6b08
parentff74d82b3399ab6b559fc9d2d8aba1695973c6b4 (diff)
Allow for a configurable logon page title
-rw-r--r--config.php.example3
-rw-r--r--index.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/config.php.example b/config.php.example
index 4a457bd..e45ff35 100644
--- a/config.php.example
+++ b/config.php.example
@@ -9,6 +9,9 @@
# Set to null if you don't want the index to be password protected
$pass = "ENTER PASSWORD HASH HERE";
+ # The page title used on the logon page, (only displayed if a password is set above)
+ $logontitle = "Alice&#39;s private uploader";
+
# A file to be included at the top of the page
# For example an HTML form to upload files
$headerfile = "upload.html";
diff --git a/index.php b/index.php
index dd5026c..d518bbc 100644
--- a/index.php
+++ b/index.php
@@ -36,7 +36,7 @@ if ($_POST && $pass) {
?>
<html>
<head>
-<title>Irn-Bru</title>
+<title><?php echo $logontitle ?></title>
<script type="text/javascript">
function formfocus() {
document.getElementById('password').focus();