remove mail
							parent
							
								
									aebdb4d673
								
							
						
					
					
						commit
						0cafe0a72a
					
				|  | @ -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! <br> Du kannst sie <a href="'.$RUNTIME['IAR']['BASEURL'].$row['iarfilename'].'">hier</a> 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'])); | ||||
|  |  | |||
|  | @ -98,7 +98,7 @@ | |||
|                 <p class="lead"><b>IAR Sicherung</b></p> | ||||
|                 <center>%%IARINFOMESSAGE%%</center> | ||||
|                 Hier kannst du eine IAR deines Inventars erstellen.<br> | ||||
|                 Dies wird einige Zeit dauern. Du bekommst eine E-Mail mit einem Downloadlink sobald deine IAR fertig erstellt wurde. Stelle also sicher das du Links eine gültige E-Mail Adresse eingetragen hast. | ||||
|                 Dies wird einige Zeit dauern. Du bekommst eine PM mit einem Downloadlink sobald deine IAR fertig erstellt wurde. | ||||
| 
 | ||||
|                 <form action="index.php?page=profile" method="post"> | ||||
|                     <div class="row" style="margin-top: 15px;"> | ||||
|  |  | |||
|  | @ -24,7 +24,8 @@ | |||
|             $iarname = md5(time().$_SESSION['UUID'] . rand()).".iar"; | ||||
|      | ||||
|             $HTML->ReplaceSeitenInhalt("%%IARINFOMESSAGE%%", '<div class="alert alert-danger" role="alert">Deine IAR wird jetzt erstellt und der Download Link wird dir per E-Mail zugesendet. '.$APIResult.'</div>');  | ||||
|      | ||||
|             $HTML->ReplaceSeitenInhalt("%%IARBUTTONSTATE%%", 'disabled');  | ||||
|              | ||||
|             $statementIARSTART = $RUNTIME['PDO']->prepare('INSERT INTO iarstates (userID, filesize, iarfilename) VALUES (:userID, :filesize, :iarfilename)'); | ||||
|             $statementIARSTART->execute(['userID' => $_SESSION['UUID'], 'filesize' => 0, 'iarfilename' => $iarname]); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Chris
						Chris