Advertisement
Guest User

Untitled

a guest
Aug 11th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. <?php
  2. /*
  3. Configration File Start
  4. */
  5.  
  6. /* Server Database */
  7. $serveraddress='51.254.14.200'; // Game IP [ If You are using VPS Leave it 127.0.0.1 in Case You Used a Web Host Write The VPS IP]
  8.  
  9. $serverport='9959'; // [ Usually it`s 3306 If You Want change it Write Same Game Port in Source ]
  10.  
  11. $dbhost='51.254.14.200'; //Database Host name
  12.  
  13. $dbuser='root'; //Host User
  14.  
  15. $dbpassword='4653157'; //Host Password
  16.  
  17. $dbname='fire'; //DataBase For accounts
  18.  
  19. $servername='War - FireArista Group'; // Server name appear on pages titles
  20.  
  21. $gm_rank = '4'; // GM STATE
  22.  
  23. /* Web Database */
  24.  
  25. $webaddress='51.254.14.200'; // Web Database IP [Leave it 127.0.0.1 if you are Using VPS & If you are using Web Host Put VPS IP] --> Web Database
  26.  
  27.  
  28. $webhost='51.254.14.200'; //Database Host name --> Web Database
  29.  
  30. $webuser='root'; //Host User --> Web Database
  31.  
  32. $webpassword='4653157'; //Host Password --> Web Database
  33.  
  34. $webdb='fire'; //DataBase For accounts --> Web Database
  35.  
  36. /* WebSettings */
  37. $base_url = 'http://firearista.cf/'.$_SERVER['HTTP_HOST'].'/2'; // Your Domain
  38. $admin_url = 'http://localhost/2/admin'; // Your Admin Panel URL
  39.  
  40. /* Download Links */
  41. $download= array();
  42. $download['client_google'] = '';
  43. $download['client_media'] = '';
  44. $download['client_direct'] = '';
  45.  
  46. $download['patch_google'] = '';
  47. $download['patch_media'] = '';
  48. $download['patch_direct'] = '';
  49.  
  50.  
  51. /* Time Zone */
  52. date_default_timezone_set('Africa/Cairo');
  53. /* Social Links*/
  54. $discord = 'https://discordapp.com/invite/0mguNk1typAX9LuW';
  55. $YT = 'https://www.youtube.com';
  56. $facebook = 'https://web.facebook.com/MaleK.Mohamed13';
  57. $twitter = 'https://twitter.com/?lang=en';
  58. /* Connection */
  59. // Game Database Connection
  60. $option=array( PDO::MYSQL_ATTR_INIT_COMMAND=> 'SET NAMES utf8', );
  61. $game_dsn='mysql:host='.$serveraddress.';dbname='.$dbname.'';
  62. try {
  63. $conn=new PDO($game_dsn, $dbuser, $dbpassword, $option);
  64. $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  65. }
  66.  
  67. catch(PDOException $e) {
  68. echo 'Failed To Connect To Game Database' . $e->getMessage();
  69. }
  70.  
  71. // Web Database Connection
  72. $web_dsn='mysql:host='.$serveraddress.';dbname='.$webdb.'';
  73. try {
  74. $web=new PDO($web_dsn, $webuser, $webpassword, $option);
  75. $web->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  76. }
  77.  
  78. catch(PDOException $e) {
  79. echo 'Failed To Connect To Web Database' . $e->getMessage();
  80. }
  81. /*
  82. Configration File End
  83. */
  84.  
  85.  
  86.  
  87. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement