Guest User

Untitled

a guest
May 28th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2. /*
  3. * initializes the application
  4. */
  5. function __autoload($class_name) {
  6. require_once($_SERVER['DOCUMENT_ROOT']."../../core/classes/careersCore.php");
  7. }
  8.  
  9. // start the session
  10. session_start();
  11.  
  12. // only instantiate the core class once per session
  13. if(!isset($_SESSION['careers_core'])){
  14. $core = new careersCore('hospicecareers.com');
  15. $_SESSION["careers_core"] = $core;
  16. }
  17.  
  18. // register the core classes so they are globally accessable
  19. global $core;
  20. $core = $_SESSION["careers_core"];
  21. ?>
Add Comment
Please, Sign In to add comment