ztizzlegaming / CSGOWinBig

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

Get username insted of "Logout" #89

Closed rfalkner closed 8 years ago

rfalkner commented 8 years ago

Is this possible? If yes, is there a simple solution?

Best regards

Stuffa1991 commented 8 years ago

If you rename index.html to index.php

and add in the top of the file

<?php
include ('php/SteamAuthentication/steamauth/steamauth.php');  
include ('php/SteamAuthentication/steamauth/userInfo.php');
?>

Then you can do

<?php
echo "Welcome " . $steamprofile['personaname'] .' ';
?>
rfalkner commented 8 years ago

Sweet ma man.

TheAnthonyNL commented 8 years ago

Can be done way much easier without changing to index.php will post tomorrow

rfalkner commented 8 years ago

I did it with php allready.

That way i can include files also, so i dont have to change content 5 places ;-)