From 0e2978ef48e7877ee46aa4a9e52e86b8f76c9733 Mon Sep 17 00:00:00 2001
From: Dominik Müller <info@profi-webdesign.net>
Date: Sat, 18 Jan 2014 23:34:06 -0500
Subject: [PATCH] Mailbox quota can now be included into website quota (FS#3297) -------------------------------------------------------------- Feature can be activated over admin mailserver settings. when activated websites uid is used instead of standard vmail-uid. this only takes effect if web and mailserver are on the same server, otherwise it will be old behaviour. switching this setting when mailboxes exist doesn't matter. Mailboxfolder will be created with website uid for this. access of postfix and dovecot now works over mysql-table mail_user. virtual_uid_maps is changed from static to mysql-table. for dovecot<->postfix communication protocoll is changed vrom lda to lmtp. disablelmtp-column is added to mail_user-table. uid and gid can be overwritten by remoting. ONE OPEN ISSUE: since remoting has completly changed and mail_user_add function is missing at the moment, this function now was inclulded again. it is important to add the both new lines to the future function and then remove this new one.
---
interface/web/admin/index.php | 56 ++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 48 insertions(+), 8 deletions(-)
diff --git a/interface/web/admin/index.php b/interface/web/admin/index.php
index 4aef3c0..7cbfddb 100644
--- a/interface/web/admin/index.php
+++ b/interface/web/admin/index.php
@@ -26,14 +26,54 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setVar('error',$error);
-$app->tpl->setInclude('content_tpl','templates/index.htm');
-$app->tpl->pparse();
+class admin_index {
-?>
\ No newline at end of file
+ var $status = 'OK';
+ var $target = '';
+
+ function render() {
+
+ global $app;
+
+ $app->uses('tpl');
+ $app->tpl->newTemplate("form.tpl.htm");
+
+ $app->tpl->setVar('error', $error);
+ $app->tpl->setInclude('content_tpl', 'admin/templates/index.htm');
+ return $app->tpl->grab();
+ /*
+ $filename = 'test.txt';
+$somecontent = $app->tpl->grab();
+
+// Sichergehen, dass die Datei existiert und beschreibbar ist
+
+
+ // Wir öffnen $filename im "Anhänge" - Modus.
+ // Der Dateizeiger befindet sich am Ende der Datei, und
+ // dort wird $somecontent später mit fwrite() geschrieben.
+ if (!$handle = fopen($filename, "w")) {
+ print "Kann die Datei $filename nicht öffnen";
+ exit;
+ }
+
+ // Schreibe $somecontent in die geöffnete Datei.
+ if (!fwrite($handle, $somecontent)) {
+ print "Kann in die Datei $filename nicht schreiben";
+ exit;
+ }
+
+
+ fclose($handle);
+
+
+
+
+ return 'dd';
+ */
+ }
+
+}
+
+?>
--
Gitblit v1.9.1