Line 10... |
Line 10... |
10 |
<?php
|
10 |
<?php
|
11 |
require('../lib/functions.php');
|
11 |
require('../lib/functions.php');
|
12 |
require('../lib/defaults.php');
|
12 |
require('../lib/defaults.php');
|
13 |
$date = strftime('%A, %e %B %Y, %T %Z');
|
13 |
$date = strftime('%A, %e %B %Y, %T %Z');
|
14 |
|
14 |
|
15 |
if (is_file("../lib/$config[general_lib_type]/user_info.php")){
|
15 |
if (is_file("../lib/$config[general_lib_type]/user_info.php")) {
|
16 |
include("../lib/$config[general_lib_type]/user_info.php");
|
16 |
include("../lib/$config[general_lib_type]/user_info.php");
|
- |
|
17 |
|
17 |
if ($user_exists == 'no'){
|
18 |
if ($user_exists == 'no') {
|
18 |
echo <<<EOM
|
19 |
echo <<<EOM
|
19 |
<title>User information page</title>
|
20 |
<title>User information page</title>
|
20 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
21 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
21 |
<link rel="stylesheet" href="/css/style.css">
|
22 |
<link rel="stylesheet" href="/css/style.css">
|
22 |
</head>
|
23 |
</head>
|
Line 30... |
Line 31... |
30 |
</body>
|
31 |
</body>
|
31 |
</html>
|
32 |
</html>
|
32 |
EOM;
|
33 |
EOM;
|
33 |
exit();
|
34 |
exit();
|
34 |
}
|
35 |
}
|
- |
|
36 |
|
- |
|
37 |
if (isset($member_groups)) {
|
- |
|
38 |
$login_saved = $login;
|
- |
|
39 |
$item_vals_saved = $item_vals;
|
- |
|
40 |
$login = array_values($member_groups)[0];
|
- |
|
41 |
include("../lib/$config[general_lib_type]/group_info.php");
|
- |
|
42 |
$login = $login_saved;
|
- |
|
43 |
$item_vals_group = $item_vals;
|
- |
|
44 |
$item_vals = $item_vals_saved;
|
- |
|
45 |
unset($login_saved);
|
- |
|
46 |
unset($item_vals_saved);
|
- |
|
47 |
}
|
35 |
}
|
48 |
}
|
36 |
|
49 |
|
37 |
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
|
50 |
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
|
38 |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
|
51 |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
|
39 |
else{
|
52 |
else{
|
Line 49... |
Line 62... |
49 |
</html>
|
62 |
</html>
|
50 |
EOM;
|
63 |
EOM;
|
51 |
exit();
|
64 |
exit();
|
52 |
}
|
65 |
}
|
53 |
|
66 |
|
54 |
if(isset($item_vals['Max-Monthly-Session'][0]) && $item_vals['Max-Monthly-Session'][0] != ''){
|
67 |
if (isset($item_vals['Max-Monthly-Session'][0]) && $item_vals['Max-Monthly-Session'][0] != '') {
|
55 |
$monthly_limit = $item_vals['Max-Monthly-Session'][0];
|
68 |
$monthly_limit = $item_vals['Max-Monthly-Session'][0];
|
- |
|
69 |
} else if (isset($item_vals_group['Max-Monthly-Session'][0]) && $item_vals_group['Max-Monthly-Session'][0] != '') {
|
- |
|
70 |
$monthly_limit = $item_vals_group['Max-Monthly-Session'][0];
|
56 |
} else if (isset($default_vals['Max-Monthly-Session'][0])){
|
71 |
} else if (isset($default_vals['Max-Monthly-Session'][0])) {
|
57 |
$monthly_limit = $default_vals['Max-Monthly-Session'][0];
|
72 |
$monthly_limit = $default_vals['Max-Monthly-Session'][0];
|
58 |
} else {
|
73 |
} else {
|
59 |
$monthly_limit = '';
|
74 |
$monthly_limit = '';
|
60 |
}
|
75 |
}
|
61 |
$monthly_limit = ($monthly_limit) ? $monthly_limit : $config['counter_default_monthly'];
|
76 |
$monthly_limit = ($monthly_limit) ? $monthly_limit : $config['counter_default_monthly'];
|
62 |
|
77 |
|
63 |
if(isset($item_vals['Max-Weekly-Session'][0]) && $item_vals['Max-Weekly-Session'][0] != ''){
|
78 |
if (isset($item_vals['Max-Weekly-Session'][0]) && $item_vals['Max-Weekly-Session'][0] != '') {
|
64 |
$weekly_limit = $item_vals['Max-Weekly-Session'][0];
|
79 |
$weekly_limit = $item_vals['Max-Weekly-Session'][0];
|
- |
|
80 |
} else if (isset($item_vals_group['Max-Weekly-Session'][0]) && $item_vals_group['Max-Weekly-Session'][0] != '') {
|
- |
|
81 |
$weekly_limit = $item_vals_group['Max-Weekly-Session'][0];
|
65 |
} else if (isset($default_vals['Max-Weekly-Session'][0])){
|
82 |
} else if (isset($default_vals['Max-Weekly-Session'][0])) {
|
66 |
$weekly_limit = $default_vals['Max-Weekly-Session'][0];
|
83 |
$weekly_limit = $default_vals['Max-Weekly-Session'][0];
|
67 |
} else {
|
84 |
} else {
|
68 |
$weekly_limit = '';
|
85 |
$weekly_limit = '';
|
69 |
}
|
86 |
}
|
70 |
$weekly_limit = ($weekly_limit) ? $weekly_limit : $config['counter_default_weekly'];
|
87 |
$weekly_limit = ($weekly_limit) ? $weekly_limit : $config['counter_default_weekly'];
|
71 |
|
88 |
|
72 |
if(isset($item_vals['Max-Daily-Session'][0]) && $item_vals['Max-Daily-Session'][0] != ''){
|
89 |
if (isset($item_vals['Max-Daily-Session'][0]) && $item_vals['Max-Daily-Session'][0] != '') {
|
73 |
$daily_limit = $item_vals['Max-Daily-Session'][0];
|
90 |
$daily_limit = $item_vals['Max-Daily-Session'][0];
|
- |
|
91 |
} else if (isset($item_vals_group['Max-Daily-Session'][0]) && $item_vals_group['Max-Daily-Session'][0] != '') {
|
- |
|
92 |
$daily_limit = $item_vals_group['Max-Daily-Session'][0];
|
74 |
} else if (isset($default_vals['Max-Daily-Session'][0])){
|
93 |
} else if (isset($default_vals['Max-Daily-Session'][0])) {
|
75 |
$daily_limit = $default_vals['Max-Daily-Session'][0];
|
94 |
$daily_limit = $default_vals['Max-Daily-Session'][0];
|
76 |
} else {
|
95 |
} else {
|
77 |
$daily_limit = '';
|
96 |
$daily_limit = '';
|
78 |
}
|
97 |
}
|
79 |
$daily_limit = ($daily_limit) ? $daily_limit : $config['counter_default_daily'];
|
98 |
$daily_limit = ($daily_limit) ? $daily_limit : $config['counter_default_daily'];
|
80 |
|
99 |
|
81 |
if(isset($item_vals['Session-Timeout'][0]) && $item_vals['Session-Timeout'][0] != ''){
|
100 |
if (isset($item_vals['Session-Timeout'][0]) && $item_vals['Session-Timeout'][0] != '') {
|
82 |
$session_limit = $item_vals['Session-Timeout'][0];
|
101 |
$session_limit = $item_vals['Session-Timeout'][0];
|
- |
|
102 |
} else if (isset($item_vals_group['Session-Timeout'][0]) && $item_vals_group['Session-Timeout'][0] != '') {
|
- |
|
103 |
$session_limit = $item_vals_group['Session-Timeout'][0];
|
83 |
} else if (isset($default_vals['Session-Timeout'][0])){
|
104 |
} else if (isset($default_vals['Session-Timeout'][0])) {
|
84 |
$session_limit = $default_vals['Session-Timeout'][0];
|
105 |
$session_limit = $default_vals['Session-Timeout'][0];
|
85 |
} else {
|
106 |
} else {
|
86 |
$session_limit = '';
|
107 |
$session_limit = '';
|
87 |
}
|
108 |
}
|
88 |
$session_limit = ($session_limit) ? $session_limit : 'none';
|
109 |
$session_limit = ($session_limit) ? $session_limit : 'none';
|
89 |
|
110 |
|
90 |
if(isset($item_vals['Max-All-Session'][0]) && $item_vals['Max-All-Session'][0] != ''){
|
111 |
if (isset($item_vals['Max-All-Session'][0]) && $item_vals['Max-All-Session'][0] != '') {
|
91 |
$total_limit = $item_vals['Max-All-Session'][0];
|
112 |
$total_limit = $item_vals['Max-All-Session'][0];
|
- |
|
113 |
} else if (isset($item_vals_group['Max-All-Session'][0]) && $item_vals_group['Max-All-Session'][0] != '') {
|
- |
|
114 |
$total_limit = $item_vals_group['Max-All-Session'][0];
|
92 |
} else if (isset($default_vals['Max-All-Session'][0])){
|
115 |
} else if (isset($default_vals['Max-All-Session'][0])) {
|
93 |
$total_limit = $default_vals['Max-All-Session'][0];
|
116 |
$total_limit = $default_vals['Max-All-Session'][0];
|
94 |
} else {
|
117 |
} else {
|
95 |
$total_limit = '';
|
118 |
$total_limit = '';
|
96 |
}
|
119 |
}
|
97 |
$total_limit = ($total_limit) ? $total_limit : 'none';
|
120 |
$total_limit = ($total_limit) ? $total_limit : 'none';
|
98 |
|
121 |
|
- |
|
122 |
if (isset($item_vals['Expiration'][0]) && $item_vals['Expiration'][0] != '') {
|
- |
|
123 |
$expiration = $item_vals['Expiration'][0];
|
- |
|
124 |
} else if (isset($item_vals_group['Expiration'][0]) && $item_vals_group['Expiration'][0] != '') {
|
- |
|
125 |
$expiration = $item_vals_group['Expiration'][0];
|
- |
|
126 |
} else if (isset($default_vals['Expiration'][0])) {
|
- |
|
127 |
$expiration = $default_vals['Expiration'][0];
|
- |
|
128 |
} else {
|
- |
|
129 |
$expiration = '';
|
- |
|
130 |
}
|
- |
|
131 |
$expiration = ($expiration) ? $expiration : '';
|
- |
|
132 |
|
99 |
$remaining = 'unlimited time';
|
133 |
$remaining = 'unlimited time';
|
100 |
$log_color = 'green';
|
134 |
$log_color = 'green';
|
101 |
|
135 |
|
102 |
$now = time();
|
136 |
$now = time();
|
103 |
$week = $now - 604800;
|
137 |
$week = $now - 604800;
|
Line 348... |
Line 382... |
348 |
<font color=red><b>$lock_msg </b</font>
|
382 |
<font color=red><b>$lock_msg </b</font>
|
349 |
EON;
|
383 |
EON;
|
350 |
else
|
384 |
else
|
351 |
$descr = '-';
|
385 |
$descr = '-';
|
352 |
|
386 |
|
353 |
$expiration = isset($default_vals['Expiration'][0]) ? $default_vals['Expiration'][0] : '';
|
- |
|
354 |
if (isset($item_vals['Expiration'][0]))
|
- |
|
355 |
$expiration = $item_vals['Expiration'][0];
|
- |
|
356 |
|
- |
|
357 |
if ($expiration != ''){
|
387 |
if ($expiration != ''){
|
358 |
$expiration = strtotime($expiration);
|
388 |
$expiration = strtotime($expiration);
|
359 |
if ($expiration != -1 && $expiration < time())
|
389 |
if ($expiration != -1 && $expiration < time())
|
360 |
$descr = <<<EOM
|
390 |
$descr = <<<EOM
|
361 |
<font color=red><b>$l_user_expired</b></font>
|
391 |
<font color=red><b>$l_user_expired</b></font>
|