<!DOCTYPE html>
<html>
<head>
<style>
.btn {
display: inline-block;
padding: 10px 20px;
font-size: 18px;
color: #fff;
background-color: #007bff;
border-radius: 6px;
border: none;
cursor: pointer;
perspective: 1000px;
position: relative;
transition: transform 0.3s;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.2);
border-radius: 6px;
transform: rotateX(90deg) translateZ(-10px);
transition: transform 0.3s;
}
.btn:hover {
transform: rotateX(-20deg);
}
.btn:hover::before {
transform: rotateX(0deg) translateZ(-10px);
}
</style>
</head>
<body>
<button class="btn">PHPsUz</button>
</body>
</html>
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
HTML da 3D tugma โบ
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
Please open Telegram to view this post
VIEW IN TELEGRAM
๐1๐1
session_start();
function generateCaptcha() {
$captcha = "";
$length = 6; // Captcha uzunligi
$characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$characters_length = strlen($characters);
for ($i = 0; $i < $length; $i++) {
$captcha .= $characters[rand(0, $characters_length - 1)];
}
$_SESSION['captcha'] = $captcha; // Captcha ni sesiyaga saqlash
// Captcha rasmini generatsiya qilish
$image = imagecreatetruecolor(120, 40);
$background_color = imagecolorallocate($image, 255, 255, 255);
$text_color = imagecolorallocate($image, 0, 0, 0);
imagefilledrectangle($image, 0, 0, 120, 40, $background_color);
// Captcha ni rasmda ko'rsatish
imagettftext($image, 20, 0, 10, 30, $text_color, 'path/to/font.ttf', $captcha);
// Captcha rasmini chiqarish
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
}
function validateCaptcha($userInput) {
if (isset($_SESSION['captcha']) && !empty($_SESSION['captcha'])) {
$captcha = $_SESSION['captcha'];
unset($_SESSION['captcha']); // Sesiyadan captcha ni o'chirish
// Kiritilgan captcha ni tekshirish
if (strtolower($userInput) === strtolower($captcha)) {
return true;
}
}
return false;
}
// Captcha rasmini generatsiya qilish uchun "captcha" buyrug'ini qabul qilish
if (isset($_GET['captcha'])) {
generateCaptcha();
exit();
}
// Captcha ni tekshirish uchun "validate" buyrug'ini qabul qilish
if (isset($_GET['validate'])) {
$userInput = $_GET['validate'];
$isValid = validateCaptcha($userInput);
if ($isValid) {
echo "Captcha to'g'ri.";
} else {
echo "Captcha noto'g'ri.";
}
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Captcha</title>
</head>
<body>
<form action="" method="POST">
<p>Captcha rasmini ko'rish uchun <strong>/captcha</strong> buyrug'ini kiriting:</p>
<img src="?captcha" alt="Captcha">
<br>
<input type="text" name="captcha_input" placeholder="Captcha ni kiriting">
<button type="submit">Tekshirish</button>
</form>
</body>
</html>
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
๐ก Captcha โFuncโ
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
๐งณ Dasturlash tili (PHP)
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
๐จโ๐ป Dasturchi @Axi_jons
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
๐ Manba @PHPsUz
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
require 'vendor/autoload.php';
use Telegram\Bot\Api;
use GuzzleHttp\Client;
$telegram = new Api('BOT_TOKEN');
$telegram->commandsHandler(true);
$telegram->onCommand('start', function($update) use ($telegram){
$chatId = $update->getMessage()->getChat()->getId();
$telegram->sendMessage([
'chat_id' => $chatId,
'text' => 'Salom! Men tarjimon botman. Matningizni tarjima qilish uchun /tarjima buyrug\'ini kiriting.'
]);
});
$telegram->onCommand('tarjima', function($update) use ($telegram){
$chatId = $update->getMessage()->getChat()->getId();
$text = $update->getMessage()->getText();
// Tarjimonlik uchun API so'rovini tashkil etish
$apiKey = 'API_KEY';
$url = "https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=en&dt=t&q=" . urlencode($text);
// API ga so'rovni jo'natish
$client = new Client();
$response = $client->request('GET', $url);
$data = json_decode($response->getBody(), true);
if (isset($data[0][0][0])) {
$translation = $data[0][0][0];
$telegram->sendMessage([
'chat_id' => $chatId,
'text' => "Tarjima: $translation"
]);
} else {
$telegram->sendMessage([
'chat_id' => $chatId,
'text' => 'Kechirasiz, tarjima amalga oshmadi.'
]);
}
});
$telegram->run();
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
ใ๏ธ Tarjimon bot
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
โขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโขโข
Please open Telegram to view this post
VIEW IN TELEGRAM
๐2
๐พ6๐3
react-ferror.zip
51.7 MB
โค2๐1
Please open Telegram to view this post
VIEW IN TELEGRAM
โคโ๐ฅ4๐1
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
โค1๐1
Please open Telegram to view this post
VIEW IN TELEGRAM
๐9๐1
AuksionerUZ.zip
10.3 KB
Dasturlash tili: PHP
Ma'lumot Baza: MySQL
Shuningdek;
Koddagi xatolikni bartaraf etishda, @guycoder va @king_0958 ishtirok etgan))
Please open Telegram to view this post
VIEW IN TELEGRAM
๐๐๐๐๐จ๐๐๐ซ ๐๐๐๐ฆ
AuksionerUZ.zip
Please open Telegram to view this post
VIEW IN TELEGRAM
๐2
Forwarded from ๐๐ช๐ฎ ๐พ๐ค๐๐๐ง๐จ (๐๐ช๐ฎ๐พ๐ค๐๐๐ง < / > |)
@FasterSimBot(@GuyCoder).zip
15.8 KB
Kod 100% Ishlaydi 1-2 ta Hatolari bor
Please open Telegram to view this post
VIEW IN TELEGRAM
๐6
This media is not supported in your browser
VIEW IN TELEGRAM
Kim qo'shiladi๐๐คฆ๐ปโโ๏ธ๐
๐4๐ณ1๐ฏ1