Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$params = "un=demo&pw=demo&submit=submit";
$url = "http://freshbg.info/wt.php";
//
$fp = fopen("cookie.txt", "w");
fclose($fp);
$login = curl_init();
$hed = 'Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5",
"Accept-Language: ru-ru,ru;q=0.7,en-us;q=0.5,en;q=0.3",
"Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7",
"Keep-Alive: 300';
curl_setopt($login, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($login, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($login, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($login, CURLOPT_TIMEOUT, 40);
curl_setopt($login, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($login, CURLOPT_URL, $url);
curl_setopt($login, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($login, CURLOPT_POST, TRUE); //ako e GET CURLOPT_HTTPGET
curl_setopt($login, CURLOPT_POSTFIELDS, $params);
curl_setopt($login, CURLOPT_HEADER, $hed);
$result = curl_exec ($login);
curl_close ($login);
echo $result;
?>
1uspe6en vhod zdravei DEMO. kopni tva. Излез от акаунта