Advertisement
terskiy

config.php

Jan 6th, 2012
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <?
  2. /*************************************************
  3. * This is the configuration file, please
  4. * enter the mysql information below
  5. *
  6. * Details at http://war3ft.com
  7. *
  8. * Credits:
  9. * Design set up by b4p
  10. * Top Banner by nightscream
  11. *************************************************/
  12.  
  13. // 4HM Forums database
  14. $config->dbuser = "";
  15. $config->dbpassword = "";
  16. $config->dbname = "";
  17. $config->dbhost = "";
  18.  
  19. // Language
  20. $config->lang = "en";
  21.  
  22. // Set this to true to show the user's steam ID
  23. $config->show_steam_id = true;
  24.  
  25. // The amount to display per page
  26. $config->limit = 100;
  27.  
  28. // What mode?
  29. // - "traditional" - Like you're used to seeing, listed based on xp per race
  30. // - "total" - Will list players based on TOTAL XP over all races
  31. $config->mode = "traditional";
  32.  
  33. /***********************************/
  34. /*** DO NOT EDIT BELOW THIS LINE ***/
  35. /***********************************/
  36. session_start();
  37.  
  38. require( "includes/ez_sql.php" );
  39. require( "includes/functions.inc.php" );
  40.  
  41. // Create the database connection
  42. $db = new db( $config->dbuser, $config->dbpassword, $config->dbname, $config->dbhost );
  43.  
  44. if ( !isset( $_SESSION['page_num'] ) )
  45. {
  46. $_SESSION['page_num'] = 1;
  47. }
  48.  
  49. if ( !isset( $_SESSION['race_id'] ) )
  50. {
  51. $_SESSION['race_id'] = -1;
  52. }
  53. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement