Removed old phpmailer from all cronjobs

This commit is contained in:
Xenomporio
2022-07-03 21:21:09 +02:00
parent 77b2d7e2d3
commit a4809ff0f1
47 changed files with 3 additions and 816 deletions
-42
View File
@@ -18,8 +18,6 @@ if(!class_exists('AES')){
include_once(dirname(__DIR__) . "/www/lib/class.aes.php");
}
include_once(dirname(__DIR__)."/www/pages/shopimport.php");
include_once(dirname(__DIR__)."/www/plugins/phpmailer/class.phpmailer.php");
include_once(dirname(__DIR__)."/www/plugins/phpmailer/class.smtp.php");
if(!class_exists('Secure')){
include_once(dirname(__DIR__) . "/phpwf/plugins/class.secure.php");
}
@@ -139,46 +137,6 @@ $app->Secure = new Secure($app);
$firmendatenid = $app->DB->Select("SELECT MAX(id) FROM firmendaten LIMIT 1");
$benutzername = $app->erp->Firmendaten('benutzername');
$passwort = $app->erp->Firmendaten('passwort');
$host = $app->erp->Firmendaten('host');
$port = $app->erp->Firmendaten('port');
$mailssl = $app->erp->Firmendaten('mailssl');
$mailanstellesmtp = $app->erp->Firmendaten('mailanstellesmtp');
$noauth = $app->erp->Firmendaten('noauth');
// mail
$app->mail = new PHPMailer($app);
$app->mail->CharSet = 'UTF-8';
$app->mail->PluginDir='plugins/phpmailer/';
if($mailanstellesmtp=='1'){
$app->mail->IsMail();
} else {
$app->mail->IsSMTP();
if($noauth=='1') {
$app->mail->SMTPAuth = false;
}
else {
$app->mail->SMTPAuth = true;
}
if($mailssl==1){
$app->mail->SMTPSecure = 'tls'; // sets the prefix to the servier
}
else if ($mailssl==2){
$app->mail->SMTPSecure = 'ssl'; // sets the prefix to the servier
}
$app->mail->Host = $host;
$app->mail->Port = $port; // set the SMTP port for the GMAIL server
$app->mail->Username = $benutzername; // GMAIL username
$app->mail->Password = $passwort; // GMAIL password
}
$cronjob = $app->DB->Select("SELECT id FROM prozessstarter WHERE aktiv = 1 AND parameter = 'amazon' LIMIT 1");
if(!$cronjob) {