Advertisement
Guest User

lua

a guest
May 14th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.64 KB | None | 0 0
  1. -----------------------------------------------------
  2. lua
  3. -----------------------------------------------------
  4. HLogs = {};
  5.  
  6. // Database information
  7. HLogs['DBHost'] = "127.0.0.1" -- URL or IP address that your MySQL server is running on
  8. HLogs['DBUser'] = "hydrogen" // Username for your MySQL login
  9. HLogs['DBPass'] = "mypassword" // Passeord for your MySQL login
  10. HLogs['DBName'] = "hydrogen" // Name of the database you created for Hydrogen logs (same one from web setup)
  11. HLogs['DBPort'] = 3306 // MySQL server port, usually 3306 by default
  12.  
  13. HLogs['MySQLModule'] = "tmysql4" // If using mysqloo, put 'mysqloo'. If using tmysql4, put 'tmysql4'
  14.  
  15. // Other stuff
  16.  
  17. HLogs['AccessKey'] = "myaccesskey" // The logs access key, same one from the config.PHP file
  18. HLogs['WebPath'] = "http://www.karambole.ch:8429/hydrogen" // Full URL to folder you uploaded the 'web' stuff into (Example: http://myserver.com/hydrogenlogs)
  19.  
  20. // Groups that are allowed to access the logs. Seperate each group by a comma, make sure all group names are in quotes.
  21. // Do not put a comma after the last group name
  22. HLogs['AllowedGroups'] = {
  23.   "superadmin",
  24.   "admin",
  25.   "moderator"
  26. }
  27.  
  28. HLogs['ChatCommand'] = "/hlogs" // Chat command to open logs menu
  29.  
  30. -----------------------------------------------------
  31. web conf
  32. -----------------------------------------------------
  33. <?php
  34.  
  35.   // General settings
  36.   $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
  37.  
  38.   // 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'
  39.   $AppDirectory = "hydrogen";
  40.  
  41.   $title = "Server Logs"; // Title displayed in top left corner of logs
  42.  
  43.   // Database configuration
  44.   $dbhost = "127.0.0.1"; // URL or IP address that your MySQL server is running on
  45.   $dbuser = "hydrogen"; // Username for your MySQL login
  46.   $dbpass = "mypassword"; // Passeord for your MySQL login
  47.   $dbname = "hydrogen"; // Name of the database you created for Hydrogen logs
  48.   $dbport = 3306; // MySQL server port
  49.  
  50.   $skin = "green";
  51.   /*
  52.   SKINS!
  53.  
  54.   Your options are:
  55.     - 'blue'    Gives it a blue theme
  56.     - 'black'   Gives it a black theme
  57.     - 'purple'  You get it...
  58.     - 'green'
  59.     - 'red'
  60.     - 'yellow'
  61.     - 'blue-light' (white sidebar)
  62.     - 'purple-light'
  63.     - 'green-light'
  64.     - 'red-light',
  65.     - 'yellow-light'
  66.   */
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.   // Leave anything below this line alone!!
  74.   //
  75.   //
  76.   //
  77.   $db = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';port='.$dbport.'', $dbuser, $dbpass); // Database object
  78.  
  79. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement