upping max file size for image uploads

This commit is contained in:
Mausern Testbruker committed 2011-11-03 19:14:55 +01:00
1 parent 9534abf0d7
commit 6746b3034b
3 files changed
+10 -4

No files matched your search

+2 -2
View File
@@ -519,7 +519,7 @@ class Form {
public
function _displayFile($attributes) {
print("<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"2000000\" />");
print("<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"12000000\" />");
print("<input type=\"file\"");
if (isset($attributes['name'])){
@@ -610,4 +610,4 @@ class Form {
?>
?>
+7 -1
View File
@@ -581,7 +581,13 @@ possibly include it instead? --Thomas Misund, 26. Oct 2009
$time_end = microtime(true);
$time = round(($time_end - $GLOBALS['time_start']), 4);
print(" <div id=\"footer\">Script execution: $time seconds || <a href=\"mailto:support@studentersamfundet.no\">support</a></div>\n");
$html = " <div id=\"footer\">";
$html .= "<p>Script execution: $time seconds || <a href=\"mailto:support@studentersamfundet.no\">support</a>";
$html .= "<p>upload_max_filesize = " . ini_get("upload_max_filesize") . "</p>";
$html .= "</div>\n";
print $html;
/**
* Google Analytics, since 2010-11-19 15:05
+1 -1
View File
@@ -880,7 +880,7 @@ class User {
if ($this->expires == NULL) {
return false;
} else
if ($this->expires > date("Y-m-d")) {
if (strtotime($this->expires) > time()) {
return false;
} else {
return true;