ztizzlegaming / CSGOWinBig

Open-source Counter-Strike: Global Offensive jackpot betting website.
MIT License
172 stars 105 forks source link

Steam API Key Issue #178

Open masonotaku opened 8 years ago

masonotaku commented 8 years ago

Hello! Awesome source code, by the way.

I'm not storing my api key in a .txt file, as i'm just testing. I'll show you what I've done:

https://imgur.com/y0gITwn

This method is not working. I've directly pasted my api key into the function. What have i done wrong?

Thanks in advance.

andrewda commented 8 years ago

That function will just set $apikey to your ApiKey, I'm not sure what you expect it to do.

masonotaku commented 8 years ago

Yes, I know that. It's still not linking to my api key when i click "login with steam". :/

ghost commented 8 years ago

http://pastebin.com/8ZCNq7f8 did you try all these steps?

masonotaku commented 8 years ago

Sadly, it's still saying csgowinbig when i click 'Sign in through Steam'.

ghost commented 8 years ago

Could you upload the content of your steamauth/settings.php (remove apikey) to pastebin.com?

masonotaku commented 8 years ago

Ok. I'll do so. Thanks for your help. I'm new to PHP.

masonotaku commented 8 years ago

http://pastebin.com/cL5u8asL

ghost commented 8 years ago

Okay, that is fine, did you edit the index.html? at lines: 54 & 120? There are two csgowinbig.com which you have to replace in each line.

EDIT: index.php > index.html

ghost commented 8 years ago

My fault, I mean index.html not .php

masonotaku commented 8 years ago

On lines 54 & 120 I have:

  1. <a href="https://steamcommunity.com/openid/login?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=checkid_setup&openid.return_to=http%3A%2F%2Fwww.csgowinbig.com%2Fphp%2Fsteam-login-handle.php&openid.realm=http%3A%2F%2Fwww.csgowinbig.com&openid.ns.sreg=http%3A%2F%2Fopenid.net%2Fextensions%2Fsreg%2F1.1&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select">
  2. a href="https://steamcommunity.com/openid/login?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=checkid_setup&openid.return_to=http%3A%2F%2Fwww.csgowinbig.com%2Fphp%2Fsteam-login-handle.php&openid.realm=http%3A%2F%2Fwww.csgowinbig.com&openid.ns.sreg=http%3A%2F%2Fopenid.net%2Fextensions%2Fsreg%2F1.1&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select" class="btn btn-lg btn-success" id="login-main" style="display: none; margin-bottom: 10px;">

What do I change? Thanks! I apologise for my lack of knowledge.

ghost commented 8 years ago

You could have found the mistake if you read those lines: "openid.return_to=http%3A%2F%2Fwww.csgowinbig.com%2Fphp%2Fsteam-login-handle.php"

you need to replace www.csgowinbig.com with www.masonfirman.com/eggybetting

masonotaku commented 8 years ago

Sorry. Thank you for your help! Do I need to change this on every page?

ghost commented 8 years ago

Yes

masonotaku commented 8 years ago

Ok, cheers!