{"action":"created","issue":{"url":"https://api.github.com/repos/ztizzlegaming/CSGOWinBig/issues/59","labels_url":"https://api.github.com/repos/ztizzlegaming/CSGOWinBig/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/ztizzlegaming/CSGOWinBig/issues/59/comments","events_url":"https://api.github.com/repos/ztizzlegaming/CSGOWinBig/issues/59/events","html_url":"https://github.com/ztizzlegaming/CSGOWinBig/issues/59","id":114466910,"number":59,"title":"loading...","user":{"login":"james0954","id":15561745,"avatar_url":"https://avatars.githubusercontent.com/u/15561745?v=3","gravatar_id":"","url":"https://api.github.com/users/james0954","html_url":"https://github.com/james0954","followers_url":"https://api.github.com/users/james0954/followers","following_url":"https://api.github.com/users/james0954/following{/other_user}","gists_url":"https://api.github.com/users/james0954/gists{/gist_id}","starred_url":"https://api.github.com/users/james0954/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james0954/subscriptions","organizations_url":"https://api.github.com/users/james0954/orgs","repos_url":"https://api.github.com/users/james0954/repos","events_url":"https://api.github.com/users/james0954/events{/privacy}","received_events_url":"https://api.github.com/users/james0954/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-01T12:19:17Z","updated_at":"2015-11-02T13:25:59Z","closed_at":null,"body":"i have set everything up which has resulted in a loading... on the index page. i get this error on the http://altislifeeu.esy.es/php/login-status.php (note this isnt going to be the domain just setting it up here so i know it all works) page and i get that error i have set everything up right on the default page\r\n\r\nthis is my default.php file\r\n\r\n<?php\r\n# Copyright (c) 2015 Jordan Turley, CSGO Win Big. All Rights Reserved.\r\n\r\nfunction getDB() {\r\n\t$dbHost = 'mysql.hostinger.co.uk';\r\n\t$db     = 'u730136014_raf';\r\n\t$dbUser = 'u730136014_raf';\r\n\r\n\t# Get database password from outside of web root\r\n\t$fileLoc = $_SERVER['DOCUMENT_ROOT'] . '/../passwords.txt';\r\n\tif (file_exists($fileLoc)) {\r\n\t\t$fh = fopen($fileLoc, 'r');\r\n\t\t$jsonStr = fgets($fh);\r\n\t\t$arr = json_decode($jsonStr, true);\r\n\t\t$dbPass = $arr['default-password'];\r\n\t\tfclose($fh);\r\n\t} else {\r\n\t\tdie('no file found');\r\n\t}\r\n\r\n\t$db = new PDO(\"mysql:host=$dbHost;dbname=$db;charset=utf8mb4\", $dbUser, $dbPass);\r\n\treturn $db;\r\n}\r\n\r\nfunction getSteamProfileInfoForSteamID($allUsersInfoStr, $steamIDToFind) {\r\n\t$allUsersInfo = json_decode($allUsersInfoStr, true);\r\n\t$players = $allUsersInfo['response']['players'];\r\n\t\r\n\tforeach ($players as $player) {\r\n\t\t$steamID = $player['steamid'];\r\n\t\t$player['personaname'] = htmlentities($player['personaname']);\r\n\t\t\r\n\t\tif ($steamIDToFind === $steamID) {\r\n\t\t\treturn $player;\r\n\t\t}\r\n\t}\r\n\r\n\t# If the user is not found, then return false\r\n\treturn false;\r\n}\r\n\r\nfunction jsonSuccess($data) {\r\n\treturn json_encode(array('success' => 1, 'data' => $data));\r\n}\r\n\r\nfunction jsonErr($errMsg) {\r\n\treturn json_encode(array('success' => 0, 'errMsg' => $errMsg));\r\n}\r\n\r\nfunction getSteamAPIKey() {\r\n\t$fileLoc = $_SERVER['DOCUMENT_ROOT'] . '/../passwords.txt';\r\n\tif (file_exists($fileLoc)) {\r\n\t\t$fh = fopen($fileLoc, 'r');\r\n\t\t$jsonStr = fgets($fh);\r\n\t\t$arr = json_decode($jsonStr, true);\r\n\t\t$key = $arr['steamAPIKey'];\r\n\t\tfclose($fh);\r\n\t\treturn $key;\r\n\t} else {\r\n\t\tdie('no file found');\r\n\t}\r\n}\r\n\r\nfunction postVar($varName) {\r\n\t$var = isset($_POST[$varName]) ? $_POST[$varName] : null;\r\n\r\n\tif (is_null($var) || strlen($var) === 0) {\r\n\t\treturn null;\r\n\t} else {\r\n\t\treturn $var;\r\n\t}\r\n}\r\n\r\nfunction getVar($varName) {\r\n\t$var = isset($_GET[$varName]) ? $_GET[$varName] : null;\r\n\r\n\tif (is_null($var) || strlen($var) === 0) {\r\n\t\treturn null;\r\n\t} else {\r\n\t\treturn $var;\r\n\t}\r\n}\r\n?>\r\n\r\n\r\nany help would be great thanks."},"comment":{"url":"https://api.github.com/repos/ztizzlegaming/CSGOWinBig/issues/comments/153015892","html_url":"https://github.com/ztizzlegaming/CSGOWinBig/issues/59#issuecomment-153015892","issue_url":"https://api.github.com/repos/ztizzlegaming/CSGOWinBig/issues/59","id":153015892,"user":{"login":"ziboobiz","id":15611870,"avatar_url":"https://avatars.githubusercontent.com/u/15611870?v=3","gravatar_id":"","url":"https://api.github.com/users/ziboobiz","html_url":"https://github.com/ziboobiz","followers_url":"https://api.github.com/users/ziboobiz/followers","following_url":"https://api.github.com/users/ziboobiz/following{/other_user}","gists_url":"https://api.github.com/users/ziboobiz/gists{/gist_id}","starred_url":"https://api.github.com/users/ziboobiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziboobiz/subscriptions","organizations_url":"https://api.github.com/users/ziboobiz/orgs","repos_url":"https://api.github.com/users/ziboobiz/repos","events_url":"https://api.github.com/users/ziboobiz/events{/privacy}","received_events_url":"https://api.github.com/users/ziboobiz/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T13:25:59Z","updated_at":"2015-11-02T13:25:59Z","body":"ho, how did u get it working? same problem here"}}