Subversion Repositories computer_asset_manager_v1

Rev

Rev 83 | Rev 86 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 84
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
   define(VERSION,'1.6.2');
3
   define(VERSION,'1.6.2');
4
   define(BUILD_DATE,'$Date: 2019-05-11 01:58:43 -0500 (Sat, 11 May 2019) $');
4
   define(BUILD_DATE,'$Date: 2019-05-11 03:08:46 -0500 (Sat, 11 May 2019) $');
5
   define(SVN_REV,'$Rev: 83 $' );
5
   define(SVN_REV,'$Rev: 84 $' );
6
 
6
 
7
   include_once("database.php");
7
   include_once("database.php");
8
   
8
   
9
   include_once("library.php");
9
   include_once("library.php");
10
   include_once('reports.php');
10
   include_once('reports.php');
Line 83... Line 83...
83
      if ( $info['count'] == 1 ) {
83
      if ( $info['count'] == 1 ) {
84
         $info = $info['data'][0];
84
         $info = $info['data'][0];
85
         $_SESSION['login_id'] = ($info['login_id'] ? $info['login_id'] : -1);
85
         $_SESSION['login_id'] = ($info['login_id'] ? $info['login_id'] : -1);
86
         $_SESSION['email'] = $info['email'];
86
         $_SESSION['email'] = $info['email'];
87
         $_SESSION['where_clause'] = $info['where_clause'];
87
         $_SESSION['where_clause'] = $info['where_clause'];
-
 
88
         $_SESSION['menu items'] = array_keys( sqlValuesToKeys( 'select menu_id from login_menu where login_id = ' . $_SESSION['login_id'] ) );
88
         redirectPage('index.html');
89
         redirectPage('index.html');
89
      } else {
90
      } else {
90
         return false;
91
         return false;
91
      }
92
      }
92
   }
93
   }