1
0
mirror of https://github.com/nokonoko/Uguu.git synced 2024-01-06 13:35:15 +00:00

Adding options in the config file

This commit is contained in:
Pierre-Alain Bandinelli 2016-05-14 11:47:48 +02:00
parent 5c82959949
commit 8f66c23e8e
5 changed files with 6 additions and 3 deletions

View File

@ -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")));

View File

@ -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");

View File

@ -4,7 +4,7 @@
<div class="card-panel blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title"><b>Info</b></span>
<p>Store any filetype with a size up to 150MB for up to 1 hour.
<p>Store any filetype with a size up to 150MB for up to {retention_time}.
Uguu cares about your privacy and stores NO logs.
</p>
<p>

View File

@ -5,7 +5,7 @@
<div class="card-content white-text">
<span class="card-title" style="color: #00FF99"><h3>File uploaded!</h3></span>
<p><a href="{$url_filename}">{$url_filename}</a></p>
<p>Your file will be available for download during 24 hours.</p>
<p>Your file will be available for download during {retention_time}.</p>
</div>
</div>
</div>

View File

@ -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");
?>