forked from markosjal/AirScan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathofffilelister.php
More file actions
42 lines (32 loc) · 855 Bytes
/
offfilelister.php
File metadata and controls
42 lines (32 loc) · 855 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
<?php
//error_reporting( -1 );
//ini_set( 'display_errors', 1 );
session_start();
chdir ('/var/www/html/');
$username= $_SESSION['username'];
include_once('/config.inc.php');
include_once('/lang.php');
$_SESSION['fromuserfolder']='yes';
// $_SESSION['fromuserfilelister']='yes';
$now = time();
if (($requireauth == 'yes') && ($_SESSION['loggedin'] != 'yes'))
{
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'))
{
include_once('deauthorize.php');
}
elseif (($requireauth == 'yes') && ($_SESSION['expire'] <= $now))
{
include_once('deauthorize.php');
}
?>