7c5202e260bb5874c97d08cb7bfe9e639adb47e0
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php   1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/include/vmail.php   2) /*
modules/email/include/vmail.php   3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/email/include/vmail.php   4) 
Bernd Wurst Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php   5) Written 2008-2014 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/include/vmail.php   6)   Bernd Wurst <bernd@schokokeks.org>
modules/email/include/vmail.php   7)   Hanno Böck <hanno@schokokeks.org>
modules/email/include/vmail.php   8) 
modules/email/include/vmail.php   9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
modules/email/include/vmail.php  10) 
modules/email/include/vmail.php  11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
modules/email/include/vmail.php  12) http://creativecommons.org/publicdomain/zero/1.0/
modules/email/include/vmail.php  13) 
modules/email/include/vmail.php  14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
modules/email/include/vmail.php  15) */
modules/email/include/vmail.php  16) 
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php  17) require_once('inc/base.php');
modules/vmail/include/vmail.php  18) require_once('inc/debug.php');
modules/vmail/include/vmail.php  19) 
bernd Bugfix: Funktion-Dopplung v...

bernd authored 17 years ago

modules/vmail/include/vmail.php  20) require_once('hasdomain.php');
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php  21) 
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/include/vmail.php  22) require_once('common.php');
modules/email/include/vmail.php  23) 
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  24) 
modules/email/include/vmail.php  25) $forced_spamfilter_domains = array(
modules/email/include/vmail.php  26)   't-online.de', 'gmx.de', 'gmx.net', 'web.de', 'gmail.com', 'googlemail.com',
Bernd Wurst gmail war dopelt in der bla...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  27)   'googlemail.de', 'freenet.de', 'aol.com', 'yahoo.com', 'gmx.at', 'ymail.com', 
Bernd Wurst Auch yahoo.de soll nicht oh...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  28)   'hotmail.com', 'mail.de', 'email.de', 'online.de', 'outlook.com', 'me.com', 'yahoo.de'
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  29)   );
modules/email/include/vmail.php  30) 
modules/email/include/vmail.php  31) 
Bernd Wurst E-Mail-Modul auf JQuery umg...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  32) function forward_type($target) {
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  33)   global $forced_spamfilter_domains;
Bernd Wurst Zeige Benutzeraccount-Stamm...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  34)   list($l, $d) = explode('@', strtolower($target), 2);
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  35)   DEBUG('Weiterleitung an '.$l.' @ '.$d);
modules/email/include/vmail.php  36)   if (in_array($d, $forced_spamfilter_domains)) {
modules/email/include/vmail.php  37)     // Domain in der Liste => Spam darf nicht weiter geleitet werden
Bernd Wurst E-Mail-Modul auf JQuery umg...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  38)     return 'critical';
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  39)   }
modules/email/include/vmail.php  40)   $result = db_query("SELECT id FROM kundendaten.domains WHERE CONCAT_WS('.', domainname, tld) = ?", array($d));
modules/email/include/vmail.php  41)   if ($result->rowCount() > 0) {
modules/email/include/vmail.php  42)     // Lokale Domain
Bernd Wurst E-Mail-Modul auf JQuery umg...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  43)     return 'local';
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  44)   }  
modules/email/include/vmail.php  45)   // Auswärtige Domain aber keine aus der Liste
Bernd Wurst E-Mail-Modul auf JQuery umg...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  46)   return 'external';
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  47) }
modules/email/include/vmail.php  48) 
modules/email/include/vmail.php  49) 
modules/email/include/vmail.php  50) 
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php  51) function empty_account()
modules/vmail/include/vmail.php  52) {
modules/vmail/include/vmail.php  53) 	$account = array(
modules/vmail/include/vmail.php  54) 		'id' => NULL,
modules/vmail/include/vmail.php  55) 		'local' => '',
modules/vmail/include/vmail.php  56) 		'domain' => NULL,
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/include/vmail.php  57) 		'password' => NULL,
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  58)     'smtpreply' => NULL,
bernd Spam- und viren nur noch ei...

bernd authored 17 years ago

modules/vmail/include/vmail.php  59) 		'spamfilter' => 'folder',
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php  60) 		'spamexpire' => 7,
bernd VMail-Quota-Zeug

bernd authored 13 years ago

modules/email/include/vmail.php  61)     'quota' => config('vmail_basequota'),
bernd Quota-Threshold für Notific...

bernd authored 13 years ago

modules/email/include/vmail.php  62)     'quota_threshold' => 20,
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/include/vmail.php  63) 		'forwards' => array(),
modules/email/include/vmail.php  64) 		'autoresponder' => NULL
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php  65) 		);
modules/vmail/include/vmail.php  66) 	return $account;
modules/vmail/include/vmail.php  67) 
modules/vmail/include/vmail.php  68) }
modules/vmail/include/vmail.php  69) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/include/vmail.php  70) function empty_autoresponder_config()
modules/email/include/vmail.php  71) {
modules/email/include/vmail.php  72)   $ar = array(
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/include/vmail.php  73)     'valid_from' => date( 'Y-m-d' ),
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/include/vmail.php  74)     'valid_until' => NULL,
modules/email/include/vmail.php  75)     'fromname' => NULL,
modules/email/include/vmail.php  76)     'fromaddr' => NULL,
modules/email/include/vmail.php  77)     'subject' => NULL,
modules/email/include/vmail.php  78)     'message' => 'Danke für Ihre E-Mail.
modules/email/include/vmail.php  79) Ich bin aktuell nicht im Büro und werde Ihre Nachricht erst nach meiner Rückkehr beantworten.
modules/email/include/vmail.php  80) Ihre E-Mail wird nicht weitergeleitet.',
modules/email/include/vmail.php  81)     'quote' => NULL
modules/email/include/vmail.php  82)     );
modules/email/include/vmail.php  83)   return $ar;
modules/email/include/vmail.php  84) }
modules/email/include/vmail.php  85) 
modules/email/include/vmail.php  86) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php  87) function get_vmail_id_by_emailaddr($emailaddr) 
modules/email/include/vmail.php  88) {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  89)   $result = db_query("SELECT id FROM mail.v_vmail_accounts WHERE CONCAT(local, '@', domainname) = ?", array($emailaddr));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  90)   $entry = $result->fetch();
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php  91)   return (int) $entry['id'];
modules/email/include/vmail.php  92) }
modules/email/include/vmail.php  93) 
bernd VMail-accounts können sich...

bernd authored 16 years ago

modules/vmail/include/vmail.php  94) function get_account_details($id, $checkuid = true)
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php  95) {
modules/vmail/include/vmail.php  96) 	$id = (int) $id;
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php  97)   $uid_check = '';
modules/email/include/vmail.php  98)   DEBUG("checkuid: ".$checkuid);
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php  99)   $args = array(":id" => $id);
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 100)   if ($checkuid) {
modules/email/include/vmail.php 101)     $uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 102)     $uid_check = "useraccount=:uid AND ";
modules/email/include/vmail.php 103)     $args[":uid"] = $uid;
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 104)   }
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 105)   $result = db_query("SELECT id, local, domain, password, smtpreply, spamfilter, forwards, autoresponder, server, quota, COALESCE(quota_used, 0) AS quota_used, quota_threshold from mail.v_vmail_accounts WHERE {$uid_check}id=:id LIMIT 1", $args);
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 106) 	if ($result->rowCount() == 0)
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 107) 		system_failure('Ungültige ID oder kein eigener Account');
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 108) 	$acc = empty_account();
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 109) 	$res = $result->fetch();
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 110) 	foreach ($res AS $key => $value) {
modules/vmail/include/vmail.php 111) 	  if ($key == 'forwards')
modules/vmail/include/vmail.php 112) 	    continue;
modules/vmail/include/vmail.php 113) 	  $acc[$key] = $value;
modules/vmail/include/vmail.php 114) 	}
modules/vmail/include/vmail.php 115) 	if ($acc['forwards'] > 0) {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 116) 	  $result = db_query("SELECT id, spamfilter, destination FROM mail.vmail_forward WHERE account=?", array($acc['id']));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 117) 	  while ($item = $result->fetch()){
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 118) 	    array_push($acc['forwards'], array("id" => $item['id'], 'spamfilter' => $item['spamfilter'], 'destination' => $item['destination']));
modules/vmail/include/vmail.php 119) 	  }
modules/vmail/include/vmail.php 120) 	}
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/include/vmail.php 121)   if ($acc['autoresponder'] > 0) {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 122)     $result = db_query("SELECT id, IF(valid_from IS NULL OR valid_from > NOW() OR valid_until < NOW(), 0, 1) AS active, DATE(valid_from) AS valid_from, DATE(valid_until) AS valid_until, fromname, fromaddr, subject, message, quote FROM mail.vmail_autoresponder WHERE account=?", array($acc['id']));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 123)     $item = $result->fetch();
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/include/vmail.php 124)     DEBUG($item);
modules/email/include/vmail.php 125)     $acc['autoresponder'] = $item;
modules/email/include/vmail.php 126)   } else {
modules/email/include/vmail.php 127)     $acc['autoresponder'] = NULL;
modules/email/include/vmail.php 128)   }
bernd Quota-Threshold für Notific...

bernd authored 13 years ago

modules/email/include/vmail.php 129)   if ($acc['quota_threshold'] === NULL) {
modules/email/include/vmail.php 130)     $acc['quota_threshold'] = -1;
modules/email/include/vmail.php 131)   }
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 132) 	return $acc;
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 133) }
modules/vmail/include/vmail.php 134) 
modules/vmail/include/vmail.php 135) function get_vmail_accounts()
modules/vmail/include/vmail.php 136) {
modules/vmail/include/vmail.php 137) 	$uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 138) 	$result = db_query("SELECT * from mail.v_vmail_accounts WHERE useraccount=? ORDER BY domainname,local ASC", array($uid));
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 139) 	$ret = array();
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 140) 	while ($line = $result->fetch())
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 141) 	{
modules/vmail/include/vmail.php 142) 		array_push($ret, $line);
modules/vmail/include/vmail.php 143) 	}
modules/vmail/include/vmail.php 144) 	DEBUG($ret);
modules/vmail/include/vmail.php 145) 	return $ret;
modules/vmail/include/vmail.php 146) }
modules/vmail/include/vmail.php 147) 
modules/vmail/include/vmail.php 148) 
modules/vmail/include/vmail.php 149) 
modules/vmail/include/vmail.php 150) function get_vmail_domains()
modules/vmail/include/vmail.php 151) {
modules/vmail/include/vmail.php 152) 	$uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 153) 	$result = db_query("SELECT id, domainname, server FROM mail.v_vmail_domains WHERE useraccount=? ORDER BY domainname", array($uid));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 154) 	if ($result->rowCount() == 0)
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 155) 		system_failure('Sie haben keine Domains für virtuelle Mail-Verarbeitung');
modules/vmail/include/vmail.php 156) 	$ret = array();
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 157) 	while ($tmp = $result->fetch())
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 158) 		array_push($ret, $tmp);
modules/vmail/include/vmail.php 159) 	return $ret;
modules/vmail/include/vmail.php 160) }
modules/vmail/include/vmail.php 161) 
modules/vmail/include/vmail.php 162) 
bernd VMail-accounts können sich...

bernd authored 16 years ago

modules/vmail/include/vmail.php 163) function find_account_id($accname)
modules/vmail/include/vmail.php 164) {
modules/vmail/include/vmail.php 165)   DEBUG($accname);
modules/vmail/include/vmail.php 166)   $tmp = explode('@', $accname, 2);
modules/vmail/include/vmail.php 167)   DEBUG($tmp);
modules/vmail/include/vmail.php 168)   if (count($tmp) != 2)
modules/vmail/include/vmail.php 169)     system_failure("Der Account hat nicht die korrekte Syntax");
modules/vmail/include/vmail.php 170)   list( $local, $domainname) = $tmp;
modules/vmail/include/vmail.php 171) 
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 172)   $result = db_query("SELECT id FROM mail.v_vmail_accounts WHERE local=? AND domainname=? LIMIT 1", array($local, $domainname));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 173)   if ($result->rowCount() == 0)
bernd VMail-accounts können sich...

bernd authored 16 years ago

modules/vmail/include/vmail.php 174)     system_failure("Der Account konnte nicht gefunden werden");
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 175)   $tmp = $result->fetch();
bernd VMail-accounts können sich...

bernd authored 16 years ago

modules/vmail/include/vmail.php 176)   return $tmp[0];
modules/vmail/include/vmail.php 177) }
modules/vmail/include/vmail.php 178) 
modules/vmail/include/vmail.php 179) 
modules/vmail/include/vmail.php 180) function change_vmail_password($accname, $newpass)
modules/vmail/include/vmail.php 181) {
modules/vmail/include/vmail.php 182)   $accid = find_account_id($accname);
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 183)   $encpw = encrypt_mail_password($newpass);
modules/email/include/vmail.php 184)   db_query("UPDATE mail.vmail_accounts SET password=:encpw WHERE id=:accid", array(":encpw" => $encpw, ":accid" => $accid));
bernd VMail-accounts können sich...

bernd authored 16 years ago

modules/vmail/include/vmail.php 185) }
modules/vmail/include/vmail.php 186) 
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 187) 
modules/vmail/include/vmail.php 188) function domainselect($selected = NULL, $selectattribute = '')
modules/vmail/include/vmail.php 189) {
bernd Bugfix: Funktion-Dopplung v...

bernd authored 17 years ago

modules/vmail/include/vmail.php 190)   $domainlist = get_vmail_domains();
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 191)   $selected = (int) $selected;
modules/vmail/include/vmail.php 192) 
modules/vmail/include/vmail.php 193)   $ret = '<select id="domain" name="domain" size="1" '.$selectattribute.' >';
modules/vmail/include/vmail.php 194)   foreach ($domainlist as $dom)
modules/vmail/include/vmail.php 195)   {
Bernd Wurst Alle VMail-Domain in der Üb...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 196)     $s = ($selected == $dom['id']) ? ' selected="selected" ': '';
modules/email/include/vmail.php 197)     $ret .= "<option value=\"{$dom['id']}\"{$s}>{$dom['domainname']}</option>\n";
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 198)   }
modules/vmail/include/vmail.php 199)   $ret .= '</select>';
modules/vmail/include/vmail.php 200)   return $ret;
modules/vmail/include/vmail.php 201) }
modules/vmail/include/vmail.php 202) 
modules/vmail/include/vmail.php 203) 
bernd VMail-Quota-Zeug

bernd authored 13 years ago

modules/email/include/vmail.php 204) function get_max_mailboxquota($server, $oldquota) {
modules/email/include/vmail.php 205)   $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/vmail.php 206)   $server = (int) $server;
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 207)   $result = db_query("SELECT systemquota - (COALESCE(systemquota_used,0) + COALESCE(mailquota,0)) AS free FROM system.v_quota WHERE uid=:uid AND server=:server", array(":uid" => $uid, ":server" => $server));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 208)   $item = $result->fetch();
bernd VMail-Quota-Zeug

bernd authored 13 years ago

modules/email/include/vmail.php 209)   DEBUG("Free space: ".$item['free']." / Really: ".($item['free'] + ($oldquota - config('vmail_basequota'))));
modules/email/include/vmail.php 210)   return $item['free'] + ($oldquota - config('vmail_basequota'));
modules/email/include/vmail.php 211) }
modules/email/include/vmail.php 212) 
modules/email/include/vmail.php 213) 
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 214) 
modules/vmail/include/vmail.php 215) 
modules/vmail/include/vmail.php 216) function save_vmail_account($account)
modules/vmail/include/vmail.php 217) {
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 218)   $accountlogin = ($_SESSION['role'] == ROLE_VMAIL_ACCOUNT);
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 219)   $id = $account['id'];
modules/vmail/include/vmail.php 220)   if ($id != NULL)
modules/vmail/include/vmail.php 221)   {
modules/vmail/include/vmail.php 222)     $id = (int) $id;
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 223)     $oldaccount = get_account_details($id, !$accountlogin);
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 224)     // Erzeugt einen system_error() wenn ID ungültig
modules/vmail/include/vmail.php 225)   }
modules/vmail/include/vmail.php 226)   // Ab hier ist $id sicher, entweder NULL oder eine gültige ID des aktuellen users
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 227) 
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 228)   $newaccount = false;
modules/email/include/vmail.php 229)   if ($id === NULL) {
modules/email/include/vmail.php 230)     $newaccount = true;
modules/email/include/vmail.php 231)   }
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 232) 
modules/email/include/vmail.php 233)   if ($accountlogin) {
modules/email/include/vmail.php 234)     if ($account['domain'] != $oldaccount['domain'])
modules/email/include/vmail.php 235)       system_failure('Sie können die E-Mail-Adresse nicht ändern!');
modules/email/include/vmail.php 236)     if ($account['local'] != $oldaccount['local'])
modules/email/include/vmail.php 237)       system_failure('Sie können die E-Mail-Adresse nicht ändern!');
modules/email/include/vmail.php 238)     if ($account['quota'] != $oldaccount['quota'])
modules/email/include/vmail.php 239)       system_failure('Sie können Ihren eigenen Speicherplatz nicht verändern.');
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 240)     if ($account['smtpreply'] != NULL) {
Bernd Wurst Update auf nicht mehr so ne...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 241)       system_failure("Sie können nicht den Account stilllegen mit dem Sie grade angemeldet sind.");
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 242)     }
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 243)   } else {
modules/email/include/vmail.php 244)   
modules/email/include/vmail.php 245)     $account['local'] = filter_input_username($account['local']);
modules/email/include/vmail.php 246)     if ($account['local'] == '')
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 247)     {
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 248)       system_failure('Die E-Mail-Adresse braucht eine Angabe vor dem »@«!');
modules/email/include/vmail.php 249)       return false;
modules/email/include/vmail.php 250)     }
modules/email/include/vmail.php 251)     $account['domain'] = (int) $account['domain'];
modules/email/include/vmail.php 252)     $domainlist = get_vmail_domains();
modules/email/include/vmail.php 253)     $valid_domain = false;
modules/email/include/vmail.php 254)     $domainname = NULL;
modules/email/include/vmail.php 255)     $server = NULL;
modules/email/include/vmail.php 256)     foreach ($domainlist as $dom)
modules/email/include/vmail.php 257)     {
Bernd Wurst Alle VMail-Domain in der Üb...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 258)       if ($dom['id'] == $account['domain'])
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 259)       {
Bernd Wurst Alle VMail-Domain in der Üb...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 260)         $domainname = $dom['domainname'];
modules/email/include/vmail.php 261)         $server = $dom['server'];
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 262)         $valid_domain = true;
modules/email/include/vmail.php 263)         break;
modules/email/include/vmail.php 264)       }
modules/email/include/vmail.php 265)     }
modules/email/include/vmail.php 266)     if (($account['domain'] == 0) || (! $valid_domain))
modules/email/include/vmail.php 267)     {
modules/email/include/vmail.php 268)       system_failure('Bitte wählen Sie eine Ihrer Domains aus!');
modules/email/include/vmail.php 269)       return false;
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 270)     }
Bernd Wurst Verständliche Fehlermeldung...

Bernd Wurst authored 8 years ago

modules/email/include/vmail.php 271)     if ($id == NULL && get_vmail_id_by_emailaddr($account['local'].'@'.$domainname)) {
modules/email/include/vmail.php 272)       system_failure('Diese E-Mail-Adresse gibt es bereits.');
modules/email/include/vmail.php 273)       return false;
modules/email/include/vmail.php 274)     }
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 275)   }
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 276)   
modules/vmail/include/vmail.php 277)   $forwards = array();
modules/vmail/include/vmail.php 278)   if (count($account['forwards']) > 0) 
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 279)   {
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 280)     for ($i=0;$i < count($account['forwards']); $i++)
modules/vmail/include/vmail.php 281)     {
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 282)       if ($account['forwards'][$i]['spamfilter'] != 'tag' && $account['forwards'][$i]['spamfilter'] != 'delete') {
Bernd Wurst Bugfix: Werte dürfen nicht...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 283)         $account['forwards'][$i]['spamfilter'] = NULL;
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 284)       }
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 285)       $account['forwards'][$i]['destination'] = filter_input_general($account['forwards'][$i]['destination']);
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 286)       if (! check_emailaddr($account['forwards'][$i]['destination'])) {
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 287)         system_failure('Das Weiterleitungs-Ziel »'.$account['forwards'][$i]['destination'].'« ist keine E-Mail-Adresse!');
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 288)       }
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 289)     }
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 290)   }
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/include/vmail.php 291) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 292)   if ($accountlogin) {
modules/email/include/vmail.php 293)     $password = NULL; 
modules/email/include/vmail.php 294)     $set_password = false;
modules/email/include/vmail.php 295)   } else {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 296)     $password= NULL;
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 297)     if ($account['password'] != '')
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 298)     {
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 299)       $account['password'] = stripslashes($account['password']);
modules/email/include/vmail.php 300)       $crack = strong_password($account['password']);
modules/email/include/vmail.php 301)       if ($crack !== true)
modules/email/include/vmail.php 302)       {
modules/email/include/vmail.php 303)         system_failure('Ihr Passwort ist zu einfach. bitte wählen Sie ein sicheres Passwort!'."\nDie Fehlermeldung lautet: »{$crack}«");
modules/email/include/vmail.php 304)         return false;
modules/email/include/vmail.php 305)       }
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 306)       $password = encrypt_mail_password($account['password']);
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 307)     }
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 308)     $set_password = ($id == NULL || $password != NULL);
Bernd Wurst Räume Quota auf wenn ein Po...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 309)     if ($account['password'] === NULL) {
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 310)       $set_password=true;
Bernd Wurst Räume Quota auf wenn ein Po...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 311)     }
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 312)   }  
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 313) 
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 314)   $spam = NULL;
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 315)   switch ($account['spamfilter'])
modules/vmail/include/vmail.php 316)   {
modules/vmail/include/vmail.php 317)     case 'folder':
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 318)       $spam = "folder";
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 319)       break;
modules/vmail/include/vmail.php 320)     case 'tag':
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 321)       $spam = "tag";
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 322)       break;
modules/vmail/include/vmail.php 323)     case 'delete':
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 324)       $spam = "delete";
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 325)       break;
modules/vmail/include/vmail.php 326)   }
bernd VMail-Quota-Zeug

