Advertisement
Guest User

php

a guest
Dec 15th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php if(!defined('DEFINE_INDEX_FILE')){if(headers_sent()){echo '<header><meta http-equiv="refresh" content="0;url=../"></header>';}else{header('HTTP/1.0 301 Moved Permanently'); header('Location: ../');} die("<font size=+2>Access Denied!!</font>");}
  2.  
  3.  
  4. // Database config
  5. function ConnectDB(){global $db,$config;
  6.  
  7.  
  8. $host = '84.29.116.254';
  9. $port = 3306;
  10. $username = 'jessyjw77';
  11. $password = 'szsxwaka';
  12. $database = 'jessyjw77_wa';
  13. $config['table prefix'] = 'WA_';
  14.  
  15.  
  16. $db=@mysql_pconnect($host.($port==3306?'':':'.((int)$port)),$username,$password);
  17. if(!$db || !@mysql_select_db($database,$db)){echo '<p>MySQL Error: '.mysql_error().'</p>'; exit();}
  18. mysql_query("SET names UTF8");
  19. }
  20.  
  21.  
  22. // iConomy config
  23. $config['iConomy']['use'] = 'auto'; // ( true / false / 'auto' ) you you have iConomy data in another table in the same database?
  24. $config['iConomy']['table'] = 'iConomy'; // 'iConomy' is the default table name when using MySQL with iConomy
  25.  
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement