From 6746b3034bcc06cd15b63fadf1b332125af1561a Mon Sep 17 00:00:00 2001 From: Mausern Testbruker Date: Thu, 3 Nov 2011 19:14:55 +0100 Subject: [PATCH] upping max file size for image uploads --- inside/Form.php | 4 ++-- inside/Page.php | 8 +++++++- inside/User.php | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/inside/Form.php b/inside/Form.php index dc9daa8..f47e3af 100644 --- a/inside/Form.php +++ b/inside/Form.php @@ -519,7 +519,7 @@ class Form { public function _displayFile($attributes) { - print(""); + print(""); print(" \ No newline at end of file +?> diff --git a/inside/Page.php b/inside/Page.php index a360715..56b279c 100644 --- a/inside/Page.php +++ b/inside/Page.php @@ -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("
Script execution: $time seconds || support
\n"); + $html = "
"; + $html .= "

Script execution: $time seconds || support"; + + $html .= "

upload_max_filesize = " . ini_get("upload_max_filesize") . "

"; + $html .= "
\n"; + + print $html; /** * Google Analytics, since 2010-11-19 15:05 diff --git a/inside/User.php b/inside/User.php index 27d4876..ba4feb4 100644 --- a/inside/User.php +++ b/inside/User.php @@ -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;