bernd authored 13 years ago

modules/email/include/vmail.php 327)   
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 328)   if (!$accountlogin) {
modules/email/include/vmail.php 329)     $free = config('vmail_basequota');
modules/email/include/vmail.php 330)     if ($newaccount) {
modules/email/include/vmail.php 331)       // Neues Postfach
modules/email/include/vmail.php 332)       $free = get_max_mailboxquota($server, config('vmail_basequota'));
modules/email/include/vmail.php 333)     } else {
modules/email/include/vmail.php 334)       $free = get_max_mailboxquota($oldaccount['server'], $oldaccount['quota']);
modules/email/include/vmail.php 335)     }
bernd VMail-Quota-Zeug

bernd authored 13 years ago

modules/email/include/vmail.php 336)   
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 337)     $newquota = max((int) config('vmail_basequota'), (int) $account['quota']);
modules/email/include/vmail.php 338)     if ($newquota > config('vmail_basequota') && $newquota > ($free+config('vmail_basequota'))) {
modules/email/include/vmail.php 339)       $newquota = $free + config('vmail_basequota');
modules/email/include/vmail.php 340)       warning("Ihr Speicherplatz reicht für diese Postfach-Größe nicht mehr aus. Ihr Postfach wurde auf {$newquota} MB reduziert. Bitte beachten Sie, dass damit Ihr Benutzerkonto keinen freien Speicherplatz mehr aufweist!");
modules/email/include/vmail.php 341)     }
bernd VMail-Quota-Zeug

bernd authored 13 years ago

modules/email/include/vmail.php 342)   
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 343)     $account['quota'] = $newquota;
modules/email/include/vmail.php 344)   }  
bernd Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/include/vmail.php 345) 
bernd Quota-Threshold für Notific...

bernd authored 13 years ago

modules/email/include/vmail.php 346)   if ($account['quota_threshold'] == -1) {
Bernd Wurst String 'NULL' eliminiert

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 347)     $account['quota_threshold'] = NULL;
bernd Quota-Threshold für Notific...

bernd authored 13 years ago

modules/email/include/vmail.php 348)   }
modules/email/include/vmail.php 349)   else {
modules/email/include/vmail.php 350)     $account['quota_threshold'] = min( (int) $account['quota_threshold'], (int) $account['quota'] );
modules/email/include/vmail.php 351)   }
modules/email/include/vmail.php 352)   
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 353)   $account['local'] = strtolower($account['local']);
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 354)   $account['spamexpire'] = (int) $account['spamexpire'];
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 355)   # Leerstring wird zu NULL
modules/email/include/vmail.php 356)   $account['smtpreply'] = ($account['smtpreply'] ? $account['smtpreply'] : NULL);
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 357) 
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 358)   $args = array(":local" => $account['local'],
modules/email/include/vmail.php 359)                 ":domain" => $account['domain'],
modules/email/include/vmail.php 360)                 ":password" => $password,
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 361)                 ":smtpreply" => $account['smtpreply'],
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 362)                 ":spamfilter" => $spam,
modules/email/include/vmail.php 363)                 ":spamexpire" => $account['spamexpire'],
modules/email/include/vmail.php 364)                 ":quota" => $account['quota'], 
modules/email/include/vmail.php 365)                 ":quota_threshold" => $account['quota_threshold'],
modules/email/include/vmail.php 366)                 ":id" => $id
modules/email/include/vmail.php 367)                 );
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 368)   $query = '';
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 369)   if ($newaccount)
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 370)   {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 371)     unset($args[":id"]);
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 372)     $query = "INSERT INTO mail.vmail_accounts (local, domain, spamfilter, spamexpire, password, smtpreply, quota, quota_threshold) VALUES (:local, :domain, :spamfilter, :spamexpire, :password, :smtpreply, :quota, :quota_threshold)";
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 373)   } else {
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 374)     if ($set_password)
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 375)       $pw=", password=:password";
modules/email/include/vmail.php 376)     else {
modules/email/include/vmail.php 377)       unset($args[":password"]);
modules/email/include/vmail.php 378)       $pw='';
modules/email/include/vmail.php 379)     }
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 380)     $query = "UPDATE mail.vmail_accounts SET local=:local, domain=:domain{$pw}, smtpreply=:smtpreply, spamfilter=:spamfilter, spamexpire=:spamexpire, quota=:quota, quota_threshold=:quota_threshold WHERE id=:id";
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 381)   }
modules/email/include/vmail.php 382)   db_query($query, $args); 
modules/email/include/vmail.php 383)   if ($newaccount) {
modules/email/include/vmail.php 384)     $id = db_insert_id();
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 385)   }
bernd Bugfix: Fehler bei neu erst...

bernd authored 12 years ago

modules/email/include/vmail.php 386) 
modules/email/include/vmail.php 387)   if (is_array($account['autoresponder'])) {
modules/email/include/vmail.php 388)     $ar = $account['autoresponder'];
Bernd Wurst Autoresponder nur noch befr...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 389)     $quote = NULL;
bernd Bugfix: Fehler bei neu erst...

bernd authored 12 years ago

modules/email/include/vmail.php 390)     if ($ar['quote'] == 'attach')
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 391)       $quote = "attach";
Bernd Wurst Autoresponder nur noch befr...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 392)     elseif ($ar['quote'] == 'inline')
modules/email/include/vmail.php 393)       $quote = 'inline';
modules/email/include/vmail.php 394)     elseif ($ar['quote'] == 'teaser')
modules/email/include/vmail.php 395)       $quote = 'teaser';
Bernd Wurst Bugfix: Autoresponder-From-...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 396)     if (! check_emailaddr($ar['fromaddr'])) {
modules/email/include/vmail.php 397)       input_error("Die Absenderadresse sieht ungültig aus. Es wird Ihre E-Mail-Adresse benutzt!");
modules/email/include/vmail.php 398)       $ar['fromaddr'] = NULL;
modules/email/include/vmail.php 399)     }
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 400)     $query = "REPLACE INTO mail.vmail_autoresponder (account, valid_from, valid_until, fromname, fromaddr, subject, message, quote) ".
modules/email/include/vmail.php 401)              "VALUES (:id, :valid_from, :valid_until, :fromname, :fromaddr, :subject, :message, :quote)";
modules/email/include/vmail.php 402)     $args = array(":id" => $id,
modules/email/include/vmail.php 403)                   ":valid_from" => $ar['valid_from'],
modules/email/include/vmail.php 404)                   ":valid_until" => $ar['valid_until'],
modules/email/include/vmail.php 405)                   ":fromname" => $ar['fromname'],
Bernd Wurst Bugfix: Autoresponder-From-...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 406)                   ":fromaddr" => $ar['fromaddr'],
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 407)                   ":subject" => $ar['subject'],
modules/email/include/vmail.php 408)                   ":message" => $ar['message'],
modules/email/include/vmail.php 409)                   ":quote" => $quote);
modules/email/include/vmail.php 410)     db_query($query, $args);
bernd Bugfix: Fehler bei neu erst...

bernd authored 12 years ago

modules/email/include/vmail.php 411)   }
modules/email/include/vmail.php 412)     
modules/email/include/vmail.php 413) 
modules/email/include/vmail.php 414) 
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 415)   if (! $newaccount)
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 416)     db_query("DELETE FROM mail.vmail_forward WHERE account=?", array($id));
bernd VMail-accounts können sich...

bernd authored 16 years ago

modules/vmail/include/vmail.php 417) 
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 418)   if (count($account['forwards']) > 0)
modules/vmail/include/vmail.php 419)   {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 420)     $forward_query = "INSERT INTO mail.vmail_forward (account,spamfilter,destination) VALUES (:account, :spamfilter, :destination)";
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 421)     for ($i=0;$i < count($account['forwards']); $i++)
modules/vmail/include/vmail.php 422)     { 
Bernd Wurst Typo repariert

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 423)       db_query($forward_query, array(":account" => $id, ":spamfilter" => $account['forwards'][$i]['spamfilter'], ":destination" => $account['forwards'][$i]['destination']));
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 424)     }
modules/vmail/include/vmail.php 425)   }
Bernd Wurst Vorbereitung für Warnungen...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 426)   if ($newaccount && $password)
bernd Benachrichtige vmail-userac...

bernd authored 17 years ago

modules/vmail/include/vmail.php 427)   {
Bernd Wurst E-Mail-Adressen immer lower...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 428)     $servername = get_server_by_id($server);
modules/email/include/vmail.php 429)     $emailaddr = 'vmail-'.$account['local'].'%'.$domainname.'@'.$servername;
modules/email/include/vmail.php 430)     $username = $account['local'].'@'.$domainname;
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 431)     $webmailurl = config('webmail_url');
bernd Falsche Variable benutzt, j...

bernd authored 12 years ago

modules/email/include/vmail.php 432)     $servername = get_server_by_id($server);
Bernd Wurst E-Mail-Adressen immer lower...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 433)     $message = 'Ihr neues E-Mail-Postfach '.$username.' ist einsatzbereit!
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 434) 
modules/email/include/vmail.php 435) Wenn Sie diese Nachricht sehen, haben Sie das Postfach erfolgreich 
modules/email/include/vmail.php 436) abgerufen. Sie können diese Nachricht nach Kenntnisnahme löschen.
modules/email/include/vmail.php 437) 
modules/email/include/vmail.php 438) Wussten Sie schon, dass Sie auf mehrere Arten Ihre E-Mails abrufen können?
modules/email/include/vmail.php 439) 
modules/email/include/vmail.php 440) - Für unterwegs: Webmail
modules/email/include/vmail.php 441)   Rufen Sie dazu einfach die Seite '.$webmailurl.' auf und 
modules/email/include/vmail.php 442)   geben Sie Ihre E-Mail-Adresse und das Passwort ein.
modules/email/include/vmail.php 443) 
modules/email/include/vmail.php 444) - Mit Ihrem Computer oder Smartphone: IMAP oder POP3
modules/email/include/vmail.php 445)   Tragen Sie bitte folgende Zugangsdaten in Ihrem Programm ein:
bernd Falsche Variable benutzt, j...

