From 0e1af81d4253ee6997fa9cc87e0b6f1ccf16b9a0 Mon Sep 17 00:00:00 2001
From: Friendika <info@friendika.com>
Date: Tue, 9 Nov 2010 18:31:43 -0800
Subject: [PATCH] provide default photo and text limits (which can be
 over-ridden)

---
 htconfig.php      | 6 +++++-
 view/htconfig.tpl | 8 ++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/htconfig.php b/htconfig.php
index 36c685f7c1..8f64899657 100644
--- a/htconfig.php
+++ b/htconfig.php
@@ -36,10 +36,14 @@ $a->config['register_policy'] = REGISTER_OPEN;
 $a->config['register_text'] = '';
 $a->config['admin_email'] = '';
 
-// Maximum size of an imported message, 0 is unlimited (but our database 'text' element is limited to 65535).
+// Maximum size of an imported message, 0 is unlimited
 
 $a->config['max_import_size'] = 10000;
 
+// maximum size of uploaded photos
+
+$a->config['system']['maximagesize'] = 800000;
+
 // Location of PHP command line processor
 
 $a->config['php_path'] = 'php';
diff --git a/view/htconfig.tpl b/view/htconfig.tpl
index dcc21f5667..6e58d593b7 100644
--- a/view/htconfig.tpl
+++ b/view/htconfig.tpl
@@ -35,9 +35,13 @@ $a->config['register_policy'] = REGISTER_OPEN;
 $a->config['register_text'] = '';
 $a->config['admin_email'] = '';
 
-// Maximum size of an imported message, 0 is unlimited (but our database 'text' element is limited to 65535).
+// Maximum size of an imported message, 0 is unlimited
 
-$a->config['max_import_size'] = 65535;
+$a->config['max_import_size'] = 10000;
+
+// maximum size of uploaded photos
+
+$a->config['system']['maximagesize'] = 800000;
 
 // Location of PHP command line processor