Raised This Month: $ Target: $400
 0% 

SQL Log Admin Connect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related       
dark_style
Senior Member
Join Date: Jul 2009
Location: Bulgaria
Old 12-30-2010 , 08:01   SQL Log Admin Connect
Reply With Quote #1

SQL Log Admin Connect
Authors: Dark_Style & Kostov
Version: 1.4

Description:

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.


Attached Files
File Type: sma Get Plugin or Get Source (SqlLogAdminConnect.sma - 1622 views - 5.1 KB)
File Type: zip sql_log_admin.zip (694 Bytes, 608 views)

Last edited by dark_style; 10-23-2011 at 01:59.
dark_style is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode