Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. //THIS IS THE INDEX.PHP
  2. <?php
  3.  
  4. if ( file_exists( 'lib/config.php' ) )
  5. require_once 'lib/config.php';
  6. else
  7. echo "Whoops, something went wrong, we're working on a fix.";
  8.  
  9. html5_page_pre(
  10. "Yummy Tummy",
  11. array('style.css')
  12. );
  13.  
  14. html5_page_post();
  15. ?>
  16.  
  17. //THIS IS THE CONFIG.PHP
  18. <?php
  19. // database settings
  20. $host = 'localhost'; // database address
  21. $dn = 'test_proj'; // database name
  22. $user = 'test_proj'; // database username
  23. $pass = 'es2feo3!a'; // database password
  24. $charset = 'utf8'; // character set
  25.  
  26. // Root of the website with leading "/"
  27. // e.g: for http://webhost.com/subdomain/my_site, set to "/subdomain/my_site"
  28. $site_root = "/Project/";
  29.  
  30. // set default timezone
  31. date_default_timezone_set('America/Toronto');
  32.  
  33. /* DO NOT TOUCH BELOW THIS LINE UNLESS YOU ARE A DELEVOPER */
  34. // site's absolute path on the filesystem
  35. $doc_root = $_SERVER[ 'DOCUMENT_ROOT' ];
  36.  
  37. if ( file_exists( $doc_root . $site_root . 'lib/common.php' ) )
  38. require_once $doc_root . $site_root . 'lib/common.php';
  39. else
  40. echo "Whoops, something went wrong, we're working on a fix.";
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement