Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------
- lua
- -----------------------------------------------------
- HLogs = {};
- // Database information
- HLogs['DBHost'] = "127.0.0.1" -- URL or IP address that your MySQL server is running on
- HLogs['DBUser'] = "hydrogen" // Username for your MySQL login
- HLogs['DBPass'] = "mypassword" // Passeord for your MySQL login
- HLogs['DBName'] = "hydrogen" // Name of the database you created for Hydrogen logs (same one from web setup)
- HLogs['DBPort'] = 3306 // MySQL server port, usually 3306 by default
- HLogs['MySQLModule'] = "tmysql4" // If using mysqloo, put 'mysqloo'. If using tmysql4, put 'tmysql4'
- // Other stuff
- HLogs['AccessKey'] = "myaccesskey" // The logs access key, same one from the config.PHP file
- HLogs['WebPath'] = "http://www.karambole.ch:8429/hydrogen" // Full URL to folder you uploaded the 'web' stuff into (Example: http://myserver.com/hydrogenlogs)
- // Groups that are allowed to access the logs. Seperate each group by a comma, make sure all group names are in quotes.
- // Do not put a comma after the last group name
- HLogs['AllowedGroups'] = {
- "superadmin",
- "admin",
- "moderator"
- }
- HLogs['ChatCommand'] = "/hlogs" // Chat command to open logs menu
- -----------------------------------------------------
- web conf
- -----------------------------------------------------
- <?php
- // General settings
- $AccessKey = "myaccesskey"; // Use a strong, random value here. This makes it so logs can only be seen by people who should be able to see them
- // The name of the folder you installed hydrogen in. Do not put a slash before or after the folder Name. Examples: 'logs', 'hlogs', 'darkrp/logs'
- $AppDirectory = "hydrogen";
- $title = "Server Logs"; // Title displayed in top left corner of logs
- // Database configuration
- $dbhost = "127.0.0.1"; // URL or IP address that your MySQL server is running on
- $dbuser = "hydrogen"; // Username for your MySQL login
- $dbpass = "mypassword"; // Passeord for your MySQL login
- $dbname = "hydrogen"; // Name of the database you created for Hydrogen logs
- $dbport = 3306; // MySQL server port
- $skin = "green";
- /*
- SKINS!
- Your options are:
- - 'blue' Gives it a blue theme
- - 'black' Gives it a black theme
- - 'purple' You get it...
- - 'green'
- - 'red'
- - 'yellow'
- - 'blue-light' (white sidebar)
- - 'purple-light'
- - 'green-light'
- - 'red-light',
- - 'yellow-light'
- */
- // Leave anything below this line alone!!
- //
- //
- //
- $db = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';port='.$dbport.'', $dbuser, $dbpass); // Database object
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement