Le Terre di Ransagor


Vai ai contenuti

ammlink

Area riservata

<% if session("LogIn")<> "Ok" then response.redirect "login.htm" End if if session("abilitatolink")<>"1" then response.redirect "login.htm" end if set con=Server.CreateObject("ADODB.Connection") con.Provider="Microsoft.Jet.OLEDB.4.0" con.Open Server.MapPath("mdb-database/database.mdb") if request.querystring("aggiornalink")=1 then id=request.querystring("ID") s="UPDATE links SET Titolosito='"&request.form("titolo")&"',Descrizione='"&request.form("descrizione")&"',Banner='"&request.form("codice")&"',URL='"&request.form("url")&"',urltest='"&request.form("urltest")&"',emailavvisi='"&request.form("e-mail")&"',dateavvisi='"&request.form("dateavvisi")&",Modificato il profilo"& NOW &"' WHERE id="&id SET rs=con.execute(s) response.redirect("ammlink.asp") End if if request.querystring("nuova")=1 then s="INSERT INTO links (titolosito,Descrizione,Banner,URL,urltest,approvato,testato,avviso,dateavvisi,oktest,emailavvisi) VALUES('MODIFICA QUI PER UN NUOVO LINK!','0','0','0','0','0','0','0','Link creato il"&now&"','0','0')" SET rs=con.execute(s) response.redirect("ammlink.asp") End if if request.querystring("approva")=1 then id=request.querystring("id") s="UPDATE links SET approvato=1 WHERE id="&id set rs=con.execute(s) response.redirect("ammlink.asp") End if if request.querystring("deapprova")=1 then id=request.querystring("id") s="UPDATE links SET approvato=0 WHERE id="&id set rs=con.execute(s) response.redirect("ammlink.asp") End if if request.querystring("cancella")=1 then id=request.querystring("id") s="DELETE FROM links WHERE id="&id set rs=con.execute(s) response.redirect("ammlink.asp") End if if request.querystring("avviso")=1 then id=request.querystring("id") s="UPDATE links SET avviso=1 WHERE id="&id set rs=con.execute(s) response.redirect("ammlink.asp") End if if request.querystring("deavviso")=1 then id=request.querystring("id") s="UPDATE links SET avviso=0 WHERE id="&id set rs=con.execute(s) response.redirect("ammlink.asp") End if if request.querystring("testautomatico")=1 then id=request.querystring("id") s="UPDATE links SET oktest=1 WHERE id="&id set rs=con.execute(s) response.redirect("ammlink.asp") End if if request.querystring("detestautomatico")=1 then id=request.querystring("id") s="UPDATE links SET oktest=0 WHERE id="&id set rs=con.execute(s) response.redirect("ammlink.asp") End if%>

 

Area Riservata:Amministrazione Link!!

 
<% s="SELECT * FROM links ORDER BY id DESC" set rs=con.execute(s) while not rs.eof %><% if rs("titolosito")="MODIFICA QUI PER UN NUOVO LINK!" then %><%else%> "#6699FF"<%else%>"#FF6633"<%end if%> height=1%><%end if %> <% rs.movenext wend %>

ID

Approv-
azione

Titolo del sito L'ultimo Test Positivo? Avviso automatico? Test automatico? Elimina Testa collegamento
<% response.write rs("id") %> &deapprova=1">NEGA APPROVAZIONE <% response.write rs("approvato") %> &approva=1">DAI APPROVAZIONE " class="style4"> <%titolo=rs("titolosito") titolo=replace(titolo,"%20"," ") titolo=replace(titolo,"%2C",",") titolo=replace(titolo,"%27","'") titolo=replace(titolo,"%3C","<") titolo=replace(titolo,"%3D",">") titolo=replace(titolo,"%22","''") response.write titolo %> <%If rs("testato")=1 then %>&detest=1"> <%else%>&test=1"> <%end if%> <%If rs("avviso")=1 then %>&deavviso=1"> <%else%>&avviso=1"> <%end if%> <%If rs("oktest")>"0" then %>&detestautomatico=1"> <%else%>&testautomatico=1"> <%end if%> "> &az=invisibile"> <%if rs("oktest")=1 then %><%else%> <%end if%>
 

Torna ai contenuti | Torna al menu