Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * initializes the application
- */
- function __autoload($class_name) {
- require_once($_SERVER['DOCUMENT_ROOT']."../../core/classes/careersCore.php");
- }
- // start the session
- session_start();
- // only instantiate the core class once per session
- if(!isset($_SESSION['careers_core'])){
- $core = new careersCore('hospicecareers.com');
- $_SESSION["careers_core"] = $core;
- }
- // register the core classes so they are globally accessable
- global $core;
- $core = $_SESSION["careers_core"];
- ?>
Add Comment
Please, Sign In to add comment