bernd authored 12 years ago

modules/email/include/vmail.php 446)     Server-Name: '.$servername.'
Bernd Wurst E-Mail-Adressen immer lower...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 447)     Benutzername: '.$username.'
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 448)   (Achten Sie bitte darauf, dass die Verschlüsselung mit SSL oder TLS 
modules/email/include/vmail.php 449)   aktiviert ist.)
modules/email/include/vmail.php 450) ';
modules/email/include/vmail.php 451)     # send welcome message
modules/email/include/vmail.php 452)     mail($emailaddr, 'Ihr neues Postfach ist bereit', $message, "X-schokokeks-org-message: welcome\nFrom: ".config('company_name').' <'.config('adminmail').">\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\n");
bernd Benachrichtige vmail-userac...

bernd authored 17 years ago

modules/vmail/include/vmail.php 453)     # notify the vmail subsystem of this new account
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 454)     #mail('vmail@'.config('vmail_server'), 'command', "user={$account['local']}\nhost={$domainname}", "X-schokokeks-org-message: command");
bernd Benachrichtige vmail-userac...

bernd authored 17 years ago

modules/vmail/include/vmail.php 455)   }
bernd Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/include/vmail.php 456) 
Bernd Wurst Räume Quota auf wenn ein Po...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 457)   // Clean up obsolete quota
modules/email/include/vmail.php 458)   if ($_SESSION['role'] == ROLE_SYSTEMUSER) {
modules/email/include/vmail.php 459)     db_query("UPDATE mail.vmail_accounts SET quota_used=NULL, quota=NULL WHERE password IS NULL");
modules/email/include/vmail.php 460)   }
modules/email/include/vmail.php 461) 
bernd Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/include/vmail.php 462)   // Update Mail-Quota-Cache
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 463)   if ($_SESSION['role'] == ROLE_SYSTEMUSER) {
modules/email/include/vmail.php 464)     $uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 465)     $result = db_query("SELECT useraccount, server, SUM(quota-(SELECT value FROM misc.config WHERE `key`='vmail_basequota')) AS quota, SUM(GREATEST(quota_used-(SELECT value FROM misc.config WHERE `key`='vmail_basequota'), 0)) AS used FROM mail.v_vmail_accounts WHERE useraccount=? GROUP BY useraccount, server", array($uid));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 466)     while ($line = $result->fetch()) {
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 467)       if ($line['quota'] !== NULL) {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 468)         db_query("REPLACE INTO mail.vmailquota (uid, server, quota, used) VALUES (:uid, :server, :quota, :used)", array(":uid" => $line['useraccount'], ":server" => $line['server'], ":quota" => $line['quota'], ":used" => $line['used']));
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 469)       }
bernd Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/include/vmail.php 470)     }
modules/email/include/vmail.php 471)   }
modules/email/include/vmail.php 472) 
bernd Nicht behebbare Fehlermeldu...

bernd authored 14 years ago

modules/email/include/vmail.php 473)   return true;
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 474) }
modules/vmail/include/vmail.php 475) 
modules/vmail/include/vmail.php 476) 
modules/vmail/include/vmail.php 477) 
bernd Löschen geht jetzt auch

bernd authored 17 years ago

modules/vmail/include/vmail.php 478) function delete_account($id)
modules/vmail/include/vmail.php 479) {
modules/vmail/include/vmail.php 480)   $account = get_account_details($id);
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 481)   db_query("DELETE FROM mail.vmail_accounts WHERE id=?", array($account['id']));
bernd Löschen geht jetzt auch

bernd authored 17 years ago

modules/vmail/include/vmail.php 482) }
modules/vmail/include/vmail.php 483) 
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/include/vmail.php 484) 
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 485) 
modules/email/include/vmail.php 486) function domainsettings($only_domain=NULL) {
modules/email/include/vmail.php 487)   $uid = (int) $_SESSION['userinfo']['uid'];
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 488)   if ($only_domain)
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 489)     $only_domain = (int) $only_domain;
modules/email/include/vmail.php 490)   $domains = array();
modules/email/include/vmail.php 491)   $subdomains = array();
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 492) 
modules/email/include/vmail.php 493)   // Domains
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 494)   $result = db_query("SELECT d.id, CONCAT_WS('.',d.domainname,d.tld) AS name, d.mail, d.mailserver_lock, m.id AS m_id, v.id AS v_id FROM kundendaten.domains AS d LEFT JOIN mail.virtual_mail_domains AS v ON (d.id=v.domain AND v.hostname IS NULL) LEFT JOIN mail.custom_mappings AS m ON (d.id=m.domain AND m.subdomain IS NULL) WHERE d.useraccount=:uid OR m.uid=:uid ORDER BY CONCAT_WS('.',d.domainname,d.tld);", array(":uid" => $uid));
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 495) 
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 496)   while ($mydom = $result->fetch()) {
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 497)     if (! array_key_exists($mydom['id'], $domains)) {
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 498)       if ($mydom['v_id'])
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 499)         $mydom['mail'] = 'virtual';
modules/email/include/vmail.php 500)       $domains[$mydom['id']] = array(
modules/email/include/vmail.php 501)         "name" => $mydom['name'],
Bernd Wurst Zeige mailserver_lock im We...

Bernd Wurst authored 11 years ago

modules/email/include/vmail.php 502)         "type" => $mydom['mail'],
modules/email/include/vmail.php 503)         "mailserver_lock" => $mydom['mailserver_lock']
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 504)         );
modules/email/include/vmail.php 505)       if ($only_domain && $only_domain == $mydom['id'])
modules/email/include/vmail.php 506)         return $domains[$only_domain];
modules/email/include/vmail.php 507)     }
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 508)   }      
modules/email/include/vmail.php 509) 
modules/email/include/vmail.php 510)   // Subdomains
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 511)   $result = db_query("SELECT d.id, CONCAT_WS('.',d.domainname,d.tld) AS name, d.mail, m.id AS m_id, v.id AS v_id, IF(ISNULL(v.hostname),m.subdomain,v.hostname) AS hostname FROM kundendaten.domains AS d LEFT JOIN mail.virtual_mail_domains AS v ON (d.id=v.domain AND v.hostname IS NOT NULL) LEFT JOIN mail.custom_mappings AS m ON (d.id=m.domain AND m.subdomain IS NOT NULL) WHERE (m.id IS NOT NULL OR v.id IS NOT NULL) AND d.useraccount=:uid OR m.uid=:uid;", array(":uid" => $uid));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 512)   while ($mydom = $result->fetch()) {
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 513)     if (! array_key_exists($mydom['id'], $subdomains))
modules/email/include/vmail.php 514)       $subdomains[$mydom['id']] = array();
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 515)         
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 516)     $type = 'auto';
modules/email/include/vmail.php 517)     if ($mydom['v_id'])
modules/email/include/vmail.php 518)       $type = 'virtual';
modules/email/include/vmail.php 519)     $subdomains[$mydom['id']][] = array(
modules/email/include/vmail.php 520)       "name" => $mydom['hostname'],
modules/email/include/vmail.php 521)       "type" => $type
modules/email/include/vmail.php 522)       );
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 523)   }
modules/email/include/vmail.php 524)   return array("domains" => $domains, "subdomains" => $subdomains);
modules/email/include/vmail.php 525) }
modules/email/include/vmail.php 526) 
modules/email/include/vmail.php 527) 
modules/email/include/vmail.php 528) function domain_has_vmail_accounts($domid)
modules/email/include/vmail.php 529) {
modules/email/include/vmail.php 530)   $domid = (int) $domid;
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 531)   $result = db_query("SELECT dom.id FROM mail.vmail_accounts AS acc LEFT JOIN mail.virtual_mail_domains AS dom ON (dom.id=acc.domain) WHERE dom.domain=?", array($domid));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 532)   return ($result->rowCount() > 0);
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 533) }
modules/email/include/vmail.php 534) 
modules/email/include/vmail.php 535) 
modules/email/include/vmail.php 536) function change_domain($id, $type)
modules/email/include/vmail.php 537) {
modules/email/include/vmail.php 538)   $id = (int) $id;
modules/email/include/vmail.php 539)   if (domain_has_vmail_accounts($id))
modules/email/include/vmail.php 540)     system_failure("Sie müssen zuerst alle E-Mail-Konten mit dieser Domain löschen, bevor Sie die Webinterface-Verwaltung für diese Domain abschalten können.");
modules/email/include/vmail.php 541)   
modules/email/include/vmail.php 542)   if (! in_array($type, array('none','auto','virtual')))
modules/email/include/vmail.php 543)     system_failure("Ungültige Aktion");
modules/email/include/vmail.php 544)   
modules/email/include/vmail.php 545)   $old = domainsettings($id);
modules/email/include/vmail.php 546)   if ($old['type'] == $type)
modules/email/include/vmail.php 547)     system_failure('Domain ist bereits so konfiguriert');
modules/email/include/vmail.php 548) 
modules/email/include/vmail.php 549)   if ($type == 'none') {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 550)     db_query("DELETE FROM mail.virtual_mail_domains WHERE domain=? AND hostname IS NULL", array($id));
modules/email/include/vmail.php 551)     db_query("DELETE FROM mail.custom_mappings WHERE domain=? AND subdomain IS NULL", array($id));
modules/email/include/vmail.php 552)     db_query("UPDATE kundendaten.domains SET mail='none', lastchange=NOW() WHERE id=?", array($id));
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 553)   }
modules/email/include/vmail.php 554)   elseif ($type == 'virtual') {
bernd Info-Seite über Mail-Login-...

bernd authored 13 years ago

modules/email/include/vmail.php 555)     $vmailserver = (int) $_SESSION['userinfo']['server'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 556)     db_query("DELETE FROM mail.custom_mappings WHERE domain=? AND subdomain IS NULL", array($id));
modules/email/include/vmail.php 557)     db_query("UPDATE kundendaten.domains SET mail='auto', lastchange=NOW() WHERE id=?", array($id));
modules/email/include/vmail.php 558)     db_query("INSERT INTO mail.virtual_mail_domains (domain, server) VALUES (?, ?)", array($id, $vmailserver));
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 559)   }
modules/email/include/vmail.php 560)   elseif ($type == 'auto') {
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/vmail.php 561)     db_query("DELETE FROM mail.virtual_mail_domains WHERE domain=? AND hostname IS NULL LIMIT 1;", array($id));
modules/email/include/vmail.php 562)     db_query("DELETE FROM mail.custom_mappings WHERE domain=? AND subdomain IS NULL LIMIT 1;", array($id));
modules/email/include/vmail.php 563)     db_query("UPDATE kundendaten.domains SET mail='auto', lastchange=NOW() WHERE id=? LIMIT 1;", array($id));