-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlivegame.php
More file actions
51 lines (51 loc) · 1.97 KB
/
livegame.php
File metadata and controls
51 lines (51 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html class=" js csstransforms3d csstransitions">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0,width=device-width">
<title>EloCloud Finder</title>
<script async="" src="./resources/img/cloud.png"></script>
<link rel="icon" type="image/png" sizes="32x32" href="resources/img/base-icons/bronze.png">
<link rel="shortcut icon" href="favicon.png">
<link rel="stylesheet" type="text/css" href="./resources/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="./resources/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./resources/css/style2.css">
</head>
<body>
<nav>
<ul>
<li>
<a class="link" href="index.php">Home</a>
</li>
<li>
<a class="link" href="livegame.php">Live Game</a>
</li>
<li>
<a class="link" href="champions.php">Champion Stats</a>
</li>
<li>
<a class="link" href="functions.php">Func Deneme</a>
</li>
</ul>
</nav>
</body>
</html>
<?php
$api_key = "RGAPI-b3904630-9f15-4882-a228-caa44ac6b7ee";
$sum_id = "frqwRHHy65N6ze5HEVscSFRaD3mQdfyrs_2jWnt8xG7L2A";
$country_code = "tr1";
/*$url_mastery = 'https://'.$country_code.'.api.riotgames.com/lol/champion-mastery/v4/champion-masteries/by-summoner/'. $sum_id .'?api_key='. $api_key;
$url_m_encoded = file_get_contents($url_mastery);
$json_m = json_decode($url_m_encoded);
$all_champs = count($json_m);
$count = 0;*/
function live_gamedata($sum_id,$country_code,$api_key){
$live_game = file_get_contents('https://'.$country_code.'.api.riotgames.com/lol/match/v4/matchlists/by-account/'.$sum_id.'?api_key='.$api_key);
$json_status = file_get_contents($live_game);
$json2 = json_decode($json_status);
echo "<br>Rank:<b>" . $json2[0]->{'lane'} . "</b>";
echo $live_game;
//fonksiyonları değiştirip dene canlı oyun için
}
?>