mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 12:07:15 +01:00
Removed old phpmailer from all cronjobs
This commit is contained in:
parent
77b2d7e2d3
commit
a4809ff0f1
@ -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) {
|
||||
|
@ -49,9 +49,6 @@ if(!class_exists('AES')){
|
||||
include_once(dirname(__DIR__) . '/www/lib/class.aes.php');
|
||||
}
|
||||
}
|
||||
include_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php');
|
||||
include_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php');
|
||||
|
||||
$classes = array('briefpapier','lieferschein','auftrag','anfrage','gutschrift','bestellung','rechnung',
|
||||
'mahnwesen');
|
||||
foreach($classes as $class)
|
||||
@ -85,12 +82,6 @@ include_once(__DIR__."/../www/lib/ShopimporterBase.php");
|
||||
if(!class_exists('WawiString')){
|
||||
include_once(dirname(__DIR__) . '/phpwf/plugins/class.string.php');
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
require_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php');
|
||||
}
|
||||
if(!class_exists('PHPMailer')){
|
||||
require_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php');
|
||||
}
|
||||
if(!class_exists('app_t2'))
|
||||
{
|
||||
class app_t2 extends ApplicationCore {
|
||||
@ -402,47 +393,6 @@ if(!class_exists('app_t2'))
|
||||
|
||||
//ENDE
|
||||
|
||||
|
||||
$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");
|
||||
$noauth = $app->erp->Firmendaten("noauth");
|
||||
$mailanstellesmtp = $app->erp->Firmendaten("mailanstellesmtp");
|
||||
|
||||
// mail
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
$app->mail->PluginDir=dirname(__DIR__).'/www/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
|
||||
}
|
||||
elseif ($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
|
||||
}
|
||||
|
||||
$app->FormHandler = new FormHandler($app);
|
||||
|
||||
if(!$app->erp->ModulVorhanden('uebertragungen')) {
|
||||
|
@ -14,8 +14,6 @@ if(!class_exists('AES')){
|
||||
include_once dirname(__DIR__) . "/www/lib/class.aes.php";
|
||||
}
|
||||
}
|
||||
include_once dirname(__DIR__)."/www/plugins/phpmailer/class.phpmailer.php";
|
||||
include_once dirname(__DIR__)."/www/plugins/phpmailer/class.smtp.php";
|
||||
if(!class_exists('app_t')){
|
||||
class app_t
|
||||
{
|
||||
|
@ -61,12 +61,6 @@ if(!class_exists('AES')){
|
||||
if(!class_exists('Printer')){
|
||||
include_once(dirname(__DIR__) . '/www/lib/class.printer.php');
|
||||
}
|
||||
if(!class_exists('PHPMailer')){
|
||||
include_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php');
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
include_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php');
|
||||
}
|
||||
$classes = array('briefpapier','lieferschein','auftrag','anfrage','gutschrift','bestellung','rechnung','mahnwesen');
|
||||
foreach($classes as $class)
|
||||
{
|
||||
@ -407,38 +401,6 @@ if(empty($app->erp)) {
|
||||
|
||||
//ENDE
|
||||
|
||||
$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");
|
||||
|
||||
// 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();
|
||||
$app->mail->SMTPAuth = true; // enable SMTP authentication
|
||||
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
|
||||
}
|
||||
|
||||
$app->FormHandler = new FormHandler($app);
|
||||
|
||||
$app->printer = new Printer($app);
|
||||
|
@ -8,8 +8,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi_custom.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
|
@ -4,11 +4,6 @@ include(dirname(__FILE__)."/../conf/main.conf.php");
|
||||
include(dirname(__FILE__)."/../phpwf/plugins/class.db.php");
|
||||
include(dirname(__FILE__)."/../www/lib/imap.inc.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
@ -21,50 +16,6 @@ class app_t {
|
||||
|
||||
$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
|
||||
}
|
||||
|
||||
|
||||
//$app->erp->LogFile("start aufgabe");
|
||||
|
||||
$app->DB->Update("UPDATE aufgabe SET email_gesendet_vorankuendigung=0 WHERE DATE_SUB(abgabe_bis, INTERVAL vorankuendigung DAY) = DATE_FORMAT(NOW(),'%Y-%m-%d') AND vorankuendigung > 0 AND DATE_FORMAT(NOW(),'%H:%i') < DATE_FORMAT(abgabe_bis_zeit,'%H:%i')");
|
||||
|
@ -10,9 +10,6 @@ if(file_exists(dirname(__DIR__).'/www/lib/class.erpapi_custom.php') &&
|
||||
include_once dirname(__DIR__) . '/www/lib/class.erpapi_custom.php';
|
||||
}
|
||||
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.phpmailer.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.smtp.php';
|
||||
|
||||
if(!class_exists('app_t')){
|
||||
class app_t extends ApplicationCore
|
||||
{
|
||||
|
@ -24,38 +24,6 @@ $app->erp = $erp;
|
||||
$remote = new Remote($app);
|
||||
$app->remote = $remote;
|
||||
|
||||
$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");
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
$app->DB->Update("UPDATE prozessstarter SET mutexcounter = mutexcounter + 1 WHERE mutex = 1 AND parameter = 'bestellungabschliessen' AND aktiv = 1");
|
||||
if(!$app->erp->Firmendaten('bestellungabschliessen') || !$app->DB->Select("SELECT id FROM prozessstarter WHERE mutex = 0 AND parameter = 'bestellungabschliessen' AND aktiv = 1")){
|
||||
return;
|
||||
|
@ -9,9 +9,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
|
@ -25,8 +25,6 @@ if(!class_exists('AES')){
|
||||
}
|
||||
}
|
||||
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';
|
||||
include_once dirname(__DIR__).'/phpwf/plugins/class.secure.php';
|
||||
|
||||
if(!class_exists('app_t'))
|
||||
|
@ -22,8 +22,6 @@ if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
|
||||
}else
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
//include_once(dirname(__FILE__)."/coface_log.php");
|
||||
//include_once(dirname(__FILE__)."/coface_io.php");
|
||||
|
||||
|
@ -75,36 +75,6 @@ if (method_exists($app->erp, 'CheckCronjob') && !$app->erp->CheckCronjob()) {
|
||||
}
|
||||
$firmendatenid = $app->DB->Select('SELECT MAX(id) FROM firmendaten LIMIT 1');
|
||||
|
||||
$benutzername = $app->DB->Select("SELECT benutzername FROM firmendaten WHERE id='" . $firmendatenid . "' LIMIT 1");
|
||||
$passwort = $app->DB->Select("SELECT passwort FROM firmendaten WHERE id='" . $firmendatenid . "' LIMIT 1");
|
||||
$host = $app->DB->Select("SELECT host FROM firmendaten WHERE id='" . $firmendatenid . "' LIMIT 1");
|
||||
$port = $app->DB->Select("SELECT port FROM firmendaten WHERE id='" . $firmendatenid . "' LIMIT 1");
|
||||
$mailssl = $app->DB->Select("SELECT mailssl FROM firmendaten WHERE id='" . $firmendatenid . "' LIMIT 1");
|
||||
$noauth = $app->erp->Firmendaten('noauth');
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = 'UTF-8';
|
||||
//$app->mail->PluginDir="plugins/phpmailer/";
|
||||
$app->mail->IsSMTP();
|
||||
|
||||
if ($noauth == '1') {
|
||||
$app->mail->SMTPAuth = false;
|
||||
} else {
|
||||
$app->mail->SMTPAuth = true;
|
||||
}
|
||||
if($mailssl == 1){
|
||||
$app->mail->SMTPSecure = 'tls';
|
||||
}else if($mailssl == 2){
|
||||
$app->mail->SMTPSecure = 'ssl';
|
||||
}
|
||||
|
||||
$app->mail->Host = $host;
|
||||
$app->mail->Port = $port; // set the SMTP port for the GMAIL server
|
||||
|
||||
$app->mail->Username = $benutzername;
|
||||
$app->mail->Password = $passwort;
|
||||
|
||||
|
||||
$app->erp->SetKonfigurationValue('prozessstarter_letzteraufruf', date('Y-m-d H:i:s'));
|
||||
|
||||
/** @var \Xentral\Modules\SystemHealth\Service\SystemHealthService $service */
|
||||
|
@ -3,7 +3,6 @@ include(dirname(__FILE__)."/../conf/main.conf.php");
|
||||
include(dirname(__FILE__)."/../phpwf/plugins/class.mysql.php");
|
||||
include(dirname(__FILE__)."/../www/lib/imap.inc.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
|
@ -44,9 +44,6 @@ if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
|
||||
}else
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.printer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
include_once(dirname(__FILE__)."/../www/lib/dokumente/class.superfpdf.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/dokumente/class.etiketten.php");
|
||||
|
@ -13,9 +13,6 @@ if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");
|
||||
}else
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
if(!class_exists('app_t'))
|
||||
{
|
||||
@ -41,29 +38,6 @@ $app->erp = $erp;
|
||||
|
||||
$firmendatenid = $app->DB->Select("SELECT MAX(id) FROM firmendaten LIMIT 1");
|
||||
|
||||
$benutzername = $app->DB->Select("SELECT benutzername FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$passwort = $app->DB->Select("SELECT passwort FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$host = $app->DB->Select("SELECT host FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$port = $app->DB->Select("SELECT port FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$mailssl = $app->DB->Select("SELECT mailssl FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$noauth = $app->erp->Firmendaten("noauth");
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
//$app->mail->PluginDir="plugins/phpmailer/";
|
||||
$app->mail->IsSMTP();
|
||||
|
||||
if($noauth=="1") $app->mail->SMTPAuth = false;
|
||||
else $app->mail->SMTPAuth = true;
|
||||
|
||||
if($mailssl)
|
||||
$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;
|
||||
$app->mail->Password = $passwort;
|
||||
|
||||
$events = $app->DB->SelectArr("SELECT * FROM event_api");
|
||||
|
||||
for($ij=0;$ij<count($events);$ij++)
|
||||
|
@ -3,10 +3,6 @@ include_once("/home/eproo/eproo-master/app/main/conf/main.conf.php");
|
||||
include_once("/home/eproo/eproo-master/app/main/phpwf/plugins/class.db.php");
|
||||
include_once("/home/eproo/eproo-master/app/main/webroot/lib/imap.inc.php");
|
||||
include_once("/home/eproo/eproo-master/app/main/webroot/lib/class.erpapi.php");
|
||||
include_once("/home/eproo/eproo-master/app/main/webroot/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once("/home/eproo/eproo-master/app/main/webroot/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
@ -24,32 +20,6 @@ $erp = new erpAPI($app);
|
||||
|
||||
$firmendatenid = $app->DB->Select("SELECT MAX(id) FROM firmendaten LIMIT 1");
|
||||
|
||||
$benutzername = $app->DB->Select("SELECT benutzername FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$passwort = $app->DB->Select("SELECT passwort FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$host = $app->DB->Select("SELECT host FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$port = $app->DB->Select("SELECT port FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$mailssl = $app->DB->Select("SELECT mailssl FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$noauth = $app->erp->Firmendaten("noauth");
|
||||
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
//$app->mail->PluginDir="plugins/phpmailer/";
|
||||
$app->mail->IsSMTP();
|
||||
|
||||
if($noauth=="1") $app->mail->SMTPAuth = false;
|
||||
else $app->mail->SMTPAuth = true;
|
||||
|
||||
if($mailssl)
|
||||
$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;
|
||||
$app->mail->Password = $passwort;
|
||||
|
||||
|
||||
|
||||
$erp->ExportlinkZahlungsmail();
|
||||
$erp->ExportlinkZahlungsmail();
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
@ -39,32 +37,6 @@ $app->erp->LogFile("Folgebestaetigung gestartet");
|
||||
|
||||
$firmendatenid = $app->DB->Select("SELECT MAX(id) FROM firmendaten LIMIT 1");
|
||||
|
||||
$benutzername = $app->DB->Select("SELECT benutzername FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$passwort = $app->DB->Select("SELECT passwort FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$host = $app->DB->Select("SELECT host FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$port = $app->DB->Select("SELECT port FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$mailssl = $app->DB->Select("SELECT mailssl FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$noauth = $app->DB->Select("SELECT noauth FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
//$app->mail->PluginDir="plugins/phpmailer/";
|
||||
$app->mail->IsSMTP();
|
||||
|
||||
if($noauth=="1") $app->mail->SMTPAuth = false;
|
||||
else $app->mail->SMTPAuth = true;
|
||||
|
||||
|
||||
//if($mailssl)
|
||||
//$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;
|
||||
$app->mail->Password = $passwort;
|
||||
|
||||
|
||||
$app->Secure = new Secure($app);
|
||||
$app->User = new User($app);
|
||||
$app->erp->LogFile("Folgebestaetigung start AuftraegeBerechnen");
|
||||
|
@ -14,10 +14,6 @@ if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");
|
||||
}else
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
@ -38,31 +34,6 @@ $remote = new Remote($app);
|
||||
|
||||
$firmendatenid = $app->DB->Select("SELECT MAX(id) FROM firmendaten LIMIT 1");
|
||||
|
||||
$benutzername = $app->DB->Select("SELECT benutzername FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$passwort = $app->DB->Select("SELECT passwort FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$host = $app->DB->Select("SELECT host FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$port = $app->DB->Select("SELECT port FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$mailssl = $app->DB->Select("SELECT mailssl FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$noauth = $app->erp->Firmendaten("noauth");
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
//$app->mail->PluginDir="plugins/phpmailer/";
|
||||
$app->mail->IsSMTP();
|
||||
|
||||
if($noauth=="1") $app->mail->SMTPAuth = false;
|
||||
else $app->mail->SMTPAuth = true;
|
||||
|
||||
|
||||
if($mailssl)
|
||||
$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;
|
||||
$app->mail->Password = $passwort;
|
||||
|
||||
|
||||
$lagerartikel = $app->DB->SelectArr("SELECT id,name_de,lieferzeit FROM artikel WHERE shop > 0");
|
||||
echo "count ".count($lagerartikel);
|
||||
|
||||
|
@ -8,10 +8,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi_custom.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
|
@ -49,8 +49,6 @@ if(!class_exists('AES')){
|
||||
include_once(dirname(__DIR__) . '/www/lib/class.aes.php');
|
||||
}
|
||||
}
|
||||
include_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php');
|
||||
include_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php');
|
||||
|
||||
$classes = array('briefpapier','lieferschein','auftrag','anfrage','gutschrift','bestellung','rechnung',
|
||||
'mahnwesen');
|
||||
@ -85,12 +83,6 @@ include_once(__DIR__."/../www/lib/ShopimporterBase.php");
|
||||
if(!class_exists('WawiString')){
|
||||
include_once(dirname(__DIR__) . '/phpwf/plugins/class.string.php');
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
require_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php');
|
||||
}
|
||||
if(!class_exists('PHPMailer')){
|
||||
require_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php');
|
||||
}
|
||||
if(!class_exists('app_t2'))
|
||||
{
|
||||
class app_t2 extends ApplicationCore {
|
||||
@ -402,47 +394,6 @@ if(!defined('FPDF_FONTPATH'))
|
||||
|
||||
//ENDE
|
||||
|
||||
|
||||
$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");
|
||||
$noauth = $app->erp->Firmendaten("noauth");
|
||||
$mailanstellesmtp = $app->erp->Firmendaten("mailanstellesmtp");
|
||||
|
||||
// mail
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
$app->mail->PluginDir=dirname(__DIR__).'/www/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
|
||||
}
|
||||
elseif ($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
|
||||
}
|
||||
|
||||
$app->FormHandler = new FormHandler($app);
|
||||
|
||||
$app->DB->Update("UPDATE prozessstarter SET mutexcounter = mutexcounter + 1 WHERE mutex = 1 AND (parameter = 'importvorlage') AND aktiv = 1");
|
||||
|
@ -4,10 +4,6 @@ include(dirname(__FILE__)."/../conf/main.conf.php");
|
||||
include(dirname(__FILE__)."/../phpwf/plugins/class.mysql.php");
|
||||
include(dirname(__FILE__)."/../www/lib/imap.inc.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
@ -43,51 +39,9 @@ if(empty($app->erp)){
|
||||
|
||||
$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
|
||||
}
|
||||
|
||||
$app->DB->Update("UPDATE prozessstarter SET mutexcounter = mutexcounter + 1 WHERE mutex = 1 AND (parameter = 'kalender' ) AND aktiv = 1");
|
||||
if(!$app->DB->Select("SELECT id FROM prozessstarter WHERE mutex = 0 AND (parameter = 'kalender') AND aktiv = 1"))return;
|
||||
|
||||
|
||||
// alle termine innerhalb der nächsten 15 Minuten
|
||||
$termine = $app->DB->SelectArr("SELECT ke.id,ke.bezeichnung,DATE_FORMAT(ke.von,'%H:%i') as start,ke.beschreibung,ke.allDay
|
||||
FROM kalender_event AS ke
|
||||
|
@ -7,10 +7,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
|
@ -40,39 +40,6 @@ $app->erp->LogFile("Starte Synchronisation");
|
||||
|
||||
$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");
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
$app->DB->Update(
|
||||
"UPDATE `prozessstarter`
|
||||
SET `mutexcounter` = `mutexcounter` + 1
|
||||
@ -190,6 +157,7 @@ $app->mail->CharSet = "UTF-8";
|
||||
'Systemmeldung: Auto Update Lagerlampen',
|
||||
$message
|
||||
);
|
||||
|
||||
}else{
|
||||
if($erp->GetFirmaBCC1() != ''){
|
||||
$erp->MailSend(
|
||||
|
@ -8,10 +8,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi_custom.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
|
@ -13,8 +13,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
|
@ -10,8 +10,6 @@ include_once dirname(__DIR__).'/www/lib/class.erpapi.php';
|
||||
include_once dirname(__DIR__).'/www/lib/class.remote.php';
|
||||
include_once dirname(__DIR__).'/www/lib/class.httpclient.php';
|
||||
include_once dirname(__DIR__).'/www/lib/class.aes.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.phpmailer.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.smtp.php';
|
||||
include_once dirname(__DIR__).'/www/lib/ShopimporterBase.php';
|
||||
|
||||
$app = new ApplicationCore();
|
||||
@ -151,4 +149,4 @@ $app->DB->Update(
|
||||
"UPDATE `prozessstarter`
|
||||
SET `letzteausfuerhung`=NOW(), `mutex` = 0,`mutexcounter`=0
|
||||
WHERE `parameter` = 'onlineshops_tasks'"
|
||||
);
|
||||
);
|
||||
|
@ -7,10 +7,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
|
@ -8,8 +8,6 @@ if(file_exists(dirname(__FILE__)."/../www/lib/class.erpapi_custom.php"))include_
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
*/
|
||||
|
||||
if(!class_exists('app_t'))
|
||||
|
@ -42,8 +42,6 @@ if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");
|
||||
}else
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
$classes = array('briefpapier','lieferschein','auftrag','anfrage','gutschrift','bestellung','rechnung','mahnwesen');
|
||||
foreach($classes as $class)
|
||||
|
@ -73,12 +73,6 @@ if(!class_exists('AES')){
|
||||
include_once(dirname(__DIR__) . "/www/lib/class.aes.php");
|
||||
}
|
||||
|
||||
if(!class_exists('PHPMailer')){
|
||||
include_once(dirname(__DIR__) . "/www/plugins/phpmailer/class.phpmailer.php");
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
include_once(dirname(__DIR__) . "/www/plugins/phpmailer/class.smtp.php");
|
||||
}
|
||||
if(!class_exists('image'))
|
||||
{
|
||||
include_once (dirname(__DIR__)."/www/lib/class.image.php");
|
||||
|
@ -73,12 +73,6 @@ if(!class_exists('AES')){
|
||||
}
|
||||
}
|
||||
|
||||
if(!class_exists('PHPMailer')){
|
||||
include_once dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php';
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
include_once dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php';
|
||||
}
|
||||
if(!class_exists('image'))
|
||||
{
|
||||
include_once dirname(__DIR__).'/www/lib/class.image.php';
|
||||
|
@ -20,8 +20,6 @@ if($aes == 2 && is_file(dirname(__DIR__)."/www/lib/class.aes".$aes.".php"))
|
||||
include_once(dirname(__DIR__)."/www/lib/class.aes".$aes.".php");
|
||||
}else
|
||||
include_once(dirname(__DIR__)."/www/lib/class.aes.php");
|
||||
include_once(dirname(__DIR__)."/www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__DIR__)."/www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
if(!class_exists('app_t')){
|
||||
class app_t
|
||||
|
@ -31,8 +31,6 @@ if($aes === '2' && is_file(dirname(__DIR__).'/www/lib/class.aes'.$aes.'.php'))
|
||||
include_once dirname(__DIR__) . '/www/lib/class.aes.php';
|
||||
}
|
||||
include_once dirname(__DIR__).'/www/lib/class.remote.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.phpmailer.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.smtp.php';
|
||||
|
||||
class app_t extends ApplicationCore {
|
||||
public $DB;
|
||||
|
@ -38,8 +38,6 @@ if($aes == 2 && is_file(dirname(__DIR__).'/www/lib/class.aes2.php')) {
|
||||
else{
|
||||
include_once dirname(__DIR__) . '/www/lib/class.aes.php';
|
||||
}
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.phpmailer.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.smtp.php';
|
||||
|
||||
$classes = array('briefpapier','lieferschein','auftrag','anfrage','gutschrift','bestellung','rechnung','mahnwesen');
|
||||
foreach($classes as $class)
|
||||
@ -64,8 +62,6 @@ include_once(dirname(__FILE__)."/../www/lib/dokumente/class.bestellung.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/dokumente/class.rechnung.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/dokumente/class.mahnwesen.php");*/
|
||||
include_once dirname(__DIR__).'/phpwf/plugins/class.string.php';
|
||||
require_once dirname(__DIR__).'/www/plugins/phpmailer/class.smtp.php';
|
||||
require_once dirname(__DIR__).'/www/plugins/phpmailer/class.phpmailer.php';
|
||||
if(!class_exists('app_t2'))
|
||||
{
|
||||
class app_t2 extends ApplicationCore {
|
||||
@ -375,47 +371,6 @@ function GetLaender()
|
||||
|
||||
const MAXIMUM_NUMBER_OF_TRIES = 10;
|
||||
|
||||
$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
|
||||
}
|
||||
|
||||
|
||||
$shops = $app->DB->SelectFirstCols(
|
||||
'SELECT id FROM shopexport WHERE auftragabgleich = 1 AND aktiv = 1 AND demomodus <> 1 AND sendonlywithtracking = 0'
|
||||
);
|
||||
|
@ -13,10 +13,6 @@ if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");
|
||||
}else
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
@ -39,30 +35,6 @@ $remote = new Remote($app);
|
||||
|
||||
$firmendatenid = $app->DB->Select("SELECT MAX(id) FROM firmendaten LIMIT 1");
|
||||
|
||||
$benutzername = $app->DB->Select("SELECT benutzername FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$passwort = $app->DB->Select("SELECT passwort FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$host = $app->DB->Select("SELECT host FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$port = $app->DB->Select("SELECT port FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$mailssl = $app->DB->Select("SELECT mailssl FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
|
||||
$noauth = $app->erp->Firmendaten("noauth");
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
//$app->mail->PluginDir="plugins/phpmailer/";
|
||||
$app->mail->IsSMTP();
|
||||
|
||||
if($noauth=="1") $app->mail->SMTPAuth = false;
|
||||
else $app->mail->SMTPAuth = true;
|
||||
|
||||
if($mailssl)
|
||||
$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;
|
||||
$app->mail->Password = $passwort;
|
||||
|
||||
$shop=5;
|
||||
|
||||
//$app->DB->Update("UPDATE artikel SET hersteller='OLIMEX' WHERE hersteller='Olimex Ltd.'");
|
||||
|
@ -9,8 +9,6 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__DIR__)."/phpwf/plugins/class.secure.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
include_once(dirname(__DIR__)."/www/pages/shopimport.php");
|
||||
include(dirname(__FILE__)."/../phpwf/plugins/class.stringcleaner.php");
|
||||
*/
|
||||
@ -63,12 +61,6 @@ if(!class_exists('ShopimportCustom') &&
|
||||
{
|
||||
include_once dirname(__DIR__) . '/www/pages/shopimport_custom.php';
|
||||
}
|
||||
if(!class_exists('PHPMailer')){
|
||||
include_once dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php';
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
include_once dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php';
|
||||
}
|
||||
if(!class_exists('Secure')){
|
||||
include_once dirname(__DIR__) . '/phpwf/plugins/class.secure.php';
|
||||
}
|
||||
|
@ -31,8 +31,6 @@ if($aes === '2' && is_file(dirname(__DIR__).'/www/lib/class.aes'.$aes.'.php'))
|
||||
include_once dirname(__DIR__) . '/www/lib/class.aes.php';
|
||||
}
|
||||
include_once dirname(__DIR__).'/www/lib/class.remote.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.phpmailer.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.smtp.php';
|
||||
if(!class_exists('app_t')){
|
||||
class app_t extends ApplicationCore
|
||||
{
|
||||
|
@ -38,12 +38,6 @@ if(!class_exists('AES')){
|
||||
if(!class_exists('Shopimport')){
|
||||
include_once(dirname(__DIR__) . '/www/pages/shopimport.php');
|
||||
}
|
||||
if(!class_exists('PHPMailer')){
|
||||
include_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php');
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
include_once(dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php');
|
||||
}
|
||||
if(!class_exists('Secure')){
|
||||
include_once(dirname(__DIR__) . '/phpwf/plugins/class.secure.php');
|
||||
}
|
||||
@ -457,46 +451,7 @@ $app->User = new User($app);
|
||||
|
||||
$app->FormHandler = new FormHandler($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
|
||||
}
|
||||
$app->DB->Update("UPDATE prozessstarter SET mutexcounter = mutexcounter + 1 WHERE mutex = 1 AND (parameter = 'shopimport') AND aktiv = 1");
|
||||
if(!$app->DB->Select("SELECT id FROM prozessstarter WHERE mutex = 0 AND parameter = 'shopimport' AND aktiv = 1")) {
|
||||
return;
|
||||
|
@ -9,8 +9,6 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__DIR__)."/phpwf/plugins/class.secure.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
include_once(dirname(__DIR__)."/www/pages/shopimport.php");
|
||||
include(dirname(__FILE__)."/../phpwf/plugins/class.stringcleaner.php");
|
||||
*/
|
||||
@ -63,12 +61,6 @@ if(!class_exists('ShopimportCustom') &&
|
||||
{
|
||||
include_once dirname(__DIR__) . '/www/pages/shopimport_custom.php';
|
||||
}
|
||||
if(!class_exists('PHPMailer')){
|
||||
include_once dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php';
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
include_once dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php';
|
||||
}
|
||||
if(!class_exists('Secure')){
|
||||
include_once dirname(__DIR__) . '/phpwf/plugins/class.secure.php';
|
||||
}
|
||||
|
@ -8,8 +8,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
include(dirname(__FILE__)."/../www/lib/ShopimporterBase.php");
|
||||
include(dirname(__FILE__)."/../phpwf/class.application_core.php");
|
||||
|
||||
|
@ -9,8 +9,6 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__DIR__)."/phpwf/plugins/class.secure.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
include_once(dirname(__DIR__)."/www/pages/shopimport.php");
|
||||
include(dirname(__FILE__)."/../phpwf/plugins/class.stringcleaner.php");
|
||||
*/
|
||||
@ -63,12 +61,6 @@ if(!class_exists('ShopimportCustom') &&
|
||||
{
|
||||
include_once dirname(__DIR__) . '/www/pages/shopimport_custom.php';
|
||||
}
|
||||
if(!class_exists('PHPMailer')){
|
||||
include_once dirname(__DIR__) . '/www/plugins/phpmailer/class.phpmailer.php';
|
||||
}
|
||||
if(!class_exists('SMTP')){
|
||||
include_once dirname(__DIR__) . '/www/plugins/phpmailer/class.smtp.php';
|
||||
}
|
||||
if(!class_exists('Secure')){
|
||||
include_once dirname(__DIR__) . '/phpwf/plugins/class.secure.php';
|
||||
}
|
||||
|
@ -32,8 +32,6 @@ if($aes === '2' && is_file(dirname(__DIR__).'/www/lib/class.aes'.$aes.'.php'))
|
||||
include_once dirname(__DIR__) . '/www/lib/class.aes.php';
|
||||
}
|
||||
include_once dirname(__DIR__).'/www/lib/class.remote.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.phpmailer.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.smtp.php';
|
||||
|
||||
class app_t extends ApplicationCore {
|
||||
public $DB;
|
||||
|
@ -32,8 +32,6 @@ if($aes === '2' && is_file(dirname(__DIR__).'/www/lib/class.aes'.$aes.'.php'))
|
||||
include_once dirname(__DIR__) . '/www/lib/class.aes.php';
|
||||
}
|
||||
include_once dirname(__DIR__).'/www/lib/class.remote.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.phpmailer.php';
|
||||
include_once dirname(__DIR__).'/www/plugins/phpmailer/class.smtp.php';
|
||||
|
||||
class app_t extends ApplicationCore {
|
||||
public $DB;
|
||||
|
@ -8,10 +8,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
|
@ -39,8 +39,6 @@ if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");
|
||||
}else
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
$classes = array('briefpapier','lieferschein','auftrag','anfrage','gutschrift','bestellung','rechnung','mahnwesen');
|
||||
foreach($classes as $class)
|
||||
@ -65,8 +63,6 @@ include_once(dirname(__FILE__)."/../www/lib/dokumente/class.bestellung.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/dokumente/class.rechnung.php");
|
||||
include_once(dirname(__FILE__)."/../www/lib/dokumente/class.mahnwesen.php");*/
|
||||
include_once(dirname(__FILE__)."/../phpwf/plugins/class.string.php");
|
||||
require_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
require_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
chdir(__DIR__.'/../www/');
|
||||
|
||||
if(!class_exists('app_t2'))
|
||||
@ -370,40 +366,6 @@ function GetLaender()
|
||||
|
||||
//ENDE
|
||||
|
||||
$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");
|
||||
$noauth = $app->erp->Firmendaten("noauth");
|
||||
$mailanstellesmtp = $app->erp->Firmendaten("mailanstellesmtp");
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
$app->DB->Update(
|
||||
"UPDATE `prozessstarter`
|
||||
SET `mutexcounter` = `mutexcounter` + 1
|
||||
|
@ -7,10 +7,6 @@ include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.remote.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
@ -60,39 +56,6 @@ $app->erp->LogFile("Starte Synchronisation");
|
||||
|
||||
$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");
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
$obj = $app->erp->LoadModul('vertriebscockpit');
|
||||
if($obj)
|
||||
{
|
||||
|
@ -4,11 +4,6 @@ include(dirname(__FILE__)."/../conf/main.conf.php");
|
||||
include(dirname(__FILE__)."/../phpwf/plugins/class.mysql.php");
|
||||
include(dirname(__FILE__)."/../www/lib/imap.inc.php");
|
||||
include(dirname(__FILE__)."/../www/lib/class.erpapi.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
|
||||
|
||||
class app_t {
|
||||
var $DB;
|
||||
@ -53,46 +48,6 @@ if(!defined('FPDF_FONTPATH'))
|
||||
define('FPDF_FONTPATH',dirname(__DIR__) . '/www/lib/pdf/font/');
|
||||
}
|
||||
|
||||
$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
|
||||
}
|
||||
|
||||
$app->DB->Update("UPDATE prozessstarter SET mutexcounter = mutexcounter + 1 WHERE mutex = 1 AND (parameter = 'zahlungsmail' ) AND aktiv = 1");
|
||||
if(!$app->DB->Select("SELECT id FROM prozessstarter WHERE mutex = 0 AND (parameter = 'zahlungsmail') AND aktiv = 1")) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user