summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot2014-09-14 23:44:42 +0200
committerroot2014-09-14 23:44:42 +0200
commiteb414bfb80480c1fcac7ded7e07a3dd579d3712c (patch)
tree27bbd8a2c58ba02835fa8ccf2f407acb27739788
parent8fcfc80ca2bb393a1a4b7d4cd16e1186b7ae3597 (diff)
downloadvideo-dl-eb414bfb80480c1fcac7ded7e07a3dd579d3712c.tar.gz
merge incomming
-rw-r--r--config.php5
-rw-r--r--dl.php2
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 <u style='color:red;'>".$f."</u> bytes over the maximum",true);
+ failure("File too large. It's <u style='color:red;'>".$f."</u> bytes over the maximum.",true);
}
# checks http status code