$87 GRAYBYTE WORDPRESS FILE MANAGER $53

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/var/softaculous/fud/default/

HOME
Current File : /var/softaculous/fud/default//allowed_user_lnk.inc
<?php
/**
* copyright            : (C) 2001-2016 Advanced Internet Designs Inc.
* email                : [email protected]
* $Id$
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; version 2 of the License.
**/

	include $GLOBALS['FORUM_SETTINGS_PATH'] .'ip_filter_cache';
	include $GLOBALS['FORUM_SETTINGS_PATH'] .'login_filter_cache';
	include $GLOBALS['FORUM_SETTINGS_PATH'] .'email_filter_cache';

function is_ip_blocked($ip)
{
	if (empty($GLOBALS['__FUD_IP_FILTER__'])) {
		return;
	}
	$block =& $GLOBALS['__FUD_IP_FILTER__'];
	list($a,$b,$c,$d) = explode('.', $ip);

	if (!isset($block[$a])) {
		return;
	}
	if (isset($block[$a][$b][$c][$d])) {
		return 1;
	}

	if (isset($block[$a][256])) {
		$t = $block[$a][256];
	} else if (isset($block[$a][$b])) {
		$t = $block[$a][$b];
	} else {
		return;
	}

	if (isset($t[$c])) {
		$t = $t[$c];
	} else if (isset($t[256])) {
		$t = $t[256];
	} else {
		return;
	}

	if (isset($t[$d]) || isset($t[256])) {
		return 1;
	}
}

function is_login_blocked($l)
{
	foreach ($GLOBALS['__FUD_LGN_FILTER__'] as $v) {
		if (preg_match($v, $l)) {
			return 1;
		}
	}
	return;
}

function is_email_blocked($addr)
{
	if (empty($GLOBALS['__FUD_EMAIL_FILTER__'])) {
		return;
	}
	$addr = strtolower($addr);
	foreach ($GLOBALS['__FUD_EMAIL_FILTER__'] as $k => $v) {
		if (($v && (strpos($addr, $k) !== false)) || (!$v && preg_match($k, $addr))) {
			return 1;
		}
	}
	return;
}

function is_allowed_user(&$usr, $simple=0)
{
	/* Check if the ban expired. */
	if (($banned = $usr->users_opt & 65536) && $usr->ban_expiry && $usr->ban_expiry < __request_timestamp__) {
		q('UPDATE fud30_users SET users_opt = '. q_bitand('users_opt', ~65536) .' WHERE id='. $usr->id);
		$usr->users_opt ^= 65536;
		$banned = 0;
	} 

	if ($banned || is_email_blocked($usr->email) || is_login_blocked($usr->login) || is_ip_blocked(get_ip())) {
		$ban_expiry = (int) $usr->ban_expiry;
		$ban_reason = $usr->ban_reason;
		if (!$simple) { // On login page we already have anon session.
			ses_delete($usr->sid);
			$usr = ses_anon_make();
		}
		setcookie($GLOBALS['COOKIE_NAME'].'1', 'd34db33fd34db33fd34db33fd34db33f', ($ban_expiry ? $ban_expiry : (__request_timestamp__ + 63072000)), $GLOBALS['COOKIE_PATH'], $GLOBALS['COOKIE_DOMAIN']);
		if ($banned) {
			error_dialog('ERROR: You have been banned.', 'Your account was '.($ban_expiry ? 'temporarily banned until '.print_date('%a, %d %B %Y %H:%M', $ban_expiry).'' : 'permanently banned' )  .' from accessing the site, due to a violation of the forum&#39;s rules.
<br />
<br />
<span class="GenTextRed">'.$ban_reason.'</span>');
		} else {
			error_dialog('ERROR: Your account has been filtered out.', 'Your account has been blocked from accessing the forum due to one of the installed user filters.');
		}
	}

	if ($simple) {
		return;
	}

	if ($GLOBALS['FUD_OPT_1'] & 1048576 && $usr->users_opt & 262144) {
		error_dialog('ERROR: Your account is not yet confirmed', 'We have not received a confirmation from your parent and/or legal guardian, which would allow you to post messages. If you lost your COPPA form, <a href="[[relativeurl]]/index.php?t=coppa_fax&amp;'._rsid.'">view it again</a>.');
	}

	if ($GLOBALS['FUD_OPT_2'] & 1 && !($usr->users_opt & 131072)) {
		std_error('emailconf');
	}

	if ($GLOBALS['FUD_OPT_2'] & 1024 && $usr->users_opt & 2097152) {
		error_dialog('Unverified Account', 'The administrator had chosen to review all accounts manually prior to activation. Until your account has been validated by the administrator you will not be able to utilize the full capabilities of your account.');
	}
}
?>


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Jan 2025 2.56 AM
root / root
0755
admincp.inc
4.195 KB
23 Dec 2021 11.54 AM
root / root
0644
allowed_user_lnk.inc
3.616 KB
7 Jun 2023 9.42 AM
root / root
0644
cookies.inc
8.127 KB
20 Jan 2025 12.26 PM
root / root
0644
draw_forum_list.inc
9.427 KB
7 Jun 2023 9.42 AM
root / root
0644
draw_forum_path.inc
1.01 KB
23 Dec 2021 11.54 AM
root / root
0644
drawmsg.inc
24.318 KB
7 Jun 2023 9.42 AM
root / root
0644
drawpmsg.inc
9.515 KB
7 Jun 2023 9.42 AM
root / root
0644
err.inc
4.302 KB
23 Dec 2021 11.54 AM
root / root
0644
errmsg.inc
6.18 KB
20 Jan 2025 12.26 PM
root / root
0644
forumsel.inc
2.388 KB
23 Dec 2021 11.54 AM
root / root
0644
get_cur_ppage.inc
1.043 KB
23 Dec 2021 11.54 AM
root / root
0644
imsg_edt.inc
32.454 KB
20 Jan 2025 12.26 PM
root / root
0644
logedin.inc
5.923 KB
7 Jun 2023 9.42 AM
root / root
0644
post_common.inc
4.771 KB
23 Dec 2021 11.54 AM
root / root
0644
post_opt.inc
2.744 KB
23 Dec 2021 11.54 AM
root / root
0644
private.inc
7.235 KB
23 Dec 2021 11.54 AM
root / root
0644
return.inc
1.134 KB
23 Dec 2021 11.54 AM
root / root
0644
tabs.inc
1.633 KB
23 Dec 2021 11.54 AM
root / root
0644
th_nav.inc
2.354 KB
23 Dec 2021 11.54 AM
root / root
0644
thread_view_common.inc
3.615 KB
23 Dec 2021 11.54 AM
root / root
0644
usercp.inc
1.141 KB
23 Dec 2021 11.54 AM
root / root
0644
users.inc
21.609 KB
20 Jan 2025 12.26 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF