Project

General

Profile

Statistics
| Branch: | Revision:

colonymech / docs / www / colonyscout / internal / includes / internal.php @ f59acf11

History | View | Annotate | Download (546 Bytes)

1
<?php
2
session_start();
3
if ( !isset($_SESSION['u']) || $_SESSION['u']=="" ) {
4
        header("Location: index.php");
5
        ob_flush(); //need to do this so we can modify headers
6
        exit;
7
} else {
8
        if(time()>=$_SESSION['session_logout']){
9
                session_destroy();
10
                header("Location: logout.php");
11
                exit;
12
    } else { //re-up the logout time
13
                $_SESSION['session_logout']=time()+900; //add 10 minutes
14
        }
15
}
16

    
17
$docRoot=getenv("DOCUMENT_ROOT")."/";
18
include_once('includes/internalFunctions.php');
19
include_once($docRoot."internal/do_login.php");
20
doDB("colony_scout");
21
?>