diff --git a/includes/config.template.php b/includes/config.template.php index 864ed6e..4178ee2 100644 --- a/includes/config.template.php +++ b/includes/config.template.php @@ -4,5 +4,6 @@ define("CONFIG_ROOT_URL", "http://path.to.uguu"); define("CONFIG_FILES_PATH", "/path/to/uguu/public/files/"); define("CONFIG_ROOT_PATH", "/path/to/uguu/"); define("CONFIG_MAX_RETENTION_TIME", "60"); //Max retention time in minutes -define("CONFIG_RANDOM_LENGTH", "12"); +define("CONFIG_MAX_RETENTION_TEXT", "1 hour"); //Max retention time as a text to be displayed +define("CONFIG_RANDOM_LENGTH", "12"); //Length of the random chain appended to the filename define ("CONFIG_BLOCKED_EXTENSIONS", serialize(array("exe", "scr", "rar", "zip", "com", "vbs", "bat", "cmd", "html", "htm", "msi"))); diff --git a/index.php b/index.php index b7eeb7c..7310723 100644 --- a/index.php +++ b/index.php @@ -19,6 +19,7 @@ $tpl->draw("header"); if(isset($_GET['info'])) { $tpl->assign("url_filename", CONFIG_ROOT_URL); + $tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT); $tpl->draw("info"); } else { $tpl->draw("upload"); diff --git a/rain/template/info.html b/rain/template/info.html index 6f1666e..4ee7e06 100644 --- a/rain/template/info.html +++ b/rain/template/info.html @@ -4,7 +4,7 @@
Info -

Store any filetype with a size up to 150MB for up to 1 hour. +

Store any filetype with a size up to 150MB for up to {retention_time}. Uguu cares about your privacy and stores NO logs.

diff --git a/rain/template/upload-done.html b/rain/template/upload-done.html index ff4a8cd..abd8a1b 100644 --- a/rain/template/upload-done.html +++ b/rain/template/upload-done.html @@ -5,7 +5,7 @@

File uploaded!

{$url_filename}

-

Your file will be available for download during 24 hours.

+

Your file will be available for download during {retention_time}.

diff --git a/upload-done.php b/upload-done.php index 3447c62..00b627d 100644 --- a/upload-done.php +++ b/upload-done.php @@ -8,6 +8,7 @@ $title = "Temp File Hosting"; $tpl->assign("title", $title); $tpl->draw("header"); $tpl->assign("url_filename", CONFIG_ROOT_URL.'/files/'.$n); +$tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT); $tpl->draw("upload-done"); $tpl->draw("footer"); ?>