forked from markosjal/AirScan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpamindex.php
More file actions
45 lines (39 loc) · 1017 Bytes
/
pamindex.php
File metadata and controls
45 lines (39 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
include_once 'phppagestart.php';
// error_reporting( -1 );
// ini_set( 'display_errors', 1 );
$username= $_SESSION['username'];
include_once('config.inc.php');
include_once('lang.php');
chdir ($root);
$_SESSION['fromuserfolder']='yes';
$_SESSION['fromuserfilelister']='yes';
$now = time();
if (($requireauth == 'yes') && ($_SESSION['loggedin'] != 'yes'))
{
//echo 'excuse 1';
include_once('deauthorize.php');
}
if (($requireauth == 'yes') && ($_SESSION['loggedin'] == 'yes') && ($_SESSION['expire'] > $now))// && ($_SESSION['expire'] > $now))
{
include_once('filelister.php');
}
elseif ($requireauth != 'yes')
{
include_once('filelister.php');
}
elseif (($requireauth == 'yes') && ($_SESSION['loggedin'] != 'yes'))
{
//echo 'excuse 2';
include_once('deauthorize.php');
}
elseif (($requireauth == 'yes') && ($_SESSION['expire'] <= $now))
{
//echo 'excuse 3';
include_once('deauthorize.php');
}
//echo $_SESSION['username'];
//echo $_SESSION['password'];
// echo '<br/>';
//echo $_SESSION['userpath'];
?>