in "unrealsoftware.de/dev.php" a link to check user if logged usgn. if logged, return 1 else return 0.
I am making a 'website' and i need control User was logged to usgn. How i get the '1' or '0' value from this link?
Thanks.
Get content from url
Get content from url
1

$nick = "ohaz";
$randomKey = CREATE_RANDOM_KEY($nick);
$valid = file_get_contents("http://www.unrealsoftware.de/connect.php?keyof=".urlencode($nick)."&iskey=".urlencode($random_key));
if ($valid){
...
}
<a href="http://www.unrealsoftware.de/connect.php?setkey=<? echo $randomKey; ?>" target="_new">http://www.unrealsoftware.de/connect.php?setkey=<? echo $randomKey; ?></a>
$url = 'http://www.unrealsoftware.de/connect.php?' . http_build_query($params); $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_URL, $url); $data = curl_exec($ch); curl_close($ch);
1
