450f6f457d0ce55635ce74bb69fcf4ce22dccfab
bernd Erste Version des vmail-Modul

bernd authored 16 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) 
modules/email/include/vmail.php   5) Written 2008-2012 by schokokeks.org Hosting, namely
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 16 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 16 years ago

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

bernd authored 16 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 Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php  24) function empty_account()
modules/vmail/include/vmail.php  25) {
modules/vmail/include/vmail.php  26) 	$account = array(
modules/vmail/include/vmail.php  27) 		'id' => NULL,
modules/vmail/include/vmail.php  28) 		'local' => '',
modules/vmail/include/vmail.php  29) 		'domain' => NULL,
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 13 years ago

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

bernd authored 13 years ago

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

bernd authored 12 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php  37) 		);
modules/vmail/include/vmail.php  38) 	return $account;
modules/vmail/include/vmail.php  39) 
modules/vmail/include/vmail.php  40) }
modules/vmail/include/vmail.php  41) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

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

bernd authored 12 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php  46)     'valid_until' => NULL,
modules/email/include/vmail.php  47)     'fromname' => NULL,
modules/email/include/vmail.php  48)     'fromaddr' => NULL,
modules/email/include/vmail.php  49)     'subject' => NULL,
modules/email/include/vmail.php  50)     'message' => 'Danke für Ihre E-Mail.
modules/email/include/vmail.php  51) Ich bin aktuell nicht im Büro und werde Ihre Nachricht erst nach meiner Rückkehr beantworten.
modules/email/include/vmail.php  52) Ihre E-Mail wird nicht weitergeleitet.',
modules/email/include/vmail.php  53)     'quote' => NULL
modules/email/include/vmail.php  54)     );
modules/email/include/vmail.php  55)   return $ar;
modules/email/include/vmail.php  56) }
modules/email/include/vmail.php  57) 
modules/email/include/vmail.php  58) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php  59) function get_vmail_id_by_emailaddr($emailaddr) 
modules/email/include/vmail.php  60) {
modules/email/include/vmail.php  61)   $emailaddr = mysql_real_escape_string( $emailaddr );
modules/email/include/vmail.php  62)   $result = db_query("SELECT id FROM mail.v_vmail_accounts WHERE CONCAT(local, '@', domainname) = '{$emailaddr}'");
modules/email/include/vmail.php  63)   $entry = mysql_fetch_assoc($result);
modules/email/include/vmail.php  64)   return (int) $entry['id'];
modules/email/include/vmail.php  65) }
modules/email/include/vmail.php  66) 
bernd VMail-accounts können sich...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php  70)   $uid_check = '';
modules/email/include/vmail.php  71)   DEBUG("checkuid: ".$checkuid);
modules/email/include/vmail.php  72)   if ($checkuid) {
modules/email/include/vmail.php  73)     $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/vmail.php  74)     $uid_check = "useraccount='{$uid}' AND ";
modules/email/include/vmail.php  75)   }
modules/email/include/vmail.php  76)   $result = db_query("SELECT id, local, domain, password, 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");
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php  77) 	if (mysql_num_rows($result) == 0)
modules/vmail/include/vmail.php  78) 		system_failure('Ungültige ID oder kein eigener Account');
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php  79) 	$acc = empty_account();
modules/vmail/include/vmail.php  80) 	$res = mysql_fetch_assoc($result);
modules/vmail/include/vmail.php  81) 	foreach ($res AS $key => $value) {
modules/vmail/include/vmail.php  82) 	  if ($key == 'forwards')
modules/vmail/include/vmail.php  83) 	    continue;
modules/vmail/include/vmail.php  84) 	  $acc[$key] = $value;
modules/vmail/include/vmail.php  85) 	}
modules/vmail/include/vmail.php  86) 	if ($acc['forwards'] > 0) {
modules/vmail/include/vmail.php  87) 	  $result = db_query("SELECT id, spamfilter, destination FROM mail.vmail_forward WHERE account={$acc['id']};");
modules/vmail/include/vmail.php  88) 	  while ($item = mysql_fetch_assoc($result)){
modules/vmail/include/vmail.php  89) 	    array_push($acc['forwards'], array("id" => $item['id'], 'spamfilter' => $item['spamfilter'], 'destination' => $item['destination']));
modules/vmail/include/vmail.php  90) 	  }
modules/vmail/include/vmail.php  91) 	}
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/include/vmail.php  92)   if ($acc['autoresponder'] > 0) {
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/include/vmail.php  93)     $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={$acc['id']}");
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/include/vmail.php  94)     $item = mysql_fetch_assoc($result);
modules/email/include/vmail.php  95)     DEBUG($item);
modules/email/include/vmail.php  96)     $acc['autoresponder'] = $item;
modules/email/include/vmail.php  97)   } else {
modules/email/include/vmail.php  98)     $acc['autoresponder'] = NULL;
modules/email/include/vmail.php  99)   }
bernd Quota-Threshold für Notific...

bernd authored 13 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 104) }
modules/vmail/include/vmail.php 105) 
modules/vmail/include/vmail.php 106) function get_vmail_accounts()
modules/vmail/include/vmail.php 107) {
modules/vmail/include/vmail.php 108) 	$uid = (int) $_SESSION['userinfo']['uid'];
bernd Sortiere VMail-Anzeige alph...

bernd authored 14 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 110) 	$ret = array();
modules/vmail/include/vmail.php 111) 	while ($line = mysql_fetch_assoc($result))
modules/vmail/include/vmail.php 112) 	{
modules/vmail/include/vmail.php 113) 		array_push($ret, $line);
modules/vmail/include/vmail.php 114) 	}
modules/vmail/include/vmail.php 115) 	DEBUG($ret);
modules/vmail/include/vmail.php 116) 	return $ret;
modules/vmail/include/vmail.php 117) }
modules/vmail/include/vmail.php 118) 
modules/vmail/include/vmail.php 119) 
modules/vmail/include/vmail.php 120) 
modules/vmail/include/vmail.php 121) function get_vmail_domains()
modules/vmail/include/vmail.php 122) {
modules/vmail/include/vmail.php 123) 	$uid = (int) $_SESSION['userinfo']['uid'];
bernd VMail-Quota-Zeug

bernd authored 13 years ago

modules/email/include/vmail.php 124) 	$result = db_query("SELECT id, domainname, server FROM mail.v_vmail_domains WHERE useraccount='{$uid}'");
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php 125) 	if (mysql_num_rows($result) == 0)
modules/vmail/include/vmail.php 126) 		system_failure('Sie haben keine Domains für virtuelle Mail-Verarbeitung');
modules/vmail/include/vmail.php 127) 	$ret = array();
modules/vmail/include/vmail.php 128) 	while ($tmp = mysql_fetch_object($result))
modules/vmail/include/vmail.php 129) 		array_push($ret, $tmp);
modules/vmail/include/vmail.php 130) 	return $ret;
modules/vmail/include/vmail.php 131) }
modules/vmail/include/vmail.php 132) 
modules/vmail/include/vmail.php 133) 
bernd VMail-accounts können sich...

bernd authored 16 years ago

modules/vmail/include/vmail.php 134) function find_account_id($accname)
modules/vmail/include/vmail.php 135) {
modules/vmail/include/vmail.php 136)   $accname = mysql_real_escape_string($accname);
modules/vmail/include/vmail.php 137)   DEBUG($accname);
modules/vmail/include/vmail.php 138)   $tmp = explode('@', $accname, 2);
modules/vmail/include/vmail.php 139)   DEBUG($tmp);
modules/vmail/include/vmail.php 140)   if (count($tmp) != 2)
modules/vmail/include/vmail.php 141)     system_failure("Der Account hat nicht die korrekte Syntax");
modules/vmail/include/vmail.php 142)   list( $local, $domainname) = $tmp;
modules/vmail/include/vmail.php 143) 
modules/vmail/include/vmail.php 144)   $result = db_query("SELECT id FROM mail.v_vmail_accounts WHERE local='{$local}' AND domainname='{$domainname}' LIMIT 1");
modules/vmail/include/vmail.php 145)   if (mysql_num_rows($result) == 0)
modules/vmail/include/vmail.php 146)     system_failure("Der Account konnte nicht gefunden werden");
modules/vmail/include/vmail.php 147)   $tmp = mysql_fetch_array($result);
modules/vmail/include/vmail.php 148)   return $tmp[0];
modules/vmail/include/vmail.php 149) }
modules/vmail/include/vmail.php 150) 
modules/vmail/include/vmail.php 151) 
modules/vmail/include/vmail.php 152) function change_vmail_password($accname, $newpass)
modules/vmail/include/vmail.php 153) {
modules/vmail/include/vmail.php 154)   $accid = find_account_id($accname);
modules/vmail/include/vmail.php 155)   $encpw = mysql_real_escape_string(encrypt_mail_password($newpass));
modules/vmail/include/vmail.php 156)   db_query("UPDATE mail.vmail_accounts SET password='{$encpw}' WHERE id={$accid} LIMIT 1;");
modules/vmail/include/vmail.php 157) }
modules/vmail/include/vmail.php 158) 
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 163)   $selected = (int) $selected;
modules/vmail/include/vmail.php 164) 
modules/vmail/include/vmail.php 165)   $ret = '<select id="domain" name="domain" size="1" '.$selectattribute.' >';
modules/vmail/include/vmail.php 166)   foreach ($domainlist as $dom)
modules/vmail/include/vmail.php 167)   {
modules/vmail/include/vmail.php 168)     $s = ($selected == $dom->id) ? ' selected="selected" ': '';
modules/vmail/include/vmail.php 169)     $ret .= "<option value=\"{$dom->id}\"{$s}>{$dom->domainname}</option>\n";
modules/vmail/include/vmail.php 170)   }
modules/vmail/include/vmail.php 171)   $ret .= '</select>';
modules/vmail/include/vmail.php 172)   return $ret;
modules/vmail/include/vmail.php 173) }
modules/vmail/include/vmail.php 174) 
modules/vmail/include/vmail.php 175) 
bernd VMail-Quota-Zeug

bernd authored 13 years ago

modules/email/include/vmail.php 176) function get_max_mailboxquota($server, $oldquota) {
modules/email/include/vmail.php 177)   $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/vmail.php 178)   $server = (int) $server;
modules/email/include/vmail.php 179)   $result = db_query("SELECT systemquota - (systemquota_used + mailquota) AS free FROM system.v_quota WHERE uid='{$uid}' AND server='{$server}'");
modules/email/include/vmail.php 180)   $item = mysql_fetch_assoc($result);
modules/email/include/vmail.php 181)   DEBUG("Free space: ".$item['free']." / Really: ".($item['free'] + ($oldquota - config('vmail_basequota'))));
modules/email/include/vmail.php 182)   return $item['free'] + ($oldquota - config('vmail_basequota'));
modules/email/include/vmail.php 183) }
modules/email/include/vmail.php 184) 
modules/email/include/vmail.php 185) 
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php 186) 
modules/vmail/include/vmail.php 187) 
modules/vmail/include/vmail.php 188) function save_vmail_account($account)
modules/vmail/include/vmail.php 189) {
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 191)   $id = $account['id'];
modules/vmail/include/vmail.php 192)   if ($id != NULL)
modules/vmail/include/vmail.php 193)   {
modules/vmail/include/vmail.php 194)     $id = (int) $id;
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 196)     // Erzeugt einen system_error() wenn ID ungültig
modules/vmail/include/vmail.php 197)   }
modules/vmail/include/vmail.php 198)   // 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 199) 
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 200)   $newaccount = false;
modules/email/include/vmail.php 201)   if ($id === NULL) {
modules/email/include/vmail.php 202)     $newaccount = true;
modules/email/include/vmail.php 203)   }
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/include/vmail.php 204) 
modules/email/include/vmail.php 205)   if ($accountlogin) {
modules/email/include/vmail.php 206)     if ($account['domain'] != $oldaccount['domain'])
modules/email/include/vmail.php 207)       system_failure('Sie können die E-Mail-Adresse nicht ändern!');
modules/email/include/vmail.php 208)     if ($account['local'] != $oldaccount['local'])
modules/email/include/vmail.php 209)       system_failure('Sie können die E-Mail-Adresse nicht ändern!');
modules/email/include/vmail.php 210)     if ($account['quota'] != $oldaccount['quota'])
modules/email/include/vmail.php 211)       system_failure('Sie können Ihren eigenen Speicherplatz nicht verändern.');
modules/email/include/vmail.php 212)   } else {
modules/email/include/vmail.php 213)   
modules/email/include/vmail.php 214)     $account['local'] = filter_input_username($account['local']);
modules/email/include/vmail.php 215)     if ($account['local'] == '')
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 217)       system_failure('Die E-Mail-Adresse braucht eine Angabe vor dem »@«!');
modules/email/include/vmail.php 218)       return false;
modules/email/include/vmail.php 219)     }
modules/email/include/vmail.php 220)     $account['domain'] = (int) $account['domain'];
modules/email/include/vmail.php 221)     $domainlist = get_vmail_domains();
modules/email/include/vmail.php 222)     $valid_domain = false;
modules/email/include/vmail.php 223)     $domainname = NULL;
modules/email/include/vmail.php 224)     $server = NULL;
modules/email/include/vmail.php 225)     foreach ($domainlist as $dom)
modules/email/include/vmail.php 226)     {
modules/email/include/vmail.php 227)       if ($dom->id == $account['domain'])
modules/email/include/vmail.php 228)       {
modules/email/include/vmail.php 229)         $domainname = $dom->domainname;
modules/email/include/vmail.php 230)         $server = $dom->server;
modules/email/include/vmail.php 231)         $valid_domain = true;
modules/email/include/vmail.php 232)         break;
modules/email/include/vmail.php 233)       }
modules/email/include/vmail.php 234)     }
modules/email/include/vmail.php 235)     if (($account['domain'] == 0) || (! $valid_domain))
modules/email/include/vmail.php 236)     {
modules/email/include/vmail.php 237)       system_failure('Bitte wählen Sie eine Ihrer Domains aus!');
modules/email/include/vmail.php 238)       return false;
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 245)     for ($i=0;$i < count($account['forwards']); $i++)
modules/vmail/include/vmail.php 246)     {
modules/vmail/include/vmail.php 247)       if ($account['forwards'][$i]['spamfilter'] != 'tag' && $account['forwards'][$i]['spamfilter'] != 'delete')
modules/vmail/include/vmail.php 248)         $account['forwards'][$i]['spamfilter'] = '';
modules/vmail/include/vmail.php 249)       $account['forwards'][$i]['destination'] = filter_input_general($account['forwards'][$i]['destination']);
modules/vmail/include/vmail.php 250)       if (! check_emailaddr($account['forwards'][$i]['destination']))
modules/vmail/include/vmail.php 251)         system_failure('Das Weiterleitungs-Ziel »'.$account['forwards'][$i]['destination'].'« ist keine E-Mail-Adresse!');
modules/vmail/include/vmail.php 252)     }
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

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

bernd authored 12 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 255)   if ($accountlogin) {
modules/email/include/vmail.php 256)     $password = NULL; 
modules/email/include/vmail.php 257)     $set_password = false;
modules/email/include/vmail.php 258)   } else {
modules/email/include/vmail.php 259)     $password='NULL';
modules/email/include/vmail.php 260)     if ($account['password'] != '')
bernd Anpassung auf neues Interface

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 262)       $account['password'] = stripslashes($account['password']);
modules/email/include/vmail.php 263)       $crack = strong_password($account['password']);
modules/email/include/vmail.php 264)       if ($crack !== true)
modules/email/include/vmail.php 265)       {
modules/email/include/vmail.php 266)         system_failure('Ihr Passwort ist zu einfach. bitte wählen Sie ein sicheres Passwort!'."\nDie Fehlermeldung lautet: »{$crack}«");
modules/email/include/vmail.php 267)         return false;
modules/email/include/vmail.php 268)       }
modules/email/include/vmail.php 269)       $password = "'".encrypt_mail_password($account['password'])."'";
bernd Anpassung auf neues Interface

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 271)     $set_password = ($id == NULL || $password != 'NULL');
modules/email/include/vmail.php 272)     if ($account['password'] === NULL)
modules/email/include/vmail.php 273)       $set_password=true;
modules/email/include/vmail.php 274)   }  
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php 275) 
modules/vmail/include/vmail.php 276)   $spam = 'NULL';
modules/vmail/include/vmail.php 277)   switch ($account['spamfilter'])
modules/vmail/include/vmail.php 278)   {
modules/vmail/include/vmail.php 279)     case 'folder':
modules/vmail/include/vmail.php 280)       $spam = "'folder'";
modules/vmail/include/vmail.php 281)       break;
modules/vmail/include/vmail.php 282)     case 'tag':
modules/vmail/include/vmail.php 283)       $spam = "'tag'";
modules/vmail/include/vmail.php 284)       break;
modules/vmail/include/vmail.php 285)     case 'delete':
modules/vmail/include/vmail.php 286)       $spam = "'delete'";
modules/vmail/include/vmail.php 287)       break;
modules/vmail/include/vmail.php 288)   }
bernd VMail-Quota-Zeug

bernd authored 13 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 290)   if (!$accountlogin) {
modules/email/include/vmail.php 291)     $free = config('vmail_basequota');
modules/email/include/vmail.php 292)     if ($newaccount) {
modules/email/include/vmail.php 293)       // Neues Postfach
modules/email/include/vmail.php 294)       $free = get_max_mailboxquota($server, config('vmail_basequota'));
modules/email/include/vmail.php 295)     } else {
modules/email/include/vmail.php 296)       $free = get_max_mailboxquota($oldaccount['server'], $oldaccount['quota']);
modules/email/include/vmail.php 297)     }
bernd VMail-Quota-Zeug

bernd authored 13 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 299)     $newquota = max((int) config('vmail_basequota'), (int) $account['quota']);
modules/email/include/vmail.php 300)     if ($newquota > config('vmail_basequota') && $newquota > ($free+config('vmail_basequota'))) {
modules/email/include/vmail.php 301)       $newquota = $free + config('vmail_basequota');
modules/email/include/vmail.php 302)       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 303)     }
bernd VMail-Quota-Zeug

bernd authored 13 years ago

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

bernd authored 12 years ago

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

bernd authored 13 years ago

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

bernd authored 13 years ago

modules/email/include/vmail.php 308)   if ($account['quota_threshold'] == -1) {
modules/email/include/vmail.php 309)     $account['quota_threshold'] = 'NULL';
modules/email/include/vmail.php 310)   }
modules/email/include/vmail.php 311)   else {
modules/email/include/vmail.php 312)     $account['quota_threshold'] = min( (int) $account['quota_threshold'], (int) $account['quota'] );
modules/email/include/vmail.php 313)   }
modules/email/include/vmail.php 314)   
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php 315)   $account['local'] = mysql_real_escape_string($account['local']);
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 316)   $account['password'] = mysql_real_escape_string($account['password']);
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php 317)   $account['spamexpire'] = (int) $account['spamexpire'];
modules/vmail/include/vmail.php 318) 
modules/vmail/include/vmail.php 319)   $query = '';
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 321)   {
bernd Quota-Threshold für Notific...

bernd authored 13 years ago

modules/email/include/vmail.php 322)     $query = "INSERT INTO mail.vmail_accounts (local, domain, spamfilter, spamexpire, password, quota, quota_threshold) VALUES ";
modules/email/include/vmail.php 323)     $query .= "('{$account['local']}', {$account['domain']}, {$spam}, {$account['spamexpire']}, {$password}, {$account['quota']}, {$account['quota_threshold']});";
bernd Logikfehler beim Anlegen vo...

bernd authored 12 years ago

modules/email/include/vmail.php 324)     db_query($query); 
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 325)     $id = mysql_insert_id();
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php 326)   }
modules/vmail/include/vmail.php 327)   else
modules/vmail/include/vmail.php 328)   {
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 329)     if ($set_password)
modules/vmail/include/vmail.php 330)       $password=", password={$password}";
modules/vmail/include/vmail.php 331)     else
modules/vmail/include/vmail.php 332)       $password='';
modules/vmail/include/vmail.php 333)     $query = "UPDATE mail.vmail_accounts SET local='{$account['local']}', domain={$account['domain']}{$password}, ";
bernd Quota-Threshold für Notific...

bernd authored 13 years ago

modules/email/include/vmail.php 334)     $query .= "spamfilter={$spam}, spamexpire={$account['spamexpire']}, quota={$account['quota']}, quota_threshold={$account['quota_threshold']} ";
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/include/vmail.php 335)     $query .= "WHERE id={$id} LIMIT 1;";
bernd Logikfehler beim Anlegen vo...

bernd authored 12 years ago

modules/email/include/vmail.php 336)     db_query($query); 
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 338) 
modules/email/include/vmail.php 339)   if (is_array($account['autoresponder'])) {
modules/email/include/vmail.php 340)     $ar = $account['autoresponder'];
modules/email/include/vmail.php 341)     $valid_from = maybe_null($ar['valid_from']);
modules/email/include/vmail.php 342)     $valid_until = maybe_null($ar['valid_until']);
modules/email/include/vmail.php 343)     $fromname = maybe_null( mysql_real_escape_string($ar['fromname']) );
modules/email/include/vmail.php 344)     $fromaddr = NULL;
modules/email/include/vmail.php 345)     if ($ar['fromaddr']) {
modules/email/include/vmail.php 346)       $fromaddr = mysql_real_escape_string(check_emailaddr($ar['fromaddr']));
modules/email/include/vmail.php 347)     }
modules/email/include/vmail.php 348)     $fromaddr = maybe_null( $fromaddr );
modules/email/include/vmail.php 349)     $subject = maybe_null( mysql_real_escape_string($ar['subject']));
modules/email/include/vmail.php 350)     $message = mysql_real_escape_string($ar['message']);
modules/email/include/vmail.php 351)     $quote = "'inline'";
modules/email/include/vmail.php 352)     if ($ar['quote'] == 'attach')
modules/email/include/vmail.php 353)       $quote = "'attach'";
modules/email/include/vmail.php 354)     elseif ($ar['quote'] == NULL)
modules/email/include/vmail.php 355)       $quote = 'NULL';
modules/email/include/vmail.php 356)     db_query("REPLACE INTO mail.vmail_autoresponder (account, valid_from, valid_until, fromname, fromaddr, subject, message, quote) ".
modules/email/include/vmail.php 357)              "VALUES ({$id}, {$valid_from}, {$valid_until}, {$fromname}, {$fromaddr}, {$subject}, '{$message}', {$quote})");
modules/email/include/vmail.php 358)   }
modules/email/include/vmail.php 359)     
modules/email/include/vmail.php 360) 
modules/email/include/vmail.php 361) 
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 362)   if (! $newaccount)
bernd Bugfixes

bernd authored 16 years ago

modules/vmail/include/vmail.php 363)     db_query("DELETE FROM mail.vmail_forward WHERE account={$id}");
bernd VMail-accounts können sich...

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 365)   if (count($account['forwards']) > 0)
modules/vmail/include/vmail.php 366)   {
modules/vmail/include/vmail.php 367)     $forward_query = "INSERT INTO mail.vmail_forward (account,spamfilter,destination) VALUES ";
modules/vmail/include/vmail.php 368)     $first = true;
modules/vmail/include/vmail.php 369)     for ($i=0;$i < count($account['forwards']); $i++)
modules/vmail/include/vmail.php 370)     { 
modules/vmail/include/vmail.php 371)       if ($first)
modules/vmail/include/vmail.php 372)         $first = false;
modules/vmail/include/vmail.php 373)       else
modules/vmail/include/vmail.php 374)         $forward_query .= ', ';
modules/vmail/include/vmail.php 375)       $forward_query .= "({$id}, ".maybe_null($account['forwards'][$i]['spamfilter']).", '{$account['forwards'][$i]['destination']}')";
modules/vmail/include/vmail.php 376)     }
modules/vmail/include/vmail.php 377)     db_query($forward_query);
modules/vmail/include/vmail.php 378)   }
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 379)   if ($newaccount && $password != 'NULL')
bernd Benachrichtige vmail-userac...

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 381)     $emailaddr = $account['local'].'@'.$domainname;
modules/email/include/vmail.php 382)     $webmailurl = config('webmail_url');
bernd Falsche Variable benutzt, j...

bernd authored 12 years ago

modules/email/include/vmail.php 383)     $servername = get_server_by_id($server);
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 384)     $message = 'Ihr neues E-Mail-Postfach '.$emailaddr.' ist einsatzbereit!
modules/email/include/vmail.php 385) 
modules/email/include/vmail.php 386) Wenn Sie diese Nachricht sehen, haben Sie das Postfach erfolgreich 
modules/email/include/vmail.php 387) abgerufen. Sie können diese Nachricht nach Kenntnisnahme löschen.
modules/email/include/vmail.php 388) 
modules/email/include/vmail.php 389) Wussten Sie schon, dass Sie auf mehrere Arten Ihre E-Mails abrufen können?
modules/email/include/vmail.php 390) 
modules/email/include/vmail.php 391) - Für unterwegs: Webmail
modules/email/include/vmail.php 392)   Rufen Sie dazu einfach die Seite '.$webmailurl.' auf und 
modules/email/include/vmail.php 393)   geben Sie Ihre E-Mail-Adresse und das Passwort ein.
modules/email/include/vmail.php 394) 
modules/email/include/vmail.php 395) - Mit Ihrem Computer oder Smartphone: IMAP oder POP3
modules/email/include/vmail.php 396)   Tragen Sie bitte folgende Zugangsdaten in Ihrem Programm ein:
bernd Falsche Variable benutzt, j...

bernd authored 12 years ago

modules/email/include/vmail.php 397)     Server-Name: '.$servername.'
bernd Welcome-Mail für neue VMail...

bernd authored 12 years ago

modules/email/include/vmail.php 398)     Benutzername: '.$emailaddr.'
modules/email/include/vmail.php 399)   (Achten Sie bitte darauf, dass die Verschlüsselung mit SSL oder TLS 
modules/email/include/vmail.php 400)   aktiviert ist.)
modules/email/include/vmail.php 401) ';
modules/email/include/vmail.php 402)     # send welcome message
modules/email/include/vmail.php 403)     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 16 years ago

modules/vmail/include/vmail.php 404)     # 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 405)     #mail('vmail@'.config('vmail_server'), 'command', "user={$account['local']}\nhost={$domainname}", "X-schokokeks-org-message: command");
bernd Benachrichtige vmail-userac...

bernd authored 16 years ago

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

bernd authored 13 years ago

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

bernd authored 12 years ago

modules/email/include/vmail.php 409)   if ($_SESSION['role'] == ROLE_SYSTEMUSER) {
modules/email/include/vmail.php 410)     $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/vmail.php 411)     $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=".$uid." GROUP BY useraccount, server");
modules/email/include/vmail.php 412)     while ($line = mysql_fetch_assoc($result)) {
modules/email/include/vmail.php 413)       if ($line['quota'] !== NULL) {
modules/email/include/vmail.php 414)         db_query("REPLACE INTO mail.vmailquota (uid, server, quota, used) VALUES ('{$line['useraccount']}', '{$line['server']}', '{$line['quota']}', '{$line['used']}')");
modules/email/include/vmail.php 415)       }
bernd Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/include/vmail.php 416)     }
modules/email/include/vmail.php 417)   }
modules/email/include/vmail.php 418) 
bernd Nicht behebbare Fehlermeldu...

bernd authored 14 years ago

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

bernd authored 16 years ago

modules/vmail/include/vmail.php 420) }
modules/vmail/include/vmail.php 421) 
modules/vmail/include/vmail.php 422) 
modules/vmail/include/vmail.php 423) 
bernd Löschen geht jetzt auch

bernd authored 16 years ago

modules/vmail/include/vmail.php 424) function delete_account($id)
modules/vmail/include/vmail.php 425) {
modules/vmail/include/vmail.php 426)   $account = get_account_details($id);
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/include/vmail.php 427)   db_query("DELETE FROM mail.vmail_accounts WHERE id={$account['id']};");
bernd Löschen geht jetzt auch

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 15 years ago

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

bernd authored 16 years ago

modules/email/include/vmail.php 435)     $only_domain = (int) $only_domain;
modules/email/include/vmail.php 436)   $domains = array();
modules/email/include/vmail.php 437)   $subdomains = array();
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 438) 
modules/email/include/vmail.php 439)   // Domains
Bernd Wurst sort domains alphabetically...

Bernd Wurst authored 12 years ago

modules/email/include/vmail.php 440)   $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 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);");
bernd Subdomains und Domains bess...

bernd authored 15 years ago

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

bernd authored 16 years ago

modules/email/include/vmail.php 442)   while ($mydom = mysql_fetch_assoc($result)) {
modules/email/include/vmail.php 443)     if (! array_key_exists($mydom['id'], $domains)) {
bernd Subdomains und Domains bess...

bernd authored 15 years ago

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

bernd authored 16 years ago

modules/email/include/vmail.php 445)         $mydom['mail'] = 'virtual';
modules/email/include/vmail.php 446)       $domains[$mydom['id']] = array(
modules/email/include/vmail.php 447)         "name" => $mydom['name'],
modules/email/include/vmail.php 448)         "type" => $mydom['mail']
modules/email/include/vmail.php 449)         );
modules/email/include/vmail.php 450)       if ($only_domain && $only_domain == $mydom['id'])
modules/email/include/vmail.php 451)         return $domains[$only_domain];
modules/email/include/vmail.php 452)     }
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 453)   }      
modules/email/include/vmail.php 454) 
modules/email/include/vmail.php 455)   // Subdomains
bernd Subdomains nur auslesen wo...

bernd authored 15 years ago

modules/email/include/vmail.php 456)   $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};");
bernd Subdomains und Domains bess...

bernd authored 15 years ago

modules/email/include/vmail.php 457)   while ($mydom = mysql_fetch_assoc($result)) {
modules/email/include/vmail.php 458)     if (! array_key_exists($mydom['id'], $subdomains))
modules/email/include/vmail.php 459)       $subdomains[$mydom['id']] = array();
bernd Großer VMail-move

bernd authored 16 years ago

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

bernd authored 15 years ago

modules/email/include/vmail.php 461)     $type = 'auto';
modules/email/include/vmail.php 462)     if ($mydom['v_id'])
modules/email/include/vmail.php 463)       $type = 'virtual';
modules/email/include/vmail.php 464)     $subdomains[$mydom['id']][] = array(
modules/email/include/vmail.php 465)       "name" => $mydom['hostname'],
modules/email/include/vmail.php 466)       "type" => $type
modules/email/include/vmail.php 467)       );
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 468)   }
modules/email/include/vmail.php 469)   return array("domains" => $domains, "subdomains" => $subdomains);
modules/email/include/vmail.php 470) }
modules/email/include/vmail.php 471) 
modules/email/include/vmail.php 472) 
modules/email/include/vmail.php 473) function domain_has_vmail_accounts($domid)
modules/email/include/vmail.php 474) {
modules/email/include/vmail.php 475)   $domid = (int) $domid;
modules/email/include/vmail.php 476)   $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={$domid}");
modules/email/include/vmail.php 477)   return (mysql_num_rows($result) > 0);
modules/email/include/vmail.php 478) }
modules/email/include/vmail.php 479) 
modules/email/include/vmail.php 480) 
modules/email/include/vmail.php 481) function change_domain($id, $type)
modules/email/include/vmail.php 482) {
modules/email/include/vmail.php 483)   $id = (int) $id;
modules/email/include/vmail.php 484)   $type = mysql_real_escape_string($type);
modules/email/include/vmail.php 485)   if (domain_has_vmail_accounts($id))
modules/email/include/vmail.php 486)     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 487)   
modules/email/include/vmail.php 488)   if (! in_array($type, array('none','auto','virtual')))
modules/email/include/vmail.php 489)     system_failure("Ungültige Aktion");
modules/email/include/vmail.php 490)   
modules/email/include/vmail.php 491)   $old = domainsettings($id);
modules/email/include/vmail.php 492)   if ($old['type'] == $type)
modules/email/include/vmail.php 493)     system_failure('Domain ist bereits so konfiguriert');
modules/email/include/vmail.php 494) 
modules/email/include/vmail.php 495)   if ($type == 'none') {
modules/email/include/vmail.php 496)     db_query("DELETE FROM mail.virtual_mail_domains WHERE domain={$id} AND hostname IS NULL LIMIT 1;");
modules/email/include/vmail.php 497)     db_query("DELETE FROM mail.custom_mappings WHERE domain={$id} AND subdomain IS NULL LIMIT 1;");
bernd lastchange immer setzen

bernd authored 16 years ago

modules/email/include/vmail.php 498)     db_query("UPDATE kundendaten.domains SET mail='none', lastchange=NOW() WHERE id={$id} LIMIT 1;");
bernd Großer VMail-move

bernd authored 16 years ago

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

bernd authored 13 years ago

modules/email/include/vmail.php 501)     $vmailserver = (int) $_SESSION['userinfo']['server'];
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 502)     db_query("DELETE FROM mail.custom_mappings WHERE domain={$id} AND subdomain IS NULL LIMIT 1;");
bernd lastchange immer setzen

bernd authored 16 years ago

modules/email/include/vmail.php 503)     db_query("UPDATE kundendaten.domains SET mail='auto', lastchange=NOW() WHERE id={$id} LIMIT 1;");
bernd Server bei vmail-domain mit...

bernd authored 13 years ago

modules/email/include/vmail.php 504)     db_query("INSERT INTO mail.virtual_mail_domains (domain, server) VALUES ({$id}, {$vmailserver});");
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/include/vmail.php 505)   }
modules/email/include/vmail.php 506)   elseif ($type == 'auto') {
modules/email/include/vmail.php 507)     db_query("DELETE FROM mail.virtual_mail_domains WHERE domain={$id} AND hostname IS NULL LIMIT 1;");
modules/email/include/vmail.php 508)     db_query("DELETE FROM mail.custom_mappings WHERE domain={$id} AND subdomain IS NULL LIMIT 1;");
bernd lastchange immer setzen

bernd authored 16 years ago

modules/email/include/vmail.php 509)     db_query("UPDATE kundendaten.domains SET mail='auto', lastchange=NOW() WHERE id={$id} LIMIT 1;");