Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // configure global scope settings
- function nen_ini()
- {
- // global scope initialization settings
- global $nen;
- // assign domain root
- $nen['domain']='Roe XAMPP Builder';
- // assign host mode (local)
- $nen[ 'host' ] = 'local';
- // assign host mode (online)
- //$nen[ 'host' ] = 'online';
- // switch http host vars
- switch( $_SERVER[ 'HTTP_HOST' ] )
- {
- case 'localhost':
- // domain local
- $nen[ 'root' ] = $_SERVER[ 'DOCUMENT_ROOT' ] . '/' . $nen[ 'domain' ] . '/';
- break;
- default:
- // domain host
- $nen[ 'root' ] = $_SERVER[ 'DOCUMENT_ROOT' ] . '/';
- break;
- }
- // return root configuration to global scope
- return $nen;
- }
- // configure cascading stylesheet
- function nen_css()
- {
- // global scope initialization settings
- global $nen;
- // load stylesheet into memory
- return file_get_contents( $nen[ 'root' ]. 'css/stylesheet.css');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement