Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Configration File Start
- */
- /* Server Database */
- $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]
- $serverport='9959'; // [ Usually it`s 3306 If You Want change it Write Same Game Port in Source ]
- $dbhost='51.254.14.200'; //Database Host name
- $dbuser='root'; //Host User
- $dbpassword='4653157'; //Host Password
- $dbname='fire'; //DataBase For accounts
- $servername='War - FireArista Group'; // Server name appear on pages titles
- $gm_rank = '4'; // GM STATE
- /* Web Database */
- $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
- $webhost='51.254.14.200'; //Database Host name --> Web Database
- $webuser='root'; //Host User --> Web Database
- $webpassword='4653157'; //Host Password --> Web Database
- $webdb='fire'; //DataBase For accounts --> Web Database
- /* WebSettings */
- $base_url = 'http://firearista.cf/'.$_SERVER['HTTP_HOST'].'/2'; // Your Domain
- $admin_url = 'http://localhost/2/admin'; // Your Admin Panel URL
- /* Download Links */
- $download= array();
- $download['client_google'] = '';
- $download['client_media'] = '';
- $download['client_direct'] = '';
- $download['patch_google'] = '';
- $download['patch_media'] = '';
- $download['patch_direct'] = '';
- /* Time Zone */
- date_default_timezone_set('Africa/Cairo');
- /* Social Links*/
- $discord = 'https://discordapp.com/invite/0mguNk1typAX9LuW';
- $YT = 'https://www.youtube.com';
- $facebook = 'https://web.facebook.com/MaleK.Mohamed13';
- $twitter = 'https://twitter.com/?lang=en';
- /* Connection */
- // Game Database Connection
- $option=array( PDO::MYSQL_ATTR_INIT_COMMAND=> 'SET NAMES utf8', );
- $game_dsn='mysql:host='.$serveraddress.';dbname='.$dbname.'';
- try {
- $conn=new PDO($game_dsn, $dbuser, $dbpassword, $option);
- $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- }
- catch(PDOException $e) {
- echo 'Failed To Connect To Game Database' . $e->getMessage();
- }
- // Web Database Connection
- $web_dsn='mysql:host='.$serveraddress.';dbname='.$webdb.'';
- try {
- $web=new PDO($web_dsn, $webuser, $webpassword, $option);
- $web->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- }
- catch(PDOException $e) {
- echo 'Failed To Connect To Web Database' . $e->getMessage();
- }
- /*
- Configration File End
- */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement