mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-10 00:22:30 +00:00
updated website for new db
This commit is contained in:
21
website/steamauth/licence.txt
Normal file
21
website/steamauth/licence.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Benjamin Smith
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -1,9 +1,11 @@
|
||||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
//ob_start();
|
||||
if (session_status() === PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
|
||||
function logoutbutton() {
|
||||
echo "<form action='' method='get'><button class='btn btn-secondary' name='logout' type='submit'>Logout</button></form>"; //logout button
|
||||
echo "<form><button class='btn btn-secondary' name='logout' type='submit'>Logout</button></form>"; //logout button
|
||||
}
|
||||
|
||||
function loginbutton($buttonstyle = "square") {
|
||||
|
||||
@@ -7,7 +7,6 @@ if (empty($_SESSION['steam_uptodate']) or empty($_SESSION['steam_personaname']))
|
||||
$_SESSION['steam_communityvisibilitystate'] = $content['response']['players'][0]['communityvisibilitystate'];
|
||||
$_SESSION['steam_profilestate'] = $content['response']['players'][0]['profilestate'];
|
||||
$_SESSION['steam_personaname'] = $content['response']['players'][0]['personaname'];
|
||||
$_SESSION['steam_lastlogoff'] = $content['response']['players'][0]['lastlogoff'];
|
||||
$_SESSION['steam_profileurl'] = $content['response']['players'][0]['profileurl'];
|
||||
$_SESSION['steam_avatar'] = $content['response']['players'][0]['avatar'];
|
||||
$_SESSION['steam_avatarmedium'] = $content['response']['players'][0]['avatarmedium'];
|
||||
@@ -27,7 +26,6 @@ $steamprofile['steamid'] = $_SESSION['steam_steamid'];
|
||||
$steamprofile['communityvisibilitystate'] = $_SESSION['steam_communityvisibilitystate'];
|
||||
$steamprofile['profilestate'] = $_SESSION['steam_profilestate'];
|
||||
$steamprofile['personaname'] = $_SESSION['steam_personaname'];
|
||||
$steamprofile['lastlogoff'] = $_SESSION['steam_lastlogoff'];
|
||||
$steamprofile['profileurl'] = $_SESSION['steam_profileurl'];
|
||||
$steamprofile['avatar'] = $_SESSION['steam_avatar'];
|
||||
$steamprofile['avatarmedium'] = $_SESSION['steam_avatarmedium'];
|
||||
|
||||
Reference in New Issue
Block a user