NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Runtime.InteropServices;
using System.IO;
using System.Data.SqlClient;

using System.Windows.Forms;
using System.Threading;

namespace Mouse_Tıklatıcı_PRO
{
class sunucu
{
public SqlConnection Baglanti { get; set; }
public int OnlineKisi { get; set; }
public void SQLCOMMAND(string cmd)
{
SqlCommand kmt;
SqlDataReader oku;
switch (cmd)
{
case "kackisi":
try
{
if (BaglantiKapaliysaAc() == false) return;
BaglantiKapaliysaAc();
kmt = new SqlCommand("SELECT * FROM tiklaTablo", Baglanti);
oku = kmt.ExecuteReader();
while (oku.Read())
{
OnlineKisi = int.Parse(oku["Aktif"].ToString());
}
Baglanti.Close();
}
catch { }
break;

case "güncelle":
try
{
if (BaglantiKapaliysaAc() == false) return;

SQLCOMMAND("kackisi");
BaglantiKapaliysaAc();
kmt = new SqlCommand("UPDATE tiklaTablo SET Aktif=@1", Baglanti);
kmt.Parameters.AddWithValue("@1", OnlineKisi + 1);
kmt.ExecuteNonQuery();
SQLCOMMAND("kackisi");
Baglanti.Close();
}
catch (Exception hata) { MessageBox.Show(hata.Message + "n" + hata.StackTrace); }
break;
case "azalt":
try
{
if (BaglantiKapaliysaAc() == false) return;
SQLCOMMAND("kackisi");
BaglantiKapaliysaAc();
kmt = new SqlCommand("UPDATE tiklaTablo SET Aktif=@1", Baglanti);
kmt.Parameters.AddWithValue("@1", OnlineKisi - 1);
kmt.ExecuteNonQuery();
SQLCOMMAND("kackisi");
Baglanti.Close();
}
catch { }
break;
}
}
bool birkere = false;
public bool BaglantiKapaliysaAc()
{

if (!birkere)
{
Baglanti = new SqlConnection("workstation id = fenerbahceBot.mssql.somee.com; packet size = 4096; user id = ozi59_SQLLogin_1; pwd = k6eo4v4gij; data source = fenerbahceBot.mssql.somee.com; persist security info = False; initial catalog = fenerbahceBot; MultipleActiveResultSets = True;");
// Baglanti = new SqlConnection("Data Source=.; Database=emredb;Integrated Security=True");
birkere = true;
}
try {
if (Baglanti.State != System.Data.ConnectionState.Open)
{
Baglanti.Open();
}
return true;
}
catch {
return false;
//MessageBox.Show("Sunucuya Bağlanılamadı!","Class Error");

}
}
public int OnlineKisiBul()
{
SQLCOMMAND("kackisi");
BaglantiKapaliysaAc();
return OnlineKisi;
}
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.