X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/d5b85f9c7bda15446c271edf809c4dde150f6f3d..4a53cd63446d78e30da60e8f1f72b3614f18c40f:/script.php?ds=sidebyside diff --git a/script.php b/script.php index 90b2c11..aa04a6f 100644 --- a/script.php +++ b/script.php @@ -81,7 +81,6 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) exit; } } - $key = ''; if (isset($_POST['key'])) { $key = $_POST['key']; @@ -204,8 +203,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) } exit; } elseif (isset($_GET['get_capacity'])) { - echo min(jirafeau_ini_to_bytes(ini_get('post_max_size')), - jirafeau_ini_to_bytes(ini_get('upload_max_filesize'))); + echo jirafeau_get_max_upload_size_bytes(); } elseif (isset($_GET['get_maximal_upload_size'])) { echo $cfg['maximal_upload_size']; } elseif (isset($_GET['get_version'])) {