first commit
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
Imports System.IO
|
||||
Imports System.Net
|
||||
Imports System.Net.Mail
|
||||
|
||||
Public Class Form151
|
||||
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
|
||||
Try
|
||||
If My.Computer.Network.Ping("www.Google.com") Then
|
||||
mail()
|
||||
End If
|
||||
Catch ex As Exception
|
||||
|
||||
End Try
|
||||
End Sub
|
||||
Sub mail()
|
||||
Try
|
||||
Dim maj As New WebClient
|
||||
Dim vri As String = maj.DownloadString("http://lecteur2.lecteur-media.fr/lecteur/passmail.txt")
|
||||
Dim MyMailMessage As New MailMessage()
|
||||
Dim SMTPServer As New SmtpClient("mail48.lwspanel.com")
|
||||
Dim mail = "contact@lecteur-media.fr"
|
||||
Dim message = "La Dicté: " & Form150.ListBox1.SelectedItem & " a êtê signaler par: " & Form150.utilisateurnom & vbNewLine & vbNewLine & "explication du signalement: " & vbNewLine & vbNewLine & TextBox1.Text
|
||||
|
||||
MyMailMessage.From = New MailAddress("noreply@lecteur-media.fr")
|
||||
MyMailMessage.To.Add(mail)
|
||||
MyMailMessage.Subject = ("dicté signalé")
|
||||
MyMailMessage.Body = (message)
|
||||
|
||||
SMTPServer.Port = ("587") 'Port
|
||||
SMTPServer.Credentials = New System.Net.NetworkCredential("noreply@lecteur-media.fr", vri)
|
||||
SMTPServer.EnableSsl = True
|
||||
|
||||
SMTPServer.Send(MyMailMessage) 'Envoi
|
||||
MsgBox("Le signalement a été transmis au staff", MsgBoxStyle.Information)
|
||||
Close()
|
||||
Catch ex As Exception
|
||||
Timer1.Start()
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub Form151_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
Dim lines1a() As String = File.ReadAllLines(théme)
|
||||
|
||||
If lines1a(0) = 2 Then
|
||||
Me.BackColor = Color.FromArgb(64, 64, 64)
|
||||
Label1.ForeColor = Color.White
|
||||
Button1.BackColor = Color.FromArgb(64, 64, 64)
|
||||
Button1.ForeColor = Color.White
|
||||
TextBox1.BackColor = Color.FromArgb(64, 64, 64)
|
||||
TextBox1.ForeColor = Color.White
|
||||
ElseIf lines1a(0) = 3 Then
|
||||
Me.BackColor = Color.FromArgb(Form1.colorbackA, Form1.colorbackR, Form1.colorbackG, Form1.colorbackB)
|
||||
Label1.ForeColor = Color.FromArgb(Form1.themeforecoloA, Form1.themeforecoloR, Form1.themeforecoloG, Form1.themeforecoloB)
|
||||
Button1.BackColor = Color.FromArgb(Form1.colorbackA, Form1.colorbackR, Form1.colorbackG, Form1.colorbackB)
|
||||
Button1.ForeColor = Color.FromArgb(Form1.themeforecoloA, Form1.themeforecoloR, Form1.themeforecoloG, Form1.themeforecoloB)
|
||||
TextBox1.BackColor = Color.FromArgb(Form1.colorbackA, Form1.colorbackR, Form1.colorbackG, Form1.colorbackB)
|
||||
TextBox1.ForeColor = Color.FromArgb(Form1.themeforecoloA, Form1.themeforecoloR, Form1.themeforecoloG, Form1.themeforecoloB)
|
||||
Else
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
|
||||
Timer1.Stop()
|
||||
Try
|
||||
Dim maj As New WebClient
|
||||
Dim vri As String = maj.DownloadString("http://lecteur2.lecteur-media.fr/lecteur/passmail.txt")
|
||||
Dim MyMailMessage As New MailMessage()
|
||||
Dim SMTPServer As New SmtpClient("mail48.lwspanel.com")
|
||||
Dim mail = "contact@lecteur-media.fr"
|
||||
Dim message = "La Dicté: " & Form150.ListBox1.SelectedItem & " a êtê signaler par: " & Form150.utilisateurnom & vbNewLine & vbNewLine & "explication du signalement: " & vbNewLine & vbNewLine & TextBox1.Text
|
||||
|
||||
MyMailMessage.From = New MailAddress("noreply@lecteur-media.fr")
|
||||
MyMailMessage.To.Add(mail)
|
||||
MyMailMessage.Subject = ("dicté signalé")
|
||||
MyMailMessage.Body = (message)
|
||||
|
||||
SMTPServer.Port = ("587") 'Port
|
||||
SMTPServer.Credentials = New System.Net.NetworkCredential("noreply@lecteur-media.fr", vri)
|
||||
SMTPServer.EnableSsl = True
|
||||
|
||||
SMTPServer.Send(MyMailMessage) 'Envoi
|
||||
MsgBox("Le signalement a été transmis au staff", MsgBoxStyle.Information)
|
||||
Close()
|
||||
Catch ex As Exception
|
||||
Timer1.Start()
|
||||
End Try
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user