Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net;
- using System.Net.Mail;
- using System.Collections;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- namespace MNCRAFT_DEVELOP_CONSOLE
- {
- class Program
- {
- public static void Main()
- {
- string userread;
- string screenshoturl;
- string conntenturl;
- string email;
- Console.WriteLine("добро пожаловать в консоль издателя MNCRAFT");
- Console.WriteLine("если вы хотите узнать все команды то напишите /help");
- userread = Console.ReadLine();
- if(userread == "/help")
- {
- Console.WriteLine("/reg - эта команда для регистрацыи");
- Console.WriteLine("");
- Console.WriteLine("/publeshing - эта команда для публикацыии");
- Console.WriteLine("");
- Console.WriteLine("/update - эта команда для обновления");
- Console.WriteLine("");
- mn();
- }
- if (userread == "/reg")
- {
- Console.WriteLine("ведите адрес электроной почты");
- Console.WriteLine("");
- Console.WriteLine("пароль вам прешлют потом");
- Console.WriteLine("");
- email = Console.ReadLine();
- MailAddress From = new MailAddress("mncraft.mailsend.ru", "mncraft registration map");
- MailAddress To = new MailAddress("mncraft.uploader@mail.ru");
- MailMessage msg = new MailMessage(From, To);
- msg.Subject = "registration";
- msg.Body = "reg: " + email;
- SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587);
- smtp.Credentials = new NetworkCredential("mncraft.mailsend@mail.ru", "netflix22");
- smtp.EnableSsl = true;
- smtp.Send(msg);
- mn();
- }
- if(userread == "/update")
- {
- Console.WriteLine("выдите ссылку на архив с скриншотами(для скачивания с Mega или Яндекс.Диск");
- screenshoturl = Console.ReadLine();
- Console.WriteLine("ведите ссылку на карту(для скачивание с Mega или Яндекс.Диск");
- conntenturl = Console.ReadLine();
- Console.WriteLine("ведите свой адрес электроной почты(для обратной связи)");
- email = Console.ReadLine();
- Console.WriteLine("");
- Console.WriteLine("ведите пароль (который вам скидовали после регистрацыи");
- Console.WriteLine("");
- Console.WriteLine("если вы не зарегестрированы то презапустите програму а пото пропешите команду /reg");
- userread = Console.ReadLine();
- MailAddress From = new MailAddress("mncraft.mailsend@mail.ru", "mncraft updater map");
- MailAddress To = new MailAddress("mncraft.uploader@mail.ru");
- MailMessage msg = new MailMessage(From, To);
- msg.Subject = "uload map";
- msg.Body = "screen shot: " + screenshoturl + " conntent: " + conntenturl + " uploader email:" + email + " uploader password: " + userread;
- SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587);
- smtp.Credentials = new NetworkCredential("mncraft.mailsend@mail.ru", "netflix22");
- smtp.EnableSsl = true;
- smtp.Send(msg);
- mn();
- }
- if (userread == "/publeshing")
- {
- Console.WriteLine("ведите тип (map или addon)");
- userread = Console.ReadLine();
- if (userread == "map")
- {
- Console.WriteLine("выдите ссылку на архив с скриншотами(для скачивания с Mega или Яндекс.Диск");
- screenshoturl = Console.ReadLine();
- Console.WriteLine("ведите ссылку на карту(для скачивание с Mega или Яндекс.Диск");
- conntenturl = Console.ReadLine();
- Console.WriteLine("ведите свой адрес электроной почты(для обратной связи)");
- email = Console.ReadLine();
- Console.WriteLine("");
- Console.WriteLine("ведите пароль (который вам скидовали после регистрацыи");
- Console.WriteLine("");
- Console.WriteLine("если вы не зарегестрированы то презапустите програму а пото пропешите команду /reg");
- userread = Console.ReadLine();
- MailAddress From = new MailAddress("mncraft.mailsend@mail.ru", "mncraft uploader map");
- MailAddress To = new MailAddress("mncraft.uploader@mail.ru");
- MailMessage msg = new MailMessage(From, To);
- msg.Subject = "uload map";
- msg.Body = "screen shot: " + screenshoturl + " conntent: " + conntenturl + " uploader email: " + email + " uploader password: " + userread;
- SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587);
- smtp.Credentials = new NetworkCredential("mncraft.mailsend@mail.ru", "netflix22");
- smtp.EnableSsl = true;
- smtp.Send(msg);
- mn();
- }
- if (userread == "addon")
- {
- Console.WriteLine("выдите ссылку на архив с скриншотами(для скачивания с Mega или Яндекс.Диск");
- screenshoturl = Console.ReadLine();
- Console.WriteLine("ведите ссылку на мод(для скачивание с Mega или Яндекс.Диск");
- conntenturl = Console.ReadLine();
- Console.WriteLine("ведите свой адрес электроной почты(для обратной связи)");
- email = Console.ReadLine();
- Console.WriteLine("");
- Console.WriteLine("ведите пароль (который вам скидовали после регистрацыи");
- Console.WriteLine("");
- Console.WriteLine("если вы не зарегестрированы то презапустите програму а пото пропешите команду /reg");
- userread = Console.ReadLine();
- MailAddress From = new MailAddress("mncraft.mailsend.ru", "mncraft uploader map");
- MailAddress To = new MailAddress("mncraft.uploader@mail.ru");
- MailMessage msg = new MailMessage(From, To);
- msg.Subject = "uload addon";
- msg.Body = "screen shot: " + screenshoturl + " conntent: " + conntenturl + " uploader email:" + email + " uploader password: " + userread;
- SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587);
- smtp.Credentials = new NetworkCredential("mncraft.mailsend@mail.ru", "netflix22");
- smtp.EnableSsl = true;
- smtp.Send(msg);
- mn();
- }
- }
- }
- public static void mn()
- {
- Main();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement