شه‌ممه‌ 8 گوڵان 2724

دروستکردنی پانێلێک به پی ئیچ پی


سمێل قیت

چۆنێتی دروستکردنی پانێلێک بۆ چوونه‌ ژووره‌وه‌

دروستکردنی پانێلێک به پی ئێچ پی

دروستکردنی په‌‌‌ڕه‌‌‌ی index.php
PHP:

<html>
<head>
<title>KURDIT.NET</title>

<link rel="stylesheet" href="style.css">
</head>
<body>
<form action="kurd.php" method="POST">
<div class="kurd">
<h1>خۆشەویستی بیت.</h1>

<!-- -->

<input type="text" name="username" placeholder="ناوی بەکارهێنەر">
<input type="text" name="password" placeholder="تێپەڕەوشە">
<input type="submit" value="چوونەژوورەوە" class="btn">
</div>
</form>
</body>
</html>

 


دروستکردنی په‌‌‌ڕه‌‌‌ی style.css

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600&display=swap');

body{
background-color: #fff;
font-family: 'Rajdhani', sans-serif;
}

.kurd{
padding: 10px;
background-color: #1a1a1a;
border-radius: 10px;
width: 500px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
box-shadow: 0px 2px 50px 0px rgba(0, 0, 0, .5);
}
.kurd input[type="text"]{
padding: 10px;
background-color: transparent;
display: block;
width: 100%;
margin-bottom: 15px;
border: none;
outline: none;
color: #fff;
transition: 250ms all;
background-image: linear-gradient(90deg, #fff 100%, #fff 0%);
background-repeat: no-repeat;
background-size: 0% 2px;
background-position: bottom center;
}
.kurd input[type="text"]:focus{
background-size: 100% 2px;
}

 

 


.kurd .btn{
padding: 10px;
width: 200px;
background-color: #fff;
border: none;
outline: none;
border-radius: 7px;
margin-bottom: 15px;
transition: 250ms all;
}
.kurd .btn:hover{
background-color: #1a1a1a;
box-shadow: 0px 0px 0px 2px #fff;
color: #fff;
}


First of all, into our data.php file
.
PHP:

<?php
// دەتوانی دێری ناوی بەکارهێنەر و تێپەڕەوشەی بۆ ئەم پەڕەیە دابنێیت
$username = "KURDITNETXXXX";
$password = "WOFWXXXXXXOF"
?>


دروستکردنی په‌‌‌ڕه‌‌‌ی login.php

<?php

include ("data.php");


Diyar Parw
please complete it all
Sure, here is the rest of the code translated into Kurdish:

Copy code
$username = $pass;
header("Location:admin.php");
} else{ // ئەگەر نادروستی دەیەوێ پەیامێک بۆ دەرەوە ڕویدەدەی
echo "
<style>
.error{
padding: 10px;
background-color: #ff0000;
border-radius: 10px;
width: 500px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #000;
box-shadow: 0px 2px 50px 0px rgba(255, 26, 5, .5);
}

</style>

<div class='error'>

<p>زانیارییەکانی چەندینی خۆت دەردەکەوێت.</p>
<p>دوایین ناوبەریدەرییە

 

Diyar Parw
complete it without me telling you to do it all the time
Sure, here is the rest of the code translated into Kurdish:

Copy code
.

</div>

";
header("Refresh: 2; url=index.php");
exit;
}

ob_end_flush();

?>

 


دروستکردنی په‌‌‌ڕه‌‌‌ی logout.php

 

<?php

session_start();
ob_start();
session_destroy();

echo "
<style>
.error{
padding: 10px;
background-color: #ff0000;
border-radius: 10px;
width: 500px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #000;
box-shadow: 0px 2px 50px 0px rgba(255, 26, 5, .5);
}
</style>

<div class='error'>

<p>زانیارییە نادروستییە.</p>
<p>دوایین ناوبەریدەرییەکەت دەرەوە.</p>

</div>
";
header("Refresh: 2; url=index.php");
exit;
ob_end_flush();
?>


دروستکردنی په‌‌‌ڕه‌‌‌ی admin.php

<?php

include ("data.php");
session_start();
if(!isset($_SESSION["login"])){
echo "
<style>
.error{
padding: 10px;
background-color: #ff0000;
border-radius: 10px;
width: 500px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #000;
box-shadow: 0px 2px 50px 0px rgba(255, 26, 5, .5);
}

</style>

<div class='error'>

<p>لەوانەیە تۆ نەچوویتە ژوورەوە.</p>

</div


";
header("Refresh: 2; url=index.php");
exit;
} else{
$isim = $_SESSION["username"];

echo "

<h1>بەخێربێیت </h1>

<a href='logout.php'>دەرەوەی ژوورەوە<a>

";
}
?>

photo
2022/12/29 10:29:13

1 ساڵ و 3 مانگ و 4 کاتژمێر و 42 خوله‌ک ، پێش بڵاوکراه‌وه‌ته‌وه‌
تاگ : چۆنێتی,دروستکردنی,پانێلێک,بۆ,چوونه‌,ژووره‌وه‌

په‌یوه‌ندی


 ئیم‌یل 

[email protected]
[email protected]

 

به‌سته‌ره‌کان


1/ د‌ربار‌ی کورد ئایتی

2/  ئ‌ندام‌تی

3/ م‌رج‌کانی ئ‌ندام‌تی

4/ پرۆژ‌کانمان

 

 

کورد ئایتی ©