diff --git a/cron/IARMonitor.php b/cron/IARMonitor.php
index 3b02f45..d7d4ad5 100644
--- a/cron/IARMonitor.php
+++ b/cron/IARMonitor.php
@@ -24,37 +24,13 @@
echo "Status der IAR für ".$RUNTIME['OPENSIM']->getUserName($row['userID']).": Speichert...\n";
}else{
+ $APIURL = $RUNTIME['SIDOMAN']['URL']."api.php?CONTAINER=".$RUNTIME['SIDOMAN']['CONTAINER']."&KEY=".$RUNTIME['SIDOMAN']['PASSWORD']."&METODE=RESTART";
+ $APIResult = file_get_contents($APIURL);
echo "Status der IAR für ".$RUNTIME['OPENSIM']->getUserName($row['userID']).": Sende Mail...\n";
$statementUpdate = $RUNTIME['PDO']->prepare('DELETE FROM iarstates WHERE userID = :userID');
$statementUpdate->execute(['userID' => $row['userID']]);
- $email = $RUNTIME['OPENSIM']->getUserMail($row['PrincipalID']);
-
- $mail = new PHPMailer(true);
-
- $mail->SMTPDebug = SMTP::DEBUG_SERVER;
- $mail->isSMTP();
- $mail->Host = $RUNTIME['SMTP']['SERVER'];
- $mail->Port = $RUNTIME['SMTP']['PORT'];
- $mail->SMTPAuth = false;
-
- $mail->setFrom($RUNTIME['SMTP']['ADRESS'], $RUNTIME['GRID']['NAME']);
- $mail->addAddress($email, $RUNTIME['OPENSIM']->getUserName($row['userID']));
-
- $HTMLMESSAGE = 'Deine IAR ist bereit zum Download!
Du kannst sie hier downloaden.';
-
- $HTML = new HTML();
- $HTML->importHTML("style/mail.html");
- $HTML->setSeitenInhalt($HTMLMESSAGE);
- $HTML->build();
-
- $mail->isHTML(true);
- $mail->Subject = "Deine IAR steht nun bereit.";
- $mail->Body = $HTML->ausgabe();
- $mail->AltBody = strip_tags($HTMLMESSAGE);
-
- $mail->send();
- $mail->SmtpClose();
+ sendInworldIM("00000000-0000-0000-0000-000000000000", $row['userID'], "Inventory", $RUNTIME['GRID']['HOMEURL'], "Deine IAR ist fertig zum Download: ".$RUNTIME['IAR']['BASEURL'].$row['iarfilename']);
}
}else{
$name = explode(" ", $RUNTIME['OPENSIM']->getUserName($row['userID']));
diff --git a/pages/HTML/profile.html b/pages/HTML/profile.html
index 166878d..d3a0295 100644
--- a/pages/HTML/profile.html
+++ b/pages/HTML/profile.html
@@ -98,7 +98,7 @@
IAR Sicherung