From eb414bfb80480c1fcac7ded7e07a3dd579d3712c Mon Sep 17 00:00:00 2001 From: root Date: Sun, 14 Sep 2014 23:44:42 +0200 Subject: merge incomming --- config.php | 5 +++-- dl.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.php b/config.php index db92fc9..876b36e 100644 --- a/config.php +++ b/config.php @@ -8,8 +8,9 @@ $REDIS_DBNAME=0; $REDIS_CONNECT="/var/run/redis/redis.sock"; //$MAXSIZE = 500000000000; -$MAXSIZE= 2000000000000; -$STREAM_MAXSIZE = 200000000; +$MAXSIZE = 209715200; +//$STREAM_MAXSIZE = 200000000; +$STREAM_MAXSIZE = 209715200; //$db = new SQLite3($ABSPATH . "/db/sqlite.db"); diff --git a/dl.php b/dl.php index 88d597e..0881018 100644 --- a/dl.php +++ b/dl.php @@ -38,7 +38,7 @@ if($_GET["ddl"]) # checks file size if($curl[2] > $MAXSIZE){ // 50M $f=BytesHumanSize($curl[2] - $MAXSIZE); - failure("File too large. It's ".$f." bytes over the maximum",true); + failure("File too large. It's ".$f." bytes over the maximum.",true); } # checks http status code -- cgit v1.2.3