<?php
include("Websend.php");
include("baglanti.php");
error_reporting(0);
session_start();
ob_start();
$ayarsor=$db->prepare("SELECT * FROM ayar where ayar_id = ?");
$ayarsor->execute(array(0));
$ayarcek=$ayarsor->fetch();
if($_POST){
$kadi = $_POST["kadi"];
$sifre = md5($_POST["sifre"]);
$kullanicisor=$db->prepare("select * from authme where username=:username and password=:password");
$kullanicisor->execute(array('username' => $kadi,'password' => $sifre));
$say=$kullanicisor->rowCount();
$kullanicibul = $kullanicisor->fetch(PDO::FETCH_ASSOC);
if($say==1){
$_SESSION['user_nick'] = $kullanicibul['username'];
echo "<script>alert('Giriş başarılı, yönlendiriliyorsunuz..')</script>";
header("refresh: 0; url=indexprofil.php");
exit;
} else{
echo " ";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="Shortcut Icon" href="img/favicon.ico" type="image/x-icon">
<title>WebBrick</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<!-- Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="css/animate.css" rel="stylesheet" />
<!-- Malware theme CSS -->
<link href="css/style.css" rel="stylesheet">
<link href="color/default.css" rel="stylesheet">
<!-- =======================================================
Theme Name: WebBrick
Theme URL: Veremeyiz, Batihost.com
Author: BootstrapMade
Author URL: https://bootstrapmade.com
Translater: Malware
Minecraft Version: 1.8,1.9,1.10,1.11
======================================================= -->
</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-custom">
<!-- Preloader -->
<div id="preloader">
<div id="load"></div>
</div>
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
<i class="fa fa-bars"></i>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-right navbar-main-collapse">
<ul class="nav navbar-nav">
<li><a href="index.php">Geri git -></a></li>
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- Section: intro -->
<section id="intro" class="intro">
<div class="slogan">
<h2>Giriş Yap <span class="text_color"></span> </h2>
<h4>Aşağı kaydırın, giriş yapma yerini göreceksiniz.</h4>
</div>
</section>
<!-- /Section: intro -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-12">
<div class="wow shake" data-wow-delay="0.4s">
<div class="page-scroll marginbot-30">
<a href="#intro" id="totop" class="btn btn-circle">
<i class="fa fa-angle-double-up animated"></i>
</a>
</div>
</div>
<html>
<?php include("header.php"); ?>
<body>
<form method="post">
<div id="content">
<br>
<strong>Kullanıcı adı</strong>
<header>
<input type="text" minlength="4" maxlength="16" type="text" name="kadi" /><br />
<header>
<br>
<strong>Şifre</strong>
<header>
<input type="password" minlength="4" maxlength="16" type="text" name="sifre" />
<header>
<input type="submit" value="Tıkla, giriş yap" style="margin-top: 15px">
<br><br>
</div>
</form>
</div>
</form>
<div class="credits">
<!--
All the links in the footer should remain intact.
You can delete the links only if you purchased the pro version.
Licensing information: https://bootstrapmade.com/license/
Purchase the pro version with working PHP/AJAX contact form: Veremeyiz,
-->
<a href="https://discord.gg/Qjb56Ku" target="_blank">WebBrick</a>
</div>
</div>
</div>
</div>
</footer>
<!-- Core JavaScript Files -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.scrollTo.js"></script>
<script src="js/wow.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="js/custom.js"></script>
<script src="contactform/contactform.js"></script>
</body>
</html>
<?php
/*
This project is being developed by MediaRise.
*/
class WebsenderAPI{
public $timeout = 30;
var $host;
var $password;
var $port;
var $socket;
public function __construct($host, $password, $port){
$this->host = gethostbyname($host);
$this->password = $password;
$this->port = $port;
}
public function __destruct(){
if($this->socket)
$this->disconnect();
}
public function connect(){
@$this->socket = fsockopen($this->host, $this->port, $errno, $errstr, $this->timeout);
if(!$this->socket) return false;
@$this->writeRawByte(1);
@$this->writeString(hash("SHA512", $this->readRawInt().$this->password));
return $this->readRawInt() == 1 ? true: false;
}
public function sendCommand($command){
$this->writeRawByte(2);
$this->writeString($command);
return $this->readRawInt() == 1 ? true: false;
}
public function disconnect(){
if(!$this->socket) return false;
return $this->writeRawByte(3) ? true: false;
}
private function writeRawInt($i){
@fwrite($this->socket, pack("N", $i), 4);
}
private function writeRawByte($b){
@fwrite($this->socket, strrev(pack("C", $b)));
}
private function writeString($string){
$array = str_split($string);
$this->writeRawInt(count($array));
foreach($array as &$cur){
$v = ord($cur);
$this->writeRawByte((0xff & ($v >> 8)));
$this->writeRawByte((0xff & $v));
}
}
private function readRawInt(){
$a = $this->readRawByte();
$b = $this->readRawByte();
$c = $this->readRawByte();
$d = $this->readRawByte();
$i = ((($a & 0xff) << 24) | (($b & 0xff) << 16) | (($c & 0xff) << 8) | ($d & 0xff));
if($i > 2147483648)
$i -= 4294967296;
return $i;
}
private function readRawByte(){
$up = unpack("Ci", fread( $this->socket, 1));
$b = $up["i"];
if($b > 127)
$b -= 256;
return $b;
}
}
?>
sitenin ftpsinde websend yazan sadece bu var
WebSenderAPI.php:<?php /* This project is being developed by MediaRise. */ class WebsenderAPI{ public $timeout = 30; var $host; var $password; var $port; var $socket; public function __construct($host, $password, $port){ $this->host = gethostbyname($host); $this->password = $password; $this->port = $port; } public function __destruct(){ if($this->socket) $this->disconnect(); } public function connect(){ @$this->socket = fsockopen($this->host, $this->port, $errno, $errstr, $this->timeout); if(!$this->socket) return false; @$this->writeRawByte(1); @$this->writeString(hash("SHA512", $this->readRawInt().$this->password)); return $this->readRawInt() == 1 ? true: false; } public function sendCommand($command){ $this->writeRawByte(2); $this->writeString($command); return $this->readRawInt() == 1 ? true: false; } public function disconnect(){ if(!$this->socket) return false; return $this->writeRawByte(3) ? true: false; } private function writeRawInt($i){ @fwrite($this->socket, pack("N", $i), 4); } private function writeRawByte($b){ @fwrite($this->socket, strrev(pack("C", $b))); } private function writeString($string){ $array = str_split($string); $this->writeRawInt(count($array)); foreach($array as &$cur){ $v = ord($cur); $this->writeRawByte((0xff & ($v >> 8))); $this->writeRawByte((0xff & $v)); } } private function readRawInt(){ $a = $this->readRawByte(); $b = $this->readRawByte(); $c = $this->readRawByte(); $d = $this->readRawByte(); $i = ((($a & 0xff) << 24) | (($b & 0xff) << 16) | (($c & 0xff) << 8) | ($d & 0xff)); if($i > 2147483648) $i -= 4294967296; return $i; } private function readRawByte(){ $up = unpack("Ci", fread( $this->socket, 1)); $b = $up["i"]; if($b > 127) $b -= 256; return $b; } } ?>
dediğin şekilde dosyanin ismini değiştirdim gine aynı sanırımDosya ismi yanlış, yada dosya yok. Dosyanın ismini Websend.php değiştirin.