Advertisement
FamiHug

leechconfig

Jun 18th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1. <?php
  2.  
  3. /** The name of the database */
  4. define('DB_NAME', 'football_league');
  5.  
  6. /** MySQL database username */
  7. define('DB_USER', 'root');
  8.  
  9. /** MySQL database password */
  10. define('DB_PASSWORD', '');
  11.  
  12. /** MySQL hostname */
  13. define('DB_HOST', 'localhost');
  14.  
  15. /** Full Url */
  16. define('FULL_URL', 'http://test.apstech.com.vn/upload/');
  17.  
  18. //$FULL_URL = 'http://test.apstech.com.vn/upload/';
  19.  
  20. function startMySQLConnection() {
  21.     $conn = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die('Error connecting to mysql');
  22.     mysql_select_db(DB_NAME);
  23.     return $conn;
  24. }
  25.  
  26. function closeMySQLConnection($conn) {
  27.     mysql_close($conn);
  28. }
  29.  
  30. function prefixFullUrl($row, $logofield) {
  31.     if ($row[$logofield] != "" || $row[$logofield] != null) {
  32.         return FULL_URL . $row[$logofield];
  33.     }
  34. }
  35.  
  36. $home = '';
  37. $member_home_page = $home . '/?p=index';
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement