View Single Post
Automicbomb
AlliedModders Donor
Join Date: Nov 2012
Old 09-15-2013 , 09:41   Re: [ANY] CallAdmin - Extended Report Mod
Reply With Quote #2

Here is:
plug.calladmin_mysql.cfg
PHP Code:
// This file was auto-generated by SourceMod (v1.6.0-dev+4049)
// ConVars for plugin "calladmin_mysql.smx"


// Entries older than given minutes will be deleted, 0 deactivates the feature
// -
// Default: "25"
// Minimum: "0.000000"
sm_calladmin_entrypruning "25"

// Entries older than given minutes will be recognized as orphaned and will be deleted globally (serverIP and serverPort won't be checked)
// -
// Default: "4320"
// Minimum: "0.000000"
// Maximum: "0.000000"
sm_calladmin_entrypruning_ohphaned "4320"

// Server key to identify this server (Max. 64 allowed!)
// -
// Default: ""
sm_calladmin_server_key "MYKEY"

// Name of the CallAdmin table
// -
// Default: "CallAdmin"
sm_calladmin_table_name "CallAdmin" 
and here is app.config.php
PHP Code:
<?php
/*
 *---------------------------------------------------------------
 * ACCESS SETTINGS
 *---------------------------------------------------------------
*/


/*
Define for each key the server keys to assign to.
You can have a maximum of 64 different ServerKeys
Just use like this:

$access_keys = array
(
    'KEY1' => array
    (
        'CSS_Server',
        'TF2_Server',
    ),
    
    'KEY2' => array
    (
        'CSGO_Server_1',
    ),
    
    'KEY3' => array
    (
        'CSGO_Server_2',
    )
);
*/

$access_keys = array
(
    
'MYKEY' => array
    (
        
'TF2_Server',
    ),
);




/*
 *---------------------------------------------------------------
 * DATA SETTINGS
 *---------------------------------------------------------------
*/

// Upper limit of entries we can fetch from the database
$data_limit 50;

// By default we only fetch the entries of the last hour, set to 0 to disable
$data_from  = (time() - 3600);




/*
 *---------------------------------------------------------------
 * DATABASE SETTINGS
 *---------------------------------------------------------------
*/
$host              'localhost';
$username          'user';
$password          'pass';
$database          'calladmin';
$table             'CallAdmin';
$dbport            '3306';
// End of file
Automicbomb is offline