Harizon
Участник
- Сообщения
- 58
- Реакции
- 3
Я пытался настроить вход через стим, но ничего не получилось. Вот файл SteamOpenID.php
Подскажите что именно надо сделать
<?php
if (!defined('IN_SB')) die("You should not be here. Only follow links!");
function SteamAuthorize($site) {
$openid = new LightOpenID($site);
if (!$openid->mode) {
$openid->identity = 'https://steamcommunity.com/openid/D71D0F24A9EEE08*****************';
return $openid->authUrl();
} elseif($openid->mode == 'cancel') {
return false;
} elseif ($openid->mode == 'id_res' && $openid->validate()) {
$id = $openid->identity;
$ptn = "/^https:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/";
preg_match($ptn, $id, $matches);
if (!empty($matches[1])) return $matches[1];
else return null;
}
}
if (!defined('IN_SB')) die("You should not be here. Only follow links!");
function SteamAuthorize($site) {
$openid = new LightOpenID($site);
if (!$openid->mode) {
$openid->identity = 'https://steamcommunity.com/openid/D71D0F24A9EEE08*****************';
return $openid->authUrl();
} elseif($openid->mode == 'cancel') {
return false;
} elseif ($openid->mode == 'id_res' && $openid->validate()) {
$id = $openid->identity;
$ptn = "/^https:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/";
preg_match($ptn, $id, $matches);
if (!empty($matches[1])) return $matches[1];
else return null;
}
}