Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
----------------
<?php
$host="localhost";
$db="mydb";
$user="root";
$pass="";
$conn=@mysql_connect($host,$user,$pass) or die("veri tabanı bağlanılamadı");
mysql_select_db($db,$conn) or die("Veri tabanına bağlanılamadı");
mysql_set_charset('latin5',$conn);
?>
------------------
İNDEX PHP
--------------
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Başlıksız Belge</title>
<style>
.login{
width:200px;
height:200px;
position:absolute;
top:50%;
left:50%;
background-color:#0099cc;
color:white;
margin-top:-100px;
margin-left:-100px;
}
button{
border:none;
background-color:#af326a;
width:120px;
height:40px;
color:white;
}
</style>
</head>
<body>
<div class="login">
<form action="login.php" method="post">
<center>
<br />
<br />
<input type="text" name="kadi" placeholder="username"/>
<br />
<br />
<input type="password" name="sifre" placeholder="password" />
<br />
<br />
<button>Giriş</button>
</center>
</form>
</div>
</body>
</html>
-----------------
LOGİN PHP
---------------
<?php
include("ayar.php");
ob_start();
session_start();
$kadi=$_POST["kadi"];
$sifre=$_POST["sifre"];
$sql_check=mysql_query("select * from uyeler where username='".$kadi."' and password='".$sifre."' ") or die(mysql_error());
if(mysql_num_rows($sql_check))
{
$_SESSION["login"]="true";
$_SESSION["user"]=$kadi;
$_SESSIOM["pass"]=$sifre;
header("Location:admin.php");
}
else{
if($kadi=="" or $sifre=="")
{
echo"<center>boş alan bırakmayınız</center>";
echo"<br>";
echo"<center><a href='index.php'>Geri Dön</a></center> ";
}
else
{
echo"<center>Kullanıcı Adı veya Şifre Yanlış";
echo"<br>";
echo"<center><a href='index.php'>Geri Dön</a></center> ";
}
}
ob_end_flush();
?>
---------------
LOGOUT PHP
--------------
<?php
session_start();
ob_start();
session_destroy();
echo"<center>çıkış yaptınız.Ana sayfaya yönlendiriliyorsunuz</center>";
header("Refresh:2; url=index.php");
ob_end_flush();
?>
------------------
ADMİN PHP
-----------
<?php
include("ayar.php");
ob_start();
session_start();
if(!isset($_SESSION["login"]))
{
header("Location:index.php");
}
else{
echo"<center>Admin sayfasına hoşgeldiniz";
echo"<a href='logout.php'>Çıkış Yap</a>";
}
?>
![]() |
Notes is a web-based application for online 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 14 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