Moved the Agents into their own repo. Kept the agent.pl just for reference
This commit is contained in:
parent
22381be29a
commit
8680a02b13
18132 changed files with 0 additions and 2569420 deletions
|
|
@ -1,31 +0,0 @@
|
|||
$(function() {
|
||||
$("#phpIniButton").click(function(e){
|
||||
var units = ['k', 'm', 'g', 't', 'p'];
|
||||
|
||||
var maxSize = $("#attachment_max_size").val();
|
||||
var limit = parseInt($("#attachment_limit").val());
|
||||
|
||||
var unit = maxSize.slice(-2, -1);
|
||||
var sizeNoUnit = maxSize.slice(0, -2);
|
||||
|
||||
var post_max_size = "";
|
||||
if ($.inArray(unit.toLowerCase(), units) != -1) {
|
||||
post_max_size = (sizeNoUnit * (limit+1)) + unit;
|
||||
}
|
||||
|
||||
var str = "<pre>";
|
||||
str += "file_uploads = On\n";
|
||||
str += "upload_max_filesize = " + sizeNoUnit + unit + "\n";
|
||||
str += "max_file_uploads = " + limit + "\n";
|
||||
|
||||
if (post_max_size.length !== 0) {
|
||||
str += "post_max_size = " + post_max_size + "\n";
|
||||
}
|
||||
|
||||
str += "</pre>";
|
||||
|
||||
$("#guesstimateIniSettings").css("display", "block");
|
||||
$("#guesstimateIniSettings").html(str);
|
||||
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue