Add update script and language xmls

This commit is contained in:
Triopsi 2016-04-15 12:53:07 +02:00
parent 776668abf9
commit 683771ba3e
15 changed files with 487 additions and 99 deletions

View File

@ -40,10 +40,10 @@ ini_set('display_errors', 1);
error_reporting(E_ALL|E_STRICT);
define('EASYWIDIR', dirname(dirname(__FILE__)));
include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php');
include_once(EASYWIDIR . '/stuff/methods/vorlage.php');
include_once(EASYWIDIR . '/stuff/methods/class_validator.php');
include_once(EASYWIDIR . '/stuff/methods/functions.php');
include_once(EASYWIDIR . '/stuff/settings.php');
$arrayofelements = array('vServer' => array('emailvrescue','emailvinstall'),
'Server' => array('emailbackup','emailbackuprestore','emailserverinstall','emailsecuritybreach','emaildown','emaildownrestart'),
@ -51,39 +51,23 @@ $arrayofelements = array('vServer' => array('emailvrescue','emailvinstall'),
'General' => array('emailfooter','emailregards','emailuseradd','emailpwrecovery','emailregister'),
'VoiceServer' => array('emailvoicemasterold'),
'GameServer' => array('emailgserverupdate'));
$arraycategory=array(1 => 'vServer', 2 => 'Server' , 3 => 'Ticket', 4 => 'General', 5 => 'VoiceServer', 6 => 'GameServer');
$queryselect = $sql->prepare("SELECT `email_setting_name`,`email_setting_value` FROM `settings_email` WHERE `reseller_id`=? AND `email_setting_name`=? ");
$queryinsert = $sql->prepare("INSERT INTO `setting_email_template` (`reseller_id`,`active`,`category`,`email_setting_name`,`subject`,`email_body`) VALUES (?,?,?,?,?,?)");
foreach($arrayofelements as $key => $value){
echo '<b>'.$key.'</b><br>';
foreach($value as $tablename){
echo '<i>'.$tablename.'</i> ';
//echo '<i>'.$tablename.'</i> ';
$queryselect->execute(array('0',$tablename));
while ($row = $queryselect->fetch(PDO::FETCH_ASSOC)) {
$category = array_search($key, $arraycategory);
$queryinsert->execute(array(0,1,$category,$row['email_setting_name'],$row['email_setting_name'],$row['email_setting_value']));
$queryinsert->execute(array(0,1,$category,$row['email_setting_name'],$row['email_setting_name'],$row['email_setting_value']));
if($queryinsert){
echo 'OK, ';
//echo 'OK, ';
}else{
echo 'Fail, ';
//echo 'Fail, ';
}
// echo $row['email_setting_name'];
// echo ' - ';
// echo html_entity_decode($row['email_setting_value']);
// echo '<br>';
}
}
echo '<br>';
//echo '<br>';
}

View File

@ -767,19 +767,42 @@ if ($currentStep == 7 and count($systemCheckError) == 0) {
$query = $sql->prepare("INSERT INTO `feeds_settings` (`settingsID`,`resellerID`) VALUES (1,0) ON DUPLICATE KEY UPDATE `settingsID`=`settingsID`");
$query->execute();
$query = $sql->prepare("INSERT INTO `setting_email_category` (`id`, `name`, `reseller_id`) VALUES (1, 'vServer', 0), (2, 'Server', 0), (3, 'Ticket', 0), (4, 'General', 0), (5, 'VoiceServer', 0), (6, 'GameServer', 0)");
$query->execute();
include(EASYWIDIR . '/stuff/methods/email_templates.php');
$query = $sql->prepare("INSERT INTO `setting_email_template` (`id`, `reseller_id`, `language`, `active`, `category`, `email_setting_name`, `subject`, `email_body`, `ccmailing`, `bccmailing`, `attachments`) VALUES
(1, 0, 'de', '1', '1', 'emailvrescue', 'Rescue System gestartet', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>Das Rescue System ihres Servers mit der IP %server%&nbsp;wurde um %date%&nbsp;f&uuml;r Sie gestartet.&nbsp;Das Passwort f&uuml;r den Root Account lautet: %password%</p>\r\n\r\n <p>Bei Fragen nutzen Sie bitte das Ticketsystem, oder nehmen telefonisch Kontakt auf.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(2, 0, 'de', '1', '1', 'emailvinstall', 'Ihr vServer ist da!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>f&uuml;r Sie wurde ein vServer angelegt. Bitte schauen Sie im Panel (%urlhost%) nach, ob Ihr vServer erreichbar ist. Bei Fragen wenden Sie sich bitte an unserem Support.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(3, 0, 'de', '1', '2', 'emailbackup', 'Backup fertiggestellt', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>ein Backup wurde f&uuml;r Ihr Server erstellt.&nbsp;Ihr Server sollte weiterhin erreichbar sein.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(4, 0, 'de', '1', '2', 'emailbackuprestore', 'Backup eingespielt', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>das Backup wurde erfolreich auf Ihrem Server&nbsp;eingespielt.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(5, 0, 'de', '1', '2', 'emailserverinstall', 'Server hinzugefügt', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>Ihr Server wurde erfolgreich angelegt. Nun k&ouml;nnen Sie damit beginnen, konfigurationen am Server vorzunehmen. Bitte starten Sie nach Ihrer Konfiguration, Ihr Server neu. Alle weiteren Informationen erhalten Sie auf %urlhost%.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(6, 0, 'de', '1', '2', 'emailsecuritybreach', 'Manipulation am Server entdeckt!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>auf Ihrem Server wurde eine manipulation entdeckt. Bitte korrigieren Sie Ihre Einstellungen. Ihr Server wurde bis auf weiteres heruntergefahren. Bitte wenden Sie sich an unserem Support.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(7, 0, 'de', '1', '2', 'emaildown', 'Ihr Server ist nicht erreichbar!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Ihr Server ist seit einiger zeit nicht mehr erreichbar. Bitte wenden Sie sich an unserem Support.</span></p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Ihr</span><br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(8, 0, 'de', '1', '2', 'emaildownrestart', 'Server abgestürzt und neu gestartet', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Ihr Server ist abgest&uuml;rtzt. Das System hat mit einem Restart Ihr Server neugestartet.&nbsp;Bitte wenden Sie sich an unserem Support.</span></p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Ihr</span><br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(9, 0, 'de', '1', '3', 'emailnewticket', 'Neues Ticket', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>ein neues Ticket wurde erstellt.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(10, 0, 'de', '1', '4', 'emailfooter', 'emailfooter', '', '', '', ''),
(11, 0, 'de', '1', '4', 'emailregards', 'emailregards', '', '', '', ''),
(12, 0, 'de', '1', '4', 'emailuseradd', 'Willkommen', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>mit dieser E-mail erhalten Sie Ihre&nbsp;pers&ouml;hnliche Kundenerkennung und Passwort. Mit dieses Informationen k&ouml;nnen Sie sich unter <strong><a href=\"%urlhost%\">%urlhost%</a></strong> einloggen.&nbsp;Bitte halten Sie das Passwort geheim und &auml;ndern Sie diese nach Ihrem ersten Login.&nbsp;Zum Einloggen verwenden Sie Ihre Kundennummer oder Ihre E-Mailadresse.</p>\r\n\r\n <p><strong>Kundennummer: </strong>%cname%<br />\r\n <strong>Username: </strong><span style=\"line-height: 20.8px;\">%cname% oder %email%</span>&nbsp;<br />\r\n <strong>Passwort: </strong>%password%</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>', '', '', ''),
(13, 0, 'de', '1', '4', 'emailpwrecovery', 'Passwort Vergessen', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>mit dieser E-mail erhalten Sie Ihr&nbsp;pers&ouml;hnliches Passwort. Mit dieses Informationen k&ouml;nnen Sie sich unter <strong><a href=\"%urlhost%\">%urlhost%</a></strong> einloggen.&nbsp;Bitte halten Sie das Passwort geheim und &auml;ndern Sie diese nach Ihrem ersten Login.&nbsp;Zum Einloggen verwenden Sie Ihre Kundennummer oder Ihre E-Mailadresse.</p>\r\n\r\n <p><br />\r\n <strong style=\"line-height: 20.8px;\">Best&auml;tigungslink</strong><strong>:&nbsp;</strong><span style=\"line-height: 20.8px;\">%server%</span></p>\r\n\r\n <p>&nbsp;</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(14, 0, 'de', '1', '4', 'emailregister', 'Benutzer Registration', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Bitte aktivieren Sie Ihren Account indem sie auf folgenden Link klicken:</span></p>\r\n\r\n <p><strong>Best&auml;tigungslink: </strong>%server%</p>\r\n\r\n <p style=\"line-height: 20.8px;\">Mit dieses Informationen k&ouml;nnen Sie sich unter&nbsp;<strong><a href=\"%urlhost%\">%urlhost%</a></strong>&nbsp;einloggen.&nbsp;Bitte halten Sie das Passwort geheim und &auml;ndern Sie diese nach Ihrem ersten Login.&nbsp;Zum Einloggen verwenden Sie Ihre Kundennummer oder Ihre E-Mailadresse.</p>\r\n\r\n <p style=\"line-height: 20.8px;\"><span style=\"text-align: center; line-height: 1.6;\">Ihr</span><br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(15, 0, 'de', '1', '5', 'emailvoicemasterold', 'Voice Server ist veraltet!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>eine veraltete Version wurde an Ihrem Voice Master Server endekt.&nbsp;Bitte aktualisieren sie schnellst m&ouml;glich um eventuelle Sicherheitsl&uuml;cken zu schlie&szlig;en.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(16, 0, 'de', '1', '6', 'emailgserverupdate', 'Game Server wurde upgedatet!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>eine veraltete Version wurde an Ihrem Game Master Server endekt. Diese wurde nun erfolgreich upgedatet. Alle Ihre server sollten weiterhin erreichbar sein.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', '')
");
$query->execute();
// include(EASYWIDIR . '/stuff/methods/email_templates.php');
foreach ($emailTemplates as $template) {
// foreach ($emailTemplates as $template) {
$query = $sql->prepare($template['html']);
$query->execute(array(0));
// $query = $sql->prepare($template['html']);
// $query->execute(array(0));
foreach ($template['languages'] as $languageSQL) {
$query = $sql->prepare($languageSQL);
$query->execute(array(0));
}
}
// foreach ($template['languages'] as $languageSQL) {
// $query = $sql->prepare($languageSQL);
// $query->execute(array(0));
// }
// }
$query = $sql->prepare("INSERT INTO `resellerimages` (`id`, `distro`, `description`, `bitversion`, `pxelinux`) VALUES (1, 'other', 'Rescue 32bit', 32, 'DISPLAY boot.txt\r\nDEFAULT rescue\r\nTIMEOUT 10\r\n\r\nLABEL default\r\n kernel /rescue/vmlinuz-rescue\r\n append initrd=/rescue/initram.igz setkmap=de dodhcp rootpass=%rescuepass% scandelay=5 boothttp=http://1.1.1.1/rescue/32/sysrcd.dat') ON DUPLICATE KEY UPDATE `id`=`id`");

View File

@ -180,6 +180,9 @@ if (versioncheck($version, '5.21', 'update_520-521.php', $response)) {
if (versioncheck($version, '5.22', 'update_521-522.php', $response)) {
$version = '5.22';
}
if (versioncheck($version, '5.30', 'update_521_522-530.php', $response)) {
$version = '5.30';
}
$response->add('Repairing tables if needed.');
$tables->correctExistingTables();

View File

@ -0,0 +1,75 @@
<?php
/**
* File: update_521_522-530.php
* Author: Daniel Rodriguez Baumann
* Date: 15.04.2016
* Contact: <daniel@triopsi.com>
*
* This file is part of Easy-WI.
*
* Easy-WI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Easy-WI is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Easy-WI. If not, see <http://www.gnu.org/licenses/>.
*
* Diese Datei ist Teil von Easy-WI.
*
* Easy-WI ist Freie Software: Sie koennen es unter den Bedingungen
* der GNU General Public License, wie von der Free Software Foundation,
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder spaeteren
* veroeffentlichten Version, weiterverbreiten und/oder modifizieren.
*
* Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber
* OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite
* Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK.
* Siehe die GNU General Public License fuer weitere Details.
*
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/
if (isset($include) and $include == true) {
$response->add('Action: Update Setting E-Mail');
$query = $sql->prepare("INSERT INTO `setting_email_category` (`id`, `name`, `reseller_id`) VALUES (1, 'vServer', 0), (2, 'Server', 0), (3, 'Ticket', 0), (4, 'General', 0), (5, 'VoiceServer', 0), (6, 'GameServer', 0)");
$query->execute();
$query->closecursor();
$query = $sql->prepare("INSERT INTO `easywi_version` (`version`,`de`,`en`) VALUES ('5.30','','')");
$query->execute();
$response->add('Action: insert_easywi_version done: ');
$query->closecursor();
$query = $sql->prepare("INSERT INTO `setting_email_template` (`id`, `reseller_id`, `language`, `active`, `category`, `email_setting_name`, `subject`, `email_body`, `ccmailing`, `bccmailing`, `attachments`) VALUES
(1, 0, 'de', '1', '1', 'emailvrescue', 'Rescue System gestartet', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>Das Rescue System ihres Servers mit der IP %server%&nbsp;wurde um %date%&nbsp;f&uuml;r Sie gestartet.&nbsp;Das Passwort f&uuml;r den Root Account lautet: %password%</p>\r\n\r\n <p>Bei Fragen nutzen Sie bitte das Ticketsystem, oder nehmen telefonisch Kontakt auf.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(2, 0, 'de', '1', '1', 'emailvinstall', 'Ihr vServer ist da!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>f&uuml;r Sie wurde ein vServer angelegt. Bitte schauen Sie im Panel (%urlhost%) nach, ob Ihr vServer erreichbar ist. Bei Fragen wenden Sie sich bitte an unserem Support.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(3, 0, 'de', '1', '2', 'emailbackup', 'Backup fertiggestellt', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>ein Backup wurde f&uuml;r Ihr Server erstellt.&nbsp;Ihr Server sollte weiterhin erreichbar sein.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(4, 0, 'de', '1', '2', 'emailbackuprestore', 'Backup eingespielt', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>das Backup wurde erfolreich auf Ihrem Server&nbsp;eingespielt.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(5, 0, 'de', '1', '2', 'emailserverinstall', 'Server hinzugefügt', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>Ihr Server wurde erfolgreich angelegt. Nun k&ouml;nnen Sie damit beginnen, konfigurationen am Server vorzunehmen. Bitte starten Sie nach Ihrer Konfiguration, Ihr Server neu. Alle weiteren Informationen erhalten Sie auf %urlhost%.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(6, 0, 'de', '1', '2', 'emailsecuritybreach', 'Manipulation am Server entdeckt!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>auf Ihrem Server wurde eine manipulation entdeckt. Bitte korrigieren Sie Ihre Einstellungen. Ihr Server wurde bis auf weiteres heruntergefahren. Bitte wenden Sie sich an unserem Support.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(7, 0, 'de', '1', '2', 'emaildown', 'Ihr Server ist nicht erreichbar!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Ihr Server ist seit einiger zeit nicht mehr erreichbar. Bitte wenden Sie sich an unserem Support.</span></p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Ihr</span><br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(8, 0, 'de', '1', '2', 'emaildownrestart', 'Server abgestürzt und neu gestartet', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Ihr Server ist abgest&uuml;rtzt. Das System hat mit einem Restart Ihr Server neugestartet.&nbsp;Bitte wenden Sie sich an unserem Support.</span></p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Ihr</span><br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(9, 0, 'de', '1', '3', 'emailnewticket', 'Neues Ticket', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>ein neues Ticket wurde erstellt.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(10, 0, 'de', '1', '4', 'emailfooter', 'emailfooter', '', '', '', ''),
(11, 0, 'de', '1', '4', 'emailregards', 'emailregards', '', '', '', ''),
(12, 0, 'de', '1', '4', 'emailuseradd', 'Willkommen', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>mit dieser E-mail erhalten Sie Ihre&nbsp;pers&ouml;hnliche Kundenerkennung und Passwort. Mit dieses Informationen k&ouml;nnen Sie sich unter <strong><a href=\"%urlhost%\">%urlhost%</a></strong> einloggen.&nbsp;Bitte halten Sie das Passwort geheim und &auml;ndern Sie diese nach Ihrem ersten Login.&nbsp;Zum Einloggen verwenden Sie Ihre Kundennummer oder Ihre E-Mailadresse.</p>\r\n\r\n <p><strong>Kundennummer: </strong>%cname%<br />\r\n <strong>Username: </strong><span style=\"line-height: 20.8px;\">%cname% oder %email%</span>&nbsp;<br />\r\n <strong>Passwort: </strong>%password%</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>', '', '', ''),
(13, 0, 'de', '1', '4', 'emailpwrecovery', 'Passwort Vergessen', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>mit dieser E-mail erhalten Sie Ihr&nbsp;pers&ouml;hnliches Passwort. Mit dieses Informationen k&ouml;nnen Sie sich unter <strong><a href=\"%urlhost%\">%urlhost%</a></strong> einloggen.&nbsp;Bitte halten Sie das Passwort geheim und &auml;ndern Sie diese nach Ihrem ersten Login.&nbsp;Zum Einloggen verwenden Sie Ihre Kundennummer oder Ihre E-Mailadresse.</p>\r\n\r\n <p><br />\r\n <strong style=\"line-height: 20.8px;\">Best&auml;tigungslink</strong><strong>:&nbsp;</strong><span style=\"line-height: 20.8px;\">%server%</span></p>\r\n\r\n <p>&nbsp;</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(14, 0, 'de', '1', '4', 'emailregister', 'Benutzer Registration', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p><span style=\"text-align: center; line-height: 1.6;\">Bitte aktivieren Sie Ihren Account indem sie auf folgenden Link klicken:</span></p>\r\n\r\n <p><strong>Best&auml;tigungslink: </strong>%server%</p>\r\n\r\n <p style=\"line-height: 20.8px;\">Mit dieses Informationen k&ouml;nnen Sie sich unter&nbsp;<strong><a href=\"%urlhost%\">%urlhost%</a></strong>&nbsp;einloggen.&nbsp;Bitte halten Sie das Passwort geheim und &auml;ndern Sie diese nach Ihrem ersten Login.&nbsp;Zum Einloggen verwenden Sie Ihre Kundennummer oder Ihre E-Mailadresse.</p>\r\n\r\n <p style=\"line-height: 20.8px;\"><span style=\"text-align: center; line-height: 1.6;\">Ihr</span><br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(15, 0, 'de', '1', '5', 'emailvoicemasterold', 'Voice Server ist veraltet!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>eine veraltete Version wurde an Ihrem Voice Master Server endekt.&nbsp;Bitte aktualisieren sie schnellst m&ouml;glich um eventuelle Sicherheitsl&uuml;cken zu schlie&szlig;en.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', ''),
(16, 0, 'de', '1', '6', 'emailgserverupdate', 'Game Server wurde upgedatet!', '<div style=\"text-align:center\">\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:#FAFAFA\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">&nbsp;\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:1px solid #DDDDDD\">\r\n <tbody>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <h1 style=\"background-color:#505050;border-bottom:10px solid #12438f;padding:20px;line-height:130%;color:#D2CFCF;margin:0px;font-size:20px\">%topic%</h1>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td style=\"border-bottom:1px solid #eee;background-color:#fff;padding:15px;font-size:13px\" valign=\"top\"><strong>%topic%</strong>\r\n <p>%salutation% %fullname%,</p>\r\n\r\n <p>eine veraltete Version wurde an Ihrem Game Master Server endekt. Diese wurde nun erfolgreich upgedatet. Alle Ihre server sollten weiterhin erreichbar sein.</p>\r\n\r\n <p>Ihr<br />\r\n Easy-Wi Team</p>\r\n\r\n <center><small>%noreply%</small></center>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\">\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\">\r\n <table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" width=\"100%\">\r\n <tbody>\r\n <tr>\r\n <td colspan=\"2\" valign=\"middle\">\r\n <div style=\"color:#999;font-size:11px;text-align:center\">Powered by <a href=\"http://www.easy-wi.com\" target=\"_blank\">Easy-Wi</a></div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n</div>\r\n', '', '', '')
");
$query->execute();
$query->closecursor();
} else {
echo "Error: this file needs to be included by the updater!<br />";
}

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" ?>
<sprache>
<topic>Betreff</topic>
<id>User ID</id>
<creationTime>erstellungszeitpunkt</creationTime>
<active>Y=active der N=not active</active>
<salutation>Begrüßung</salutation>
<cname>Username</cname>
<fullname>Vorname und Nachname</fullname>
<name>Nachname</name>
<vname>Vorname</vname>
<birthday>Geburtstag</birthday>
<mail>E-Mail Adresse</mail>
<phone>Telefonnummer</phone>
<fax>Faxnummer</fax>
<handy>Handynummer</handy>
<country>Land</country>
<city>Stadt</city>
<cityn>PLZ</cityn>
<street>Straße</street>
<streetn>Hausnummer</streetn>
<language>Benutzersprache (z.B. de)</language>
<lastlogin>Letzter Login</lastlogin>
<urlhost>URL zum Panel</urlhost>
<password>Passwort</password>
<date>Aktuelles Datum</date>
<ip>IP Adresse des Servers</ip>
<port>Port 1</port>
<port2>Port 1</port2>
<port3>Port 1</port3>
<port4>Port 1</port4>
<ports>Port 1</ports>
<variable>Benutzbare Variablen</variable>
<variabledesc>Beschreibung</variabledesc>
<templatename>Template Name</templatename>
<copycc>Copy CC</copycc>
<copybcc>Copy BCC</copybcc>
<attachments>Anhänge</attachments>
<back>Zurück</back>
<templatesettinghead>E-Mail Template Einstellungen</templatesettinghead>
</sprache>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" ?>
<sprache>
<topic>Subject</topic>
<id>User ID</id>
<creationTime>Create Time</creationTime>
<active>Y=active or N=not active</active>
<salutation>Salutation</salutation>
<cname>Username</cname>
<fullname>Firstname with lastname</fullname>
<name>Lastname</name>
<vname>Firstname</vname>
<birthday>Date of Birth</birthday>
<mail>E-Mail Adress</mail>
<phone>Phone number</phone>
<fax>Fax number</fax>
<handy>Mobile number</handy>
<country>Country</country>
<city>City</city>
<cityn>PLZ</cityn>
<street>Streetname</street>
<streetn>House number</streetn>
<language>Languagecode (Ex. de)</language>
<lastlogin>Date of last login</lastlogin>
<urlhost>URL to login.php</urlhost>
<password>Password</password>
<date>Date of mail</date>
<ip>IP Adress of the Server</ip>
<port>Port 1</port>
<port2>Port 1</port2>
<port3>Port 1</port3>
<port4>Port 1</port4>
<ports>Port 1</ports>
<variable>Variable</variable>
<variabledesc>Description</variabledesc>
<templatename>Template name</templatename>
<copycc>Copy CC</copycc>
<copybcc>Copy BCC</copybcc>
<attachments>attachments</attachments>
<back>Back</back>
<templatesettinghead>E-Mail Template Setting</templatesettinghead>
</sprache>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" ?>
<sprache>
<topic>Subject</topic>
<id>User ID</id>
<creationTime>Create Time</creationTime>
<active>Y=active or N=not active</active>
<salutation>Salutation</salutation>
<cname>Username</cname>
<fullname>Firstname with lastname</fullname>
<name>Lastname</name>
<vname>Firstname</vname>
<birthday>Date of Birth</birthday>
<mail>E-Mail Adress</mail>
<phone>Phone number</phone>
<fax>Fax number</fax>
<handy>Mobile number</handy>
<country>Country</country>
<city>City</city>
<cityn>PLZ</cityn>
<street>Streetname</street>
<streetn>House number</streetn>
<language>Languagecode (Ex. de)</language>
<lastlogin>Date of last login</lastlogin>
<urlhost>URL to login.php</urlhost>
<password>Password</password>
<date>Date of mail</date>
<ip>IP Adress of the Server</ip>
<port>Port 1</port>
<port2>Port 1</port2>
<port3>Port 1</port3>
<port4>Port 1</port4>
<ports>Port 1</ports>
<variable>Variable</variable>
<variabledesc>Description</variabledesc>
<templatename>Template name</templatename>
<copycc>Copy CC</copycc>
<copybcc>Copy BCC</copybcc>
<attachments>attachments</attachments>
<back>Back</back>
<templatesettinghead>E-Mail Template Setting</templatesettinghead>
</sprache>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" ?>
<sprache>
<topic>Subject</topic>
<id>User ID</id>
<creationTime>Create Time</creationTime>
<active>Y=active or N=not active</active>
<salutation>Salutation</salutation>
<cname>Username</cname>
<fullname>Firstname with lastname</fullname>
<name>Lastname</name>
<vname>Firstname</vname>
<birthday>Date of Birth</birthday>
<mail>E-Mail Adress</mail>
<phone>Phone number</phone>
<fax>Fax number</fax>
<handy>Mobile number</handy>
<country>Country</country>
<city>City</city>
<cityn>PLZ</cityn>
<street>Streetname</street>
<streetn>House number</streetn>
<language>Languagecode (Ex. de)</language>
<lastlogin>Date of last login</lastlogin>
<urlhost>URL to login.php</urlhost>
<password>Password</password>
<date>Date of mail</date>
<ip>IP Adress of the Server</ip>
<port>Port 1</port>
<port2>Port 1</port2>
<port3>Port 1</port3>
<port4>Port 1</port4>
<ports>Port 1</ports>
<variable>Variable</variable>
<variabledesc>Description</variabledesc>
<templatename>Template name</templatename>
<copycc>Copy CC</copycc>
<copybcc>Copy BCC</copybcc>
<attachments>attachments</attachments>
<back>Back</back>
<templatesettinghead>E-Mail Template Setting</templatesettinghead>
</sprache>

View File

@ -110,29 +110,29 @@ if ($ui->st('d', 'get') == 'bu' and $ui->st('action', 'post') == 'bu' and $resel
$gssprache = getlanguagefile('gserver', $user_language, $resellerLockupID);
$usprache = getlanguagefile('user', $user_language, $resellerLockupID);
include(EASYWIDIR . '/stuff/methods/email_templates.php');
// include(EASYWIDIR . '/stuff/methods/email_templates.php');
if ($ui->st('action', 'post') == 're') {
$rowCount = 0;
// $rowCount = 0;
$templateRepair = (array) $ui->w('templates', 255, 'post');
foreach ($templateRepair as $template) {
// $templateRepair = (array) $ui->w('templates', 255, 'post');
// foreach ($templateRepair as $template) {
if (isset($emailTemplates[$template])) {
// if (isset($emailTemplates[$template])) {
$query = $sql->prepare($emailTemplates[$template]['html']);
$query->execute(array($resellerLockupID));
$rowCount += $query->rowCount();
foreach ($emailTemplates[$template]['languages'] as $languageSQL) {
$query = $sql->prepare($languageSQL);
$query->execute(array($resellerLockupID));
$rowCount += $query->rowCount();
}
}
}
// $query = $sql->prepare($emailTemplates[$template]['html']);
// $query->execute(array($resellerLockupID));
// $rowCount += $query->rowCount();
// foreach ($emailTemplates[$template]['languages'] as $languageSQL) {
// $query = $sql->prepare($languageSQL);
// $query->execute(array($resellerLockupID));
// $rowCount += $query->rowCount();
// }
// }
// }
$rowCount=1;
$template_file = ($rowCount > 0) ? $spracheResponse->table_add : $spracheResponse->error_table;
} else {

View File

@ -45,6 +45,7 @@ include(EASYWIDIR . '/stuff/keyphrasefile.php');
$sprache = getlanguagefile('settings', $user_language, $reseller_id);
$gssprache = getlanguagefile('gserver', $user_language, $reseller_id);
$usprache = getlanguagefile('user', $user_language, $reseller_id);
$esprache = getlanguagefile('email', $user_language, $reseller_id);
$loguserid = $admin_id;
$logusername = getusername($admin_id);
@ -110,7 +111,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$catid=$ui->id('cat', 2, 'get');
$reseller_id=$ui->id('rid', 2, 'get');
$getquerysettingemailis = $sql->prepare("SELECT MAX(id) as `ID` FROM `setting_email_template`");
$getquerysettingemailis = $sql->prepare("SELECT MAX(id) as `ID` FROM `settings_email_template`");
$getquerysettingemailis->execute();
$resultid=$getquerysettingemailis->fetchColumn();
$resultid++;
@ -127,7 +128,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
}else{
//Load Data from DB - View:Edit
$querysettingemail = $sql->prepare("SELECT * FROM `setting_email_template` WHERE `id`=? LIMIT 1");
$querysettingemail = $sql->prepare("SELECT * FROM `settings_email_template` WHERE `id`=? LIMIT 1");
$querysettingemail->execute(array($ui->w('id', 2, 'get')));
$emaillanguage_xml = array();
@ -151,7 +152,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
//Save Data
if($ui->w('d', 3, 'get')=='add' && is_numeric($ui->id('id',2,'post'))){
$changeCount = 0;
$queryupdateemailsetting = $sql->prepare("INSERT INTO `setting_email_template` (`id`,`reseller_id`,`language`,`active`,`category`,`email_setting_name`,`subject`,`ccmailing`,`bccmailing`,`email_body`) VALUES (?,?,?,?,?,?,?,?,?,?) ON DUPLICATE KEY UPDATE `language`=VALUES(`language`),`active`=VALUES(`active`),`category`=VALUES(`category`),`email_setting_name`=VALUES(`email_setting_name`),`reseller_id`=VALUES(`reseller_id`),`subject`=VALUES(`subject`),`ccmailing`=VALUES(`ccmailing`),`bccmailing`= VALUES(`bccmailing`),`email_body`= VALUES(`email_body`)");
$queryupdateemailsetting = $sql->prepare("INSERT INTO `settings_email_template` (`id`,`reseller_id`,`language`,`active`,`category`,`email_setting_name`,`subject`,`ccmailing`,`bccmailing`,`email_body`) VALUES (?,?,?,?,?,?,?,?,?,?) ON DUPLICATE KEY UPDATE `language`=VALUES(`language`),`active`=VALUES(`active`),`category`=VALUES(`category`),`email_setting_name`=VALUES(`email_setting_name`),`reseller_id`=VALUES(`reseller_id`),`subject`=VALUES(`subject`),`ccmailing`=VALUES(`ccmailing`),`bccmailing`= VALUES(`bccmailing`),`email_body`= VALUES(`email_body`)");
$queryupdateemailsetting->execute(array($ui->id('id',2,'post'),$reseller_id,$ui->escaped('email_setting_language','post'),1,$ui->escaped('email_setting_category','post'),$ui->escaped('email_setting_name','post'),$ui->escaped('email_subject','post'), $ui->escaped('ccmailing','post'),$ui->escaped('bccmailing','post'),$ui->escaped('email_body','post')));
$changeCount += $queryupdateemailsetting->rowCount();
if ($changeCount == 0) {
@ -186,9 +187,9 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$email_settings[$row['email_setting_name']] = $row['email_setting_value'];
}
$querycategory = $sql->prepare("SELECT * FROM `setting_email_category` WHERE `reseller_id`=?");
$querysettingemail = $sql->prepare("SELECT * FROM `setting_email_template` WHERE `reseller_id`=? AND `category`=? AND `language`=?");
$querysettingemail2 = $sql->prepare("SELECT * FROM `setting_email_template` WHERE `reseller_id`=? AND `category`=? AND `language`=? AND `email_setting_name` =? LIMIT 1");
$querycategory = $sql->prepare("SELECT * FROM `settings_email_category` WHERE `reseller_id`=?");
$querysettingemail = $sql->prepare("SELECT * FROM `settings_email_template` WHERE `reseller_id`=? AND `category`=? AND `language`=?");
$querysettingemail2 = $sql->prepare("SELECT * FROM `settings_email_template` WHERE `reseller_id`=? AND `category`=? AND `language`=? AND `email_setting_name` =? LIMIT 1");
$querycategory->execute(array($reseller_id));
@ -293,7 +294,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
//Delete Template
if($ui->w('d', 4, 'get')=='dell' && is_numeric($ui->w('id', 2, 'get'))){
$deletequerysettingemail = $sql->prepare("DELETE FROM `setting_email_template` WHERE `id` = ?");
$deletequerysettingemail = $sql->prepare("DELETE FROM `settings_email_template` WHERE `id` = ?");
if($deletequerysettingemail->execute(array($ui->id('id', 2, 'get')))){
$template_file = $spracheResponse->table_del;

View File

@ -0,0 +1,42 @@
<?php
/**
* File: table_settings_email_category.php
* Author: Daniel Rodriguez Baumann
* Date: 15.04.2016
* Contact: <daniel@triopsi.com>
*
* This file is part of Easy-WI.
*
* Easy-WI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Easy-WI is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Easy-WI. If not, see <http://www.gnu.org/licenses/>.
*
* Diese Datei ist Teil von Easy-WI.
*
* Easy-WI ist Freie Software: Sie koennen es unter den Bedingungen
* der GNU General Public License, wie von der Free Software Foundation,
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder spaeteren
* veroeffentlichten Version, weiterverbreiten und/oder modifizieren.
*
* Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber
* OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite
* Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK.
* Siehe die GNU General Public License fuer weitere Details.
*
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/
$defined['settings_email_category'] = array(
'id' => array("Type"=>"int(11) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
'name' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'reseller_id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"","Default"=>"0","Extra"=>"")
);

View File

@ -0,0 +1,50 @@
<?php
/**
* File: table_settings_email_template.php
* Author: Daniel Rodriguez Baumann
* Date: 15.04.2016
* Contact: <daniel@triopsi.com>
*
* This file is part of Easy-WI.
*
* Easy-WI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Easy-WI is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Easy-WI. If not, see <http://www.gnu.org/licenses/>.
*
* Diese Datei ist Teil von Easy-WI.
*
* Easy-WI ist Freie Software: Sie koennen es unter den Bedingungen
* der GNU General Public License, wie von der Free Software Foundation,
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder spaeteren
* veroeffentlichten Version, weiterverbreiten und/oder modifizieren.
*
* Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber
* OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite
* Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK.
* Siehe die GNU General Public License fuer weitere Details.
*
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/
$defined['settings_email_template'] = array(
'id' => array("Type"=>"int(11) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
'reseller_id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"","Default"=>"0","Extra"=>""),
'language' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'active' => array("Type"=>"varchar(1)","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
'category' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'email_setting_name' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'subject' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'email_body' => array("Type"=>"text","Null"=>"No","Key"=>"","Default"=>"","Extra"=>""),
'ccmailing' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'bccmailing' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
'attachments' => array("Type"=>"text","Null"=>"No","Key"=>"","Default"=>"","Extra"=>"")
);

View File

@ -695,13 +695,20 @@ if (!function_exists('passwordgenerate')) {
//Load E-Mail template data
$loaddatatemplatequery = $sql->prepare("SELECT * FROM `setting_email_template` WHERE `email_setting_name`=? AND `reseller_id`=? AND `language`=? LIMIT 1");
$loaddatatemplatequery->execute(array($template,$reseller_id,$userLanguage));
while ($row = $loaddatatemplatequery->fetch(PDO::FETCH_ASSOC)) {
foreach ($row as $k => $v) {
$dataTemplate[$k] = $v;
}
//default language 'de'
if($loaddatatemplatequery->rowCount() <= 0){
$loaddatatemplatequery = $sql->prepare("SELECT * FROM `setting_email_template` WHERE `email_setting_name`=? AND `reseller_id`=? AND `language`='de' LIMIT 1");
$loaddatatemplatequery->execute(array($template,$reseller_id));
}
while ($row = $loaddatatemplatequery->fetch(PDO::FETCH_ASSOC)) {
foreach ($row as $k => $v) {
$dataTemplate[$k] = $v;
}
}
if ($template == 'emailnewticket' and isset($writerid)) {
$query = $sql->prepare("SELECT `vname`,`name`,`cname` FROM `userdata` WHERE `id`=? LIMIT 1");
@ -769,10 +776,13 @@ if (!function_exists('passwordgenerate')) {
}
//Variablen
$keys = array('%topic%','%id%','%creationTime%','%active%','%salutation%','%cname%','%fullname%','%name%','%vname%','%birthday%','%mail%','%phone%','%fax%','%handy%','%country%','%city%','%cityn%','%street%','%streetn%','%language%','%lastlogin%','%urlhost%','%password%','%server%', '%username%', '%date%', '%shorten%','%ip%', '%port%', '%port2%', '%port3%', '%port4%', '%port5%', '%ports%');
$noreply='(This is an automated mail. Please do not reply to it since the account is configured to send only.)';
$emailfooter ='';
$emailregards ='';
$keys = array('%emailfooter%','%emailregards%','%noreply%','%topic%','%id%','%creationTime%','%active%','%salutation%','%cname%','%fullname%','%name%','%vname%','%birthday%','%mail%','%phone%','%fax%','%handy%','%country%','%city%','%cityn%','%street%','%streetn%','%language%','%lastlogin%','%urlhost%','%password%','%server%', '%username%', '%date%', '%shorten%','%ip%', '%port%', '%port2%', '%port3%', '%port4%', '%port5%', '%ports%');
//$keys = array('%email%','%firstname%','%lastname%','%salutation%','%kdn%','%fullname%','%urlhost%','%passwort%','%server%', '%username%', '%date%', '%shorten%', '%emailregards%', '%emailfooter%', '%ip%', '%port%', '%port2%', '%port3%', '%port4%', '%port5%', '%ports%');
//$replacements = array($usermail,$firstname,$lastname,$salutation,$kdn,$fullname,$urlhost,$password,$server, $username, $maildate, $shorten, $emailregards, $emailfooter);
$replacements = array($topic,$email_id,$email_creationTime,$email_active,$salutation,$email_cname,$fullname,$email_name,$email_vname,$email_birthday,$email_mail,$email_phone,$email_fax,$email_handy,$email_country,$email_city,$email_cityn,$email_street,$email_streetn,$userLanguage,$email_lastlogin,$email_urlhost,$password,$server, $username, $maildate, $shorten);
$replacements = array($emailfooter,$emailregards,$noreply,$topic,$email_id,$email_creationTime,$email_active,$salutation,$email_cname,$fullname,$email_name,$email_vname,$email_birthday,$email_mail,$email_phone,$email_fax,$email_handy,$email_country,$email_city,$email_cityn,$email_street,$email_streetn,$userLanguage,$email_lastlogin,$email_urlhost,$password,$server, $username, $maildate, $shorten);
//More IP Adress
if (is_array($connectInfo) and count($connectInfo) > 0 and isset($connectInfo['ip'])) {
@ -816,6 +826,14 @@ if (!function_exists('passwordgenerate')) {
$mail->CharSet = 'UTF-8';
$mail->setFrom($resellermail);
$mail->addAddress($usermail);
if(!empty($dataTemplate['bccmailing'])){
$mail->addBCC($dataTemplate['bccmailing']);
}
if(!empty($dataTemplate['ccmailing'])){
$mail->addCC($dataTemplate['ccmailing']);
}
$mail->Subject = $topic;
$mail->msgHTML($mailBody);
if ($email_settings_type == 'S') {

View File

@ -96,7 +96,7 @@
<hr/>
</div>
<div class="form-group">
<label class="control-label" for="email_template">E-Mail Templates (<img src="images/flags/<?php echo $templateLanguage;?>.png" alt="Flag: 16_<?php echo $templateLanguage;?>'.png"/>)
<label class="control-label" for="email_template">E-Mail Templates (<img src="images/flags/<?php echo $templateLanguage;?>.png" alt="Flag: 16_<?php echo $templateLanguage;?>'.png"/>)</label>
</div>
<!-- Categories -->
<?php echo $resultHtmlCategories; ?>

View File

@ -17,38 +17,38 @@
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">E-Mail Template Setting</h3>
<h3 class="box-title"><?php echo $esprache->templatesettinghead; ?></h3>
</div>
<div class="box-body">
<label class="control-label" for="inlineEmailTemplate"><?php echo $gsprache->template;?> Setting</label>
<table class="formmail" cellspacing="2" cellpadding="3">
<table class="formmail">
<tbody>
<tr>
<td class="formmail_left">Template name:</td>
<td class="formmail_left"><?php echo $esprache->templatename; ?></td>
<td class="formmail_right">
<input class="form-control formmailfield" type="text" name="email_templatename" value="<?php echo $email_setting_name;?>" disabled>
</td>
</tr>
<tr>
<td class="formmail_left">Subject:</td>
<td class="formmail_left"><?php echo $esprache->topic; ?>:</td>
<td class="formmail_right">
<input class="form-control formmailfield" id="inputSubject" type="text" name="email_subject" value="<?php echo $email_subject;?>">
</td>
</tr>
<tr>
<td class="formmail_left">Copy CC:</td>
<td class="formmail_left"><?php echo $esprache->copycc; ?>:</td>
<td class="formmail_right">
<input class="form-control formmailfield" id="" type="text" name="ccmailing" placeholder="example@example.com" value="<?php echo $email_ccmailing;?>">
</td>
</tr>
<tr>
<td class="formmail_left">Copy BCC:</td>
<td class="formmail_left"><?php echo $esprache->copybcc; ?>:</td>
<td class="formmail_right">
<input class="form-control formmailfield" id="" type="text" name="bccmailing" placeholder="example@example.com" value="<?php echo $email_bccmailing;?>">
</td>
</tr>
<tr style="display:none;">
<td class="formmail_left" class="display:none;">Attachments:</td>
<td class="formmail_left" class="display:none;"><?php echo $esprache->attachments; ?>:</td>
<td class="formmail_right" class="display:none;">
<div id="attachment">
<input name="attachments[]" type="file" class="form-control">
@ -68,7 +68,7 @@
<div class="box-footer">
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-save">&nbsp;<?php echo $gsprache->save;?></i></button>
<div class="pull-right">
<a href="admin.php?w=sm" class="btn btn-danger">Back</a>
<a href="admin.php?w=sm" class="btn btn-danger"><?php echo $gsprache->back;?></a>
</div>
</div>
</div>
@ -78,7 +78,7 @@
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Variable</h3>
<h3 class="box-title"><?php echo $esprache->variable; ?></h3>
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
</div><!-- /.box-tools -->
@ -87,100 +87,128 @@
<table class="table table-hover" style="font-size:0.8em;">
<tbody>
<tr>
<th>Variable</th>
<th>Description/Result</th>
<th><?php echo $esprache->variable; ?></th>
<th><?php echo $esprache->variabledesc; ?></th>
</tr>
<tr>
<td>%topic%</td>
<td>Subject</td>
<td><?php echo $esprache->topic; ?></td>
</tr>
<tr>
<td>%id%</td>
<td>ID</td>
<td><?php echo $esprache->id; ?></td>
</tr>
<tr>
<td>%creationTime%</td>
<td>Create Time</td>
<td><?php echo $esprache->creationTime; ?></td>
</tr>
<tr>
<td>%active%</td>
<td>Y=active or N=not active</td>
<td><?php echo $esprache->active; ?></td>
</tr>
<tr>
<td>%salutation%</td>
<td>Salutation</td>
<td><?php echo $esprache->salutation; ?></td>
</tr>
<tr>
<td>%cname%</td>
<td>Username</td>
<td><?php echo $esprache->cname; ?></td>
</tr>
<tr>
<td>%fullname%</td>
<td>Firstname with lastname</td>
<td><?php echo $esprache->fullname; ?></td>
</tr>
<tr>
<td>%name%</td>
<td>Lastname</td>
<td><?php echo $esprache->name; ?></td>
</tr>
<tr>
<td>%vname%</td>
<td>Firstname</td>
<td><?php echo $esprache->vname; ?></td>
</tr>
<tr>
<td>%birthday%</td>
<td>Date of Birth</td>
<td><?php echo $esprache->birthday; ?></td>
</tr>
<tr>
<td>%mail%</td>
<td>E-Mail Adress</td>
<td><?php echo $esprache->mail; ?></td>
</tr>
<tr>
<td>%phone%</td>
<td>Phone number</td>
<td><?php echo $esprache->phone; ?></td>
</tr>
<tr>
<td>%fax%</td>
<td>Fax number</td>
<td><?php echo $esprache->fax; ?></td>
</tr>
<tr>
<td>%handy%</td>
<td>Mobile number</td>
<td><?php echo $esprache->handy; ?></td>
</tr>
<tr>
<td>%country%</td>
<td>Country</td>
<td><?php echo $esprache->country; ?></td>
</tr>
<tr>
<td>%city%</td>
<td>City</td>
<td><?php echo $esprache->city; ?></td>
</tr>
<tr>
<td>%cityn%</td>
<td>PLZ</td>
<td><?php echo $esprache->cityn; ?></td>
</tr>
<tr>
<td>%street%</td>
<td>Streetname</td>
<td><?php echo $esprache->street; ?></td>
</tr>
<tr>
<td>%streetn%</td>
<td>House number</td>
<td><?php echo $esprache->streetn; ?></td>
</tr>
<tr>
<td>%language%</td>
<td>Languagecode (Ex. de)</td>
<td><?php echo $esprache->language; ?></td>
</tr>
<tr>
<td>%lastlogin%</td>
<td>Date of last login</td>
<td><?php echo $esprache->lastlogin; ?></td>
</tr>
<tr>
<td>%urlhost%</td>
<td>URL to login.php</td>
<td><?php echo $esprache->urlhost; ?></td>
</tr>
<tr style="color:red;">
<tr>
<td>%password%</td>
<td>Login password (only for Template: emailuseradd)</td>
<td><?php echo $esprache->password; ?></td>
</tr>
<tr>
<td>%date%</td>
<td><?php echo $esprache->date; ?></td>
</tr>
<tr>
<td>%ip%</td>
<td><?php echo $esprache->ip; ?></td>
</tr>
<tr>
<td>%port%</td>
<td><?php echo $esprache->port; ?></td>
</tr>
<tr>
<td>%port2%</td>
<td><?php echo $esprache->port2; ?></td>
</tr>
<tr>
<td>%port3%</td>
<td><?php echo $esprache->port3; ?></td>
</tr>
<tr>
<td>%port4%</td>
<td><?php echo $esprache->port4; ?></td>
</tr>
<tr>
<td>%ports%</td>
<td><?php echo $esprache->ports; ?></td>
</tr>
</tbody>
</table>