HEX
Server: Apache
System: Linux srv4.garantili.com.tr 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ekspardev (1006)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/ekspardev/www/tubisad/rapor/panel/login.php
 <? 
 ob_start();
session_start(); 
header('Content-Type: text/html; charset=utf-8'); 

include 'functions-developmenta.php'; 

 
 
 
if (($_REQUEST['guvenlik_kodu'] == $_SESSION['guvenlik_kodu'])){ 
 

  $email=p("email");
  $sifre=p("password");
 
  $sifre=$func->ToPass($sifre);   
 
 
 
if ($email and  $sifre)
{ 
  $s  = "select * from users where email = '$email' and password='$sifre' ";
$q  = $func->query($s);
$rs = $q->fetch();  
  
if ($rs->id)
{	 
	 
$_SESSION['email']=$rs->email;
$_SESSION['password']=$rs->password; 
$_SESSION['user_id']=$rs->id;
$_SESSION['name']=$rs->name;
$_SESSION['surname']=$rs->surname; 
 

//echo "<script language=\"javascript\">alert(\"Giriş Başarılı\")</script>"; 
header("location: home");
 
}

else
{ 

echo "<script language=\"javascript\">alert(\"Giriş Hatalı\")</script>"; 
header("location: login");

}	

	
}

}



?>
 
 <style>
       
       * {
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: sans-serif;
    text-decoration: none;
}

body{
    display:flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background:#ecf0f3;
    color:#555;
}

.container{
    display:flex;
    flex-direction: column;
    align-items: center;
    width:450px;
    padding:3rem 1rem 3rem 1rem;
    background:#ecf0f3;
    border-radius:2rem;
    box-shadow: 1rem 1rem 2rem #cbced1,
                -1rem -1rem 2rem #ffffff;
}

.logo{
    background: url(./img/qarantili -2.svg);
    width:150px;
    height:150px;
    background-size:80%;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 50%;
    margin-bottom:1rem;
    border:solid 5px #ffffff;
    box-shadow: .5rem .5rem 1rem #cbced1,
                -.5rem -.5rem 1rem #ffffff;
}



.title{
    font-size:1.5rem;
    letter-spacing: .5px;
    margin-bottom: 0.5rem;
}

.subtitle{
    font-size:1.2rem;
    padding-top:.5rem;
    letter-spacing: 3px;
    margin-bottom:2rem;
}

.subtitle a{
    color:currentColor;
}

input, button{
    width:70%;
    background:none;
    border:none;
    outline: none;
    padding:1rem 2rem;
    margin-bottom:2rem;
    border-radius: 2rem;
}

input{
    box-shadow: inset .5rem .5rem 1rem #cbced1,
                inset -.5rem -.5rem 1rem #ffffff;
}

button{
    cursor:pointer;
    font-size:1rem;
    background:#282828;
    color:white;
    transition: background .5s;
    box-shadow:  5px 5px 10px #cbced1,
                 -5px -5px 10px #ffffff;
}

button:hover{
    background:#ffa200;
}

button:active{
    background:#1da88a;
}

.links{
    color:lightgray;
}

.links a {
    color:currentColor;
    text-decoration: none;
    font-size:.8rem;
}

.links a:hover{
    color:#ff9500;
}
   </style>
   
  <title>TÜBİSAT</title> 
   <form  action="login.php"  method="POST" >

    <div class="container"> 
        <div> </div> 
        <div class="title" style="font-size:15px;">TÜBİSAT RAPOR SİSTEMİ</div>
        <p style="color:red; margin-bottom:15px;"></p>
        <input type="username" name="email" placeholder="Kullanıcı Adı" required/>
        <input type="password" name="password" placeholder="Şifre" required/>
        <img class="guvenlik_kodu" src="guvenlik-kodu.php"> <br>
		<input type="text" placeholder="kodu girin" name="guvenlik_kodu">
        <input type="hidden" value="1" name="login" />
        
        <button type="submit">GİRİŞ</button>
     
    </div>
    
    </form>