Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(apache_response_headers()[Authentication] == ""){
- $uid = $_GET['uid'];
- $link = mysqli_connect('localhost', 'pgsplayer', 'pgsplayer', 'pgsplayers');
- if (!$link) {
- die('Could not connect: ' . mysql_error());
- }
- $pgs_player = mysqli_query($link,"SELECT SQL_CALC_FOUND_ROWS * FROM pgs_player WHERE uid='$uid'");
- if(mysqli_num_rows($pgs_player) > 0 ){
- while ($row = mysqli_fetch_array($pgs_player)) {
- echo(json_encode($row['guid']));
- }
- }else{
- json_encode("notfound");
- }
- }
- else{
- echo "brak autoryzacji";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement