Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //THIS IS THE INDEX.PHP
- <?php
- if ( file_exists( 'lib/config.php' ) )
- require_once 'lib/config.php';
- else
- echo "Whoops, something went wrong, we're working on a fix.";
- html5_page_pre(
- "Yummy Tummy",
- array('style.css')
- );
- html5_page_post();
- ?>
- //THIS IS THE CONFIG.PHP
- <?php
- // database settings
- $host = 'localhost'; // database address
- $dn = 'test_proj'; // database name
- $user = 'test_proj'; // database username
- $pass = 'es2feo3!a'; // database password
- $charset = 'utf8'; // character set
- // Root of the website with leading "/"
- // e.g: for http://webhost.com/subdomain/my_site, set to "/subdomain/my_site"
- $site_root = "/Project/";
- // set default timezone
- date_default_timezone_set('America/Toronto');
- /* DO NOT TOUCH BELOW THIS LINE UNLESS YOU ARE A DELEVOPER */
- // site's absolute path on the filesystem
- $doc_root = $_SERVER[ 'DOCUMENT_ROOT' ];
- if ( file_exists( $doc_root . $site_root . 'lib/common.php' ) )
- require_once $doc_root . $site_root . 'lib/common.php';
- else
- echo "Whoops, something went wrong, we're working on a fix.";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement