• 24-10-2008, 21:08:56
    #1
    selam arkadaslar bende bir seslichat site acdim paneli asp ve cookie larda sorun var sanirim dusunceme gore sorun su arkadaslar

    giris yapiyorum uye ismimle ve sonra aradan cok kisa bir sunra cikis yapmis oluyorum bunu nasil uzun yapabilirim cikmamasi icin cikis yapmadan dusmesin istiyorum
    cookie ayarlama yeride yok bunu nerden duzenliyebilirim ve nASIL bilginiz varmi

    Sesli Sohbete Giris bu sistem arkadaslar

    simdiden herkese cok tesekurler allah razi olsun arkadaslar
  • 24-10-2008, 21:29:52
    #2
    inc diye bir bolumde bu var burdan bi ayar olabilirmi acaba bi incelermisiniz

    <% Vt_Pth=Server.Mappath(""&data&".mdb")
    Cumle= "DBQ="& Vt_Pth &";Driver={Microsoft Access Driver (*.mdb)}" %>
    <%

    Set Baglanti=Server.CreateObject("Adodb.Connection")
    Baglanti.Open Cumle



    Set Rss=Server.CreateObject("Adodb.Recordset")
    Sorgu="select * from Yrumuzlar where rumuz = '" & request.form("rumuz")& "' "
    Rss.Open Sorgu,connect, 1, 3
    Set Rss=Server.CreateObject("Adodb.Recordset")
    Sorgu="select * from acik where rumuz = '" & request.form("rumuz")& "' "
    Rss.Open Sorgu,connect, 1, 3
    Set Rss=Server.CreateObject("Adodb.Recordset")
    Sorgu="select * from acik where sifre = '" & request.form("sifre")& "' "
    Rss.Open Sorgu,connect, 1, 3
    If RSs.BOF And RSs.EOF Then
    Response.Write ""


    Set Rs=Server.CreateObject("Adodb.Recordset")
    Sorgu="select * from UYELER where rumuz = '" & request.form("rumuz") & "' and sifre = '" & Request.form("sifre") & "'"
    Rs.Open Sorgu,connect, 1, 3
    If RS.BOF And RS.EOF Then
    Response.Write ""
    %>
    <script>alert("Şifreni Yada Kulanıcı Adınız Yanlış Yada Daha Onaylanmış...");history.go(-1)</script>
    <%
    else %>
    <%
    if Rs("mode")=0 Then
    %>
    <script>alert("Siz Normal Üyesiniz Lütfen Normal Üye Girişinden Yapınız...");history.go(-1)</script>
    <% else %>
    <%
    if Rs("mode")=1 Then %>
    <script>alert("Siz Operatorsunuz Lütfen Yetkili Girisi Yapiniz...");history.go(-1)</script>

    <%
    else %>
    <%
    if Rs("mode")=2 Then %>
    <script>alert("Siz Adminsiniz Lütfen Yetkili Girisi Yapiniz...");history.go(-1)</script>

    <%
    else %>
    <%
    if Rs("mode")=3 Then %>
    <script>alert("Siz CoAdminsiniz Lütfen Yetkili Girisi Yapiniz...");history.go(-1)</script>

    <%
    else %>
    <%
    if Rs("mode")=4 Then %>
    <script>alert("Siz Super Adminsiniz Lütfen Yetkili Girisi Yapiniz...");history.go(-1)</script>

    <%
    else %>

    <%
    if Rs("mode")=9 Then
    %>
    <script>alert("Siz Mavi rumuz uyesisiniz Lütfen Mavi Rumuz Girisi Yapınız...");history.go(-1)</script>
    <%
    else %>
    <%
    if request.form("rumuz")="'or'" Then
    %>
    <script>alert("ne yapmaya calisiyon laaaaaaaaaaaa");history.go(-1)</script>
    <%
    else %>
    <%
    if Rs("aktif")=0 Then %>
    <script>alert("yetkiniz Dondurulmus yonetici ile irtibata gecin...");history.go(-1)</script>

    <%
    else %>
    <%
    Response.Write ""
    Session("Uyemi")=1
    session("sitechat")=Rs("sitechat")

    session("rumuz")=rs("rumuz")
    session("sifre")=rs("sifre")
    if ayar("coklurenky")=0 then
    Session("Rrengi")=request.form("ozelrenk")
    end if
    if ayar("coklurenky")=1 then
    Session("Rrengi")=ayar("yetkiRengi")
    end if
    if rs("Rrengi")<>"" then
    Session("Rrengi")=rs("Rrengi")
    end if


    if rs("cinsiyet")=0 then
    Session("cinsiyet")=1
    end if
    if rs("cinsiyet")=1 then
    Session("cinsiyet")=0
    end if
    if ayar("cokluikonY")=0 then
    Session("cinsiyet")=request.form("ikon")
    end if
    if rs("icon")<>"" then

    Session("cinsiyet")=rs("icon")
    end if
    Session("OzeleAlma")=rs("OzeleAlma")
    Session("Ozeleyazma")=rs("Ozeleyazma")
    Session("uyeID")=rs("UyeID")
    Session("yetki")=rs("mode")
    Session("yetki1")=rs("yetki1")


    Session("loglar")=rs("loglar")
    Session("logsil")=rs("logsil")
    Session("logbanla")=rs("logbanla")
    Session("banlar")=rs("banlar")
    Session("bansil")=rs("bansil")
    Session("bankayit")=1
    Session("rumuzyasakla")=rs("rumuzyasakla")
    session.timeout = 999

    rs("sonIP")=Request.ServerVariables("REMOTE_ADDR" )
    rs("sontarih")=now()
    rs.update

    set Mesajlar = Server.CreateObject("ADODB.RecordSet")
    SQL="select * from LOGLAR"
    Mesajlar.open SQL,connect,1,3
    mesajlar.addnew
    mesajlar("rumuz")=request.form("rumuz")
    mesajlar("tarih")=now()
    mesajlar("IP")=Request.ServerVariables("REMOTE_ADD R")
    mesajlar("uyemi")=1
    mesajlar("yetki")=rs("mode")
    mesajlar("banlimi")=0
    mesajlar.update
    Response.Redirect "sohbet.asp"
    %>
    asdsad
    <%
    end if
    end if
    end if
    end if
    end if
    end if
    end if
    end if
    end if
    else

    %>
    <script>alert("Bu Rumuz Yöneticiler Tarafından yasaklanmıştır...");history.go(-1)</script>
    <%
    end if
    %>
  • 24-10-2008, 23:53:55
    #3
    bu da login sayfasinin giris sayfasinn kodlari
    Alıntı

    <script src="fade.js" language="Javascript"></script>

    <html>
    <head>
    <title><%=SiteAdi%></title>

    <LINK
    href="inc/style.gif" type=text/css rel=stylesheet>
    <STYLE type=text/css>BODY {
    MARGIN-TOP: 5px; BACKGROUND-COLOR: #<%=at("loginarka")%>
    }
    </STYLE>

    <script language="JavaScript">
    <!--
    function namosw_cell_rollover(cell, classname) {
    if (document.all || document.getElementById) {
    cell.classBackup = cell.className;
    cell.className = classname;
    }
    }

    function namosw_cell_rollout(cell)
    {
    if (document.all || document.getElementById) {
    cell.className = cell.classBackup;
    }
    }
    // -->
    </script>
    <script language="JavaScript">
    <!--
    function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
    {
    toolbar_str = toolbar ? 'yes' : 'no';
    menubar_str = menubar ? 'yes' : 'no';
    statusbar_str = statusbar ? 'yes' : 'no';
    scrollbar_str = scrollbar ? 'yes' : 'no';
    resizable_str = resizable ? 'yes' : 'no';

    cookie_str = document.cookie;
    cookie_str.toString();

    pos_start = cookie_str.indexOf(name);
    pos_end = cookie_str.indexOf('=', pos_start);

    cookie_name = cookie_str.substring(pos_start, pos_end);

    pos_start = cookie_str.indexOf(name);
    pos_start = cookie_str.indexOf('=', pos_start);
    pos_end = cookie_str.indexOf(';', pos_start);

    if (pos_end <= 0) pos_end = cookie_str.length;
    cookie_val = cookie_str.substring(pos_start + 1, pos_end);
    if (cookie_name == name && cookie_val == "done")
    return;

    window.open(url, name, 'left='+left+',top='+top+',width='+width+',height= '+height+',toolbar='+toolbar_str+',menubar='+menub ar_str+',status='+statusbar_str+',scrollbars='+scr ollbar_str+',resizable='+resizable_str);
    }

    // -->
    </script>


    /*Dynamicdrive.com*/
    //put your text here -- MESAJINIZ BURAYA
    var theText = "<%=SiteAdi%>";

    function nextSize(i,incMethod,textLength)
    {
    if (incMethod == 1) return (30*Math.abs( Math.sin(i/(textLength/3.14))) );
    if (incMethod == 2) return (255*Math.abs( Math.cos(i/(textLength/3.14))));
    }

    function sizeCycle(text,method,dis)
    {
    output = "";
    for (i = 0; i < text.length; i++)
    {
    size = parseInt(nextSize(i +dis,method,text.length));
    output += "<font color=fffff style='font-size: "+ size +"pt'>" +text.substring(i,i+1)+ "</font>";
    }
    theDiv.innerHTML = output;
    }

    function doWave
    {
    sizeCycle(theText,1,n);
    if (n > theText.length) {n=0}
    setTimeout("doWave(" + (n+1) + ")", 180);
    }








    </script>








    <div ID="theDiv" align="center">
    </div>
    <body onload="doWave(0)">
    </td>
    </tr>
    <tr>
    <td width="126" bordercolordark="black" bordercolorlight="black" height="25" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati')" background="Resim/<%=at("buttonnayt")%>">
    <p align="center"><b>
    <a class=loginmenu href="login.asp?islem=m" target="_self" style="text-decoration: none">Misafir Girisi</a></b></p>
    </td>
    <td width="126" height="25" bordercolordark="black" bordercolorlight="black" background="Resim/<%=at("buttonnayt")%>" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati')">
    <p align="center">
    <a class=loginmenu href="login.asp?islem=u" style="text-decoration: none; font-weight: 700">Uye Girisi</a></p>
    </td>
    <td width="126" height="25" bordercolordark="black" bordercolorlight="black" background="Resim/<%=at("buttonnayt")%>" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati')">
    <p align="center"><b>
    <a class=loginmenu href="login.asp?islem=mr" style="text-decoration: none">Mavi Rumuz</a></b></p>
    </td>
    <td width="126" height="25" bordercolordark="black" bordercolorlight="black" background="Resim/<%=at("buttonnayt")%>" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati')">
    <p align="center"><a class=loginmenu href="login.asp?islem=y">
    <span style="text-decoration: none; font-weight: 700">Yetkili Giris</span>i</a></p>
    </td>
    <td width="202" height="25" bordercolordark="black" bordercolorlight="black" background="Resim/<%=at("buttonnayt")%>" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati')">
    <p align="center"><a href="login.asp?islem=y" style="text-decoration: none">
    <font color="#FFFFFF"><b>Super Admin</b></font></a></td>
    <td width="113" height="25" bordercolordark="black" bordercolorlight="black" background="Resim/<%=at("buttonnayt")%>" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati')">
    <p align="center"><b>
    <a class=loginmenu href="login.asp?islem=cm" style="text-decoration: none">Chatmaster</a></b></p>
    </td>
    </tr>
    </table>
    <p align="center">
    <%
    if (Request.QueryString("islem"))="1" then
    %>
    <% if ayar("YeniUyeDurum")=0 then %>
    <script>alert("Yeni Üyelik Kaydı Yönetici Tarafinda Kapatilmistir...");history.go(-1)</script>
    <% end if %>
    <!--#include file="inc/uyeol.asp" -->
    <% else %>
    <% if (Request.QueryString("islem"))="m" then %>
    <% if ayar("misafirDurum")=0 then %>
    <script>alert("Misafir Girisi Yönetici Tarafında Kapatılmıştır...");history.go(-1)</script>
    <% end if %>

    </p>
    <p align="center"></p>
    <table width="779" cellpadding="0" cellspacing="0" align="center">
    <form action="giris.asp?login=1" method=post ID=Form1>
    <tr>
    <td width="779">


    <p align="center">
    <font class="yazi1">
    <font color="white"><a class=yazi1 href="#">Rumuzunuzu Yazin</a></font><br>
    <input size=15 name="rumuz" class="formalani" id="test">

    </p>


    </p>
    <p align="center"> <input name="misafir" type="submit" class="formalani" id="misafir" value="GIRIS">
    </p>




    </td>

    </p>
    <p align="center"> <input name="misafir" type="submit" class="formalani" id="misafir" value="GIRIS">

    </p>

    </td>
    </tr>
    </table>
    <p align="center">
    <% else %>
    <%
    if (Request.QueryString("islem"))="mr" then
    %>
    <% if ayar("mrDurum")=0 then %>
    <script>alert("Mavi Rumuz Girisi Yönetici Tarafında Kapatılmıştır...");history.go(-1)</script>
    <% end if %>
    </p>
    <table width="779" align="center" cellpadding="0" cellspacing="0">
    <form action="giris.asp?login=4" method=post ID=Form1>
    <tr>
    <td width="779">
    <p align="center">
    <font class="yazi1"><font color="white"><a class=yazi1 href="#">Rumuzunuz</a></font><br>
    <input size=15 name="rumuz" class="formalani">
    <br>
    <font class="yazi1"><font color="white"><a class=yazi1 href="#">Sifreniz</a></font><br>
    <input size=15 name="sifre" type="password" class="formalani">
    </p>
    <fieldset><legend><font class="yazi1"><a class= yazi1 href="#">Ikon Secenegi</a></font></legend>
    <p class=yazi1 align="center">
    <% if ayar("cokluikonMR")=1 then %>
    <a class=yazi1 href="#">Mavi Rumuzlularin Coklu ikon secenegi Yonetim Tarafindan kapatilmistir...</a></p>





    <fieldset><legend><font class="yazi1"><a class=yazi1 href="#">Renk Secenegi</a></font></legend></p>
    <p align="center">
    <% if ayar("coklurenky")=1 then %>
    </p>
    <p class= yazi1 align="center"><a class=yazi1 href="#">Yetkililerin Renk secenegi Yonetim Tarafindan kapatilmistir... </a></p>
    <center>
    <p><% end if %>
    </p>
    <p align="center"><% if ayar("coklurenky")=0 then %> <img src="ozelrenk/ffffff.jpg" width="50" height="16">

    <br> </fieldset>
    </p>

    <input name="misafir" type="submit" class="formalani" id="misafir" value="GIRIS">
    </td>
    </tr>
    </table>
    <% else %>
    <table width="780" cellpadding="0" cellspacing="0" align="center">
    <form action="giris.asp?login=1" method=post ID=Form1>
    <tr>
    <td width="780">
    <fieldset><legend><font class="yazi1"><a class=yazi1 href="#"> Genel Duyuru </a></font></legend>

    <p align="center"><MARQUEE scrollAmount="3" scrollDelay="0" onMouseOver="this.stop()" onMouseOut="this.start()">
    <font class="yazi7"><span><a class=yazi1 href="#"><%=ayar("ophaber")%>
    </a></span></font></MARQUEE></p>

    </FIELDSET>
    <fieldset style="width: 780px; height: 12px"><legend><font class="yazi1"><a class=yazi1 href="#"> Reklam Alanı </a></font></legend>

    <p align="center"><!--#include file="reklam.asp" --></p>

    </FIELDSET>

    <fieldset><legend>
    <font class="yazi1">
    <a class=yazi1 href="#"> Kisa
    Mesaj </a></font></legend>

    <p align="center"><MARQUEE scrollAmount="3" scrollDelay="0" onMouseOver="this.stop()" onMouseOut="this.start()">
    <font class="yazi7"><span><a class=yazi1 href="#"><%=ayar("adminhaber")%>
    </a></span></font></MARQUEE></p>

    </FIELDSET><table cellpadding="0" cellspacing="0" width="779" height="61">
    <!-- MSTableType="layout" -->
    <tr>
    <td width="336" valign="top">
    <div align="center">
    <table border="1" cellpadding="0" style="border-collapse: collapse" width="334" id="table1" bordercolorlight="#800000" bordercolordark="#800000" bordercolor="#800000" height="61">
    <tr>
    <td height="22">
    <p align="center">
    <b>Tavsiye
    Ekran
    Cozunurlugu
    En Az 1024 -
    768</b></td>
    </tr>
    <tr>
    <td>
    <p align="center"><!--#include file="ekranicoz.asp" --></p>
    </td>
    </tr>
    </table>
    </div>
    </td>
    <td width="210" valign="top">
    <div align="center">
    <table border="1" cellpadding="0" style="border-collapse: collapse" width="100%" id="table2" bordercolorlight="#800000" bordercolordark="#800000" height="61">
    <tr>
    <td height="22">
    <p align="center">
    <b>ip
    Adresiniz
    Guvelink
    Kayit<br>
    TC internet
    Guvelik B.D</b></td>
    </tr>
    <tr>
    <td>
    <script language="javascript" src="http://kod.anime.web.tr/ipadres2.php"></script></td>
    </tr>
    </table>
    </div>
    </td>
    <td valign="top" height="61" width="233">
    <div align="center">
    <table border="1" cellpadding="0" style="border-collapse: collapse" width="100%" id="table3" bordercolorlight="#800000" bordercolordark="#800000" height="61">
    <tr>
    <td height="22">&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <p align="center">
    <% end if %>
    <% end if %>
    <% end if %>
    <% end if %>
    <% end if %>
    <% end if %>
    </p>
    <table border="1" width="106%" cellspacing="0" bordercolordark="white" bordercolorlight="black" background="Resim/<%=at("altnaytgiris")%>">
    <tr>
    <td width="82" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati1')" align="center">
    <p align="center"><b><font face="Lucida Calligraphy"><a class=yazi1 href="login.asp?islem=1" target="_self">
    UYE OL </a></font></b></p>
    </td>
    <td width="140" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati1')" align="center">
    <p align="center"><b><font face="Lucida Handwriting"><a class=yazi1 href="agent.asp" target="_blank" >AGENTMASTER</a></font></b></p>
    </td>
    <td width="149" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati1')" align="center">
    <p align="center"><b><font face="Lucida Handwriting">
    <a href="javascript:void%20window.open('dftrorj/default.asp','','width=690,height=620,left=0,top=0 ')">
    <font color="#FFFFFF">Soru Cevaplar</font></a></font></b></td>
    <td width="167" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati1')" align="center">
    <b><font face="Lucida Handwriting">
    <a class=yazi1 href="agent.asp" target="_blank" >
    GiREMiYORUM</a></font></b></td>
    <td width="220" OnMouseOut="namosw_cell_rollout(this)" OnMouseOver="namosw_cell_rollover(this, 'nmsw_ati1')">
    <b>
    <p align="center"><b><font face="Lucida Handwriting"><a class=yazi1 href="agent.asp" target="_blank" >SPEAKY AKTiViTASYON</a></font></p>
    </td>
    </tr>
    </table>
    </td>
    <td width="54" height="396" background="Resim/<%=at("naytvista1")%>">
    <p align="center">&nbsp;</p>
    </td>
    </tr>
    <tr>
    <td width="811" colspan="3" background="Resim/<%=at("naytvista4")%>" height="23">
    <p align="center">&nbsp;</p>
    </td>
    </tr>
    </table>