Topolinatore - trovare nuovi fumetti online di Topolino via bruteforce. Non funziona più
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="topolino.aspx.cs" Inherits="topolino" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head runat="server"> | |
<title>Topolino</title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> | |
<div style="text-align: center"> | |
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"> | |
<asp:View ID="View1" runat="server"> | |
Vuoi provare a cercare un episodio non in lista?<br /> | |
<br /> | |
<asp:Button ID="Buttoncerto" runat="server" onclick="Buttoncerto_Click" | |
Text="Certo!" /> | |
</asp:View> | |
<asp:View ID="View2" runat="server"> | |
<asp:Label ID="Labelintro" runat="server" | |
Text="Che numero vuoi cercare?"></asp:Label> | |
<asp:TextBox ID="TextBoxnumero" runat="server" | |
Width="37px">2783</asp:TextBox> | |
<br /> | |
<asp:Button ID="Buttongenera" runat="server" | |
OnClick="Button1_Click" Text="Genera il link" /> | |
</asp:View> | |
<asp:View ID="View3" runat="server"> | |
Ecco qua:<br /><asp:HyperLink ID="collegamento" runat="server" Target="_blank">HyperLink</asp:HyperLink> | |
<br /> | |
<br /> | |
Il link funziona?<br /> | |
<asp:Button ID="Buttonfunziona" runat="server" Text="Si, funziona!" onclick="Buttonfunziona_Click" | |
/> | |
| |
<asp:Button ID="Buttonnonfunziona" runat="server" Text="No, non funziona..." | |
onclick="Buttonnonfunziona_Click" /> | |
</asp:View> | |
<asp:View ID="View4" runat="server"> | |
Ah si? Il link <b>funziona</b>? Allora segnalacelo!<br /> | |
<asp:Label ID="labeltitolo" runat="server" Text="Titolo dell'episodio:"></asp:Label> | |
<asp:TextBox ID="TextBoxdesc" runat="server">Titolo</asp:TextBox><br /><b>A causa di TROPPE SEGNALAZIONI FASULLE, il pulsante di segnalazione è temporaneamente disattivato finché non trovo un sistema per risolvere il problema</b><br />Ringraziate i soliti noti...<br /><br /> | |
<asp:Button ID="Buttoninvia" runat="server" disabled="true" Text="Invia" OnClick="Button2_Click"/> | |
</asp:View> | |
<asp:View ID="View5" runat="server"> | |
Grazie di averci <b>segnalato un link funzionante</b>. Lo controlleremo e, nel | |
caso che sia veramente funzionante, lo aggiungeremo in lista!<br /> | |
<br /> | |
Vuoi riprovare a cercare un episodio non in lista?<br /> | |
<asp:Button ID="Buttonriprova" runat="server" | |
Text="Certo!" onclick="Buttonriprova_Click" /> | |
</asp:View> | |
</asp:MultiView> | |
</div> | |
</form> | |
</body> | |
</html> |
//v2 proviamolo a fare a prova di stupido | |
using System; | |
using System.Data; | |
using System.Configuration; | |
using System.Collections; | |
using System.Web; | |
using System.Web.Security; | |
using System.Web.UI; | |
using System.Web.UI.WebControls; | |
using System.Web.UI.WebControls.WebParts; | |
using System.Web.UI.HtmlControls; | |
using System.Net.Mail; | |
public partial class topolino : System.Web.UI.Page | |
{ | |
protected void Button1_Click(object sender, EventArgs e) | |
{ | |
collegamento.Text = "Numero " + TextBoxnumero.Text; | |
collegamento.NavigateUrl = "http://anonym.to/?"+"http://www.disney.it/publishing/topolinomagazine/%23/fumetti/storie/" + TextBoxnumero.Text + ".jsp"; | |
MultiView1.ActiveViewIndex++; | |
} | |
protected void Button2_Click(object sender, EventArgs e) | |
{ | |
try | |
{ | |
string destinazione = "miamail@esempio.it"; | |
string mailserver = "localhost"; | |
MailMessage email = new MailMessage("noreply@esempio.it", destinazione); | |
email.Subject = "Trovato un numero di Topolino"; | |
email.Body = "<a href=\""; | |
email.Body += "http://anonym.to/?http://www.disney.it/publishing/topolinomagazine/%23/fumetti/storie/" + TextBoxnumero.Text + ".jsp"; | |
email.Body += "\" target=\"_blank\">" + TextBoxnumero.Text + " - "; | |
email.Body += TextBoxdesc.Text + "</a><br />"; | |
SmtpClient client = new SmtpClient(mailserver); | |
client.Send(email); | |
} | |
catch (Exception) | |
{ | |
//throw; | |
} | |
MultiView1.ActiveViewIndex++; | |
} | |
protected void Buttoncerto_Click(object sender, EventArgs e) | |
{ | |
MultiView1.ActiveViewIndex++; | |
} | |
protected void Buttonfunziona_Click(object sender, EventArgs e) | |
{ | |
MultiView1.ActiveViewIndex++; | |
} | |
protected void Buttonriprova_Click(object sender, EventArgs e) | |
{ | |
MultiView1.ActiveViewIndex = 1; | |
} | |
protected void Buttonnonfunziona_Click(object sender, EventArgs e) | |
{ | |
MultiView1.ActiveViewIndex = 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment