- 19 Mar 2017
- 598
- 0
Arkadaşlar internette araştırdım bulamadım
curl ile oturum açma yı yazdım aynısını oldu fakat 1-2 saniye sonra tekrardan olmadı bazı şeylerden dolayı olmamış ola bilir
index.html
deneme.php
BÖYLE YAPINCA
böyle oluyor HERE YE TIKLAYINCA subdomain.abcdefsitesi.com AÇILIYOR NE YAPMALIYIM?
curl ile oturum açma yı yazdım aynısını oldu fakat 1-2 saniye sonra tekrardan olmadı bazı şeylerden dolayı olmamış ola bilir
index.html
Kod:
<!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>
<**** http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ݹelik Formu</title>
</head>
<body>
<h2>Giri��rmu</h2>
<form method="post" action="/deneme.php">
Kullan��Ad��input type="text" name="UserName"><br />
ߩfre: <input type="password" name="Password"><br />
<input type="submit" value="Giri��
</form>
</body>
</html>
deneme.php
Kod:
<base href="https://subdomain.abcdefsitesi.com"/>
<?php
$UserName = $_POST['UserName'];
$Password = $_POST['Password'];
function baglan ($url,$degerler){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $degerler);
curl_setopt($curl, CURLOPT_COOKIEJAR, "sil.txt");
curl_setopt($curl, CURLOPT_COOKIEFILE, "sil.txt");
curl_exec($curl);
curl_close($curl);
}
baglan("subdomain.abcdefsitesi.com","UserName=$UserName&Password=$Password");
if(baglan)
{
echo "oldu";
}
else{
echo "hata";
}
?>
Kod:
Object moved to here.
oldu
Son düzenleme: