The plugin logs the admin connection into SQL. Server, date/time, and his name will be logged. The archive includes .php file.
Web Part:
If you want the information to be showed into your web site, you will need to include the .php file.
PHP Code:
include "./directory/sql_log_admin.php";
Modules:
PHP Code:
#include <sqlx>
Cvars:
lac_host "" - host
lac_user "" - user
lac_pass "" - password
lac_db "" - database
lac_table "" - table
lac_prefix "" - Prefix for the messages.
lac_log_info 1/2 - What info to be logged. 1 - name; 2 - name and steamid.
( The SQL settings )
Changelog:
Code:
1.4 - Added new cvar for the logging information. Check out the cvars.
1.3 - Added new cvar for the prefix of messages.
1.2 :
- The plugin is fully rewritten.
- Added cvars about the SQL settings, suggested by @Arkshine.
- All admins will be logged into the SQL.
- All messages are changed to server_print.
- Added prefix for the messages.
1.1 - Fix code.
1.0 - Code changes again, and again thanks to @Nextra.
0.2 - Code changes. Thanks to @Nextra.
0.1 - First release.