[Download](#download)
[Installation](#installation)
[How to use](#how-to-use)
[Redirects](#redirects)
[Create MySQL Table](#create-mysql-table)
[Error](#if-you-encounter-an-error-during-installation)
[Using library](#using-library) [Download last version](https://github.com/lazigi/sAuth/releases)
SQL query to create a table here
if you need to update user information (a nickname or change the image or url), change the value of the variable `$__sAuth_MySQL_Update` to the true ```php $__sAuth_MySQL_Update = true; ```
`$sAuth['status']`
Example
if($sAuth['status']){echo 'YES';}else{echo 'NO';}
We get information about the user
Example
echo 'login: '.$sAuth['login'].'<br>';
echo 'UserID: '.$sAuth['id'].'<br>'; //mysql `id`
echo 'SteamID: '.$sAuth['steamid'].'<br>';
echo 'Small image: '.$sAuth['img'].'<br>';
echo 'Medium image: '.$sAuth['img_m'].'<br>';
echo 'Full image: '.$sAuth['img_f'].'<br>';
echo 'URL: '.$sAuth['url'];
Link to login
`sAuthLogin.php?login`
Example
<a href="/sAuth/sAuthLogin.php?login">login</a>
Link to exit
`sAuthLogin.php?logout`
Example
<a href="/sAuth/sAuthLogin.php?logout">logout</a>
>Example ```php $__sAuth_LOGIN = "/After_login"; ```
After leaving the site redirects the user to the script here `$__sAuth_LOGOUT` >Example ```php $__sAuth_LOGOUT = "/After_leaving"; ```
If you encounter an error during installation >php_network_getaddresses: getaddrinfo failed: Name or service not known
---OR---
php_network_getaddresses: getaddrinfo failed: Name or service not known
---OR---
Access denied for user '
USER_NAME
'@'SERVER_NAME
' (using password: YES)
---OR---
Access denied for user '
USER_NAME
'@'SERVER_NAME
' to database 'DB_NAME
'
Please check variables for connection database.