Subversion Repositories computer_asset_manager_v2

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 rodolico 1
<?php
2
 
20 rodolico 3
   /*
4
    * The order of the following are important. Since we are storing 
5
    * an instantiation of the Auth class, we must load it BEFORE
6
    * starting the session, so it can be deserialized properly
7
    * So, we have to set the include paths, then include Auth.class.php
8
    * before session_start is run.
9
    */
10
   // add ./include and ./library to the include path
11
   ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . __DIR__ . '/include' . PATH_SEPARATOR . __DIR__ . '/library' ); 
1 rodolico 12
   include_once( 'Auth.class.php' );
20 rodolico 13
   session_start();
1 rodolico 14
 
20 rodolico 15
   include_once( 'functions.php' );
16
   /*
17
   DBQuery::connect( $_SESSION['database'] );
18
 
1 rodolico 19
 
20 rodolico 20
   if ( ! isset( $_SESSION[ 'authorization information' ]->user_id ) )
21
      header( "Location: login.html?message=Error%20you%20must%20log%20in%20first" );
22
   */
23
 
1 rodolico 24
?>