Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Alas, how love can trifle with itself! -- William Shakespeare, "The Two Gentlemen of Verona"


rocksolid / Test / Test php code

SubjectAuthor
* Test php codeAnonymous
`- Re: Test php codeAnonymous

1
Subject: Test php code
From: Anonymous
Newsgroups: rocksolid.shared.test
Organization: RetroBBS
Date: Fri, 1 Nov 2024 21:18 UTC
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!news.mixmin.net!news.neodome.net!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: Anonymous@rocksolidbbs.com (Anonymous)
Newsgroups: rocksolid.shared.test
Subject: Test php code
Date: Fri, 1 Nov 2024 21:18:00 +0000
Organization: RetroBBS
Message-ID: <eb5cf887978d8c226f3a3e562a66f2fc@www.rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="506145"; mail-complaints-to="usenet@i2pn2.org";
posting-account="jTHn4s1aa8KdHfWdKEX4uSfYFVrSvM9c0+YNggbOa4o";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$yhazGJKCX/GW0FK27TPtdOO9rIMKQybsgnS/asrEAicHaVO7xZ8j6
X-Rslight-Posting-User: f7bd1cca6e423e8f8b9ab8697f91b402a7119682
View all headers

if ( (!empty($_SERVER['REMOTE_ADDR']))
&& ($settings['enable_logging'] == TRUE) ) {
$visitor_ip = $_SERVER['REMOTE_ADDR'];

$check_server = array (
$_SERVER['SERVER_NAME'],
$_SERVER['HTTP_USER_AGENT'],
$_SERVER['HTTP_ACCEPT_ENCODING'],
$_SERVER['HTTP_ACCEPT_LANGUAGE'],
$_SERVER['HTTP_ACCEPT']
);

foreach ($check_server as $id) {
if ( (!empty($id)) ) {
$visitor_ip .= $id;
}
}

$visitor_ip = hash('sha512', $visitor_ip);

if ( (empty($_POST['portal'])) && ($short_mode != 'b') ) {
check_portal($db, $settings, $visitor_ip);
} elseif ( (!empty($_POST['portal'])) ) {
$portal_message = 'pass';
log_event($db, $settings, 'portal', $portal_message,
$visitor_ip);
redirect_target();
quit($db, '');
}

check_max_requests($db, $settings, $visitor_ip);
bot_block($db, $settings, $visitor_ip);
} else {
$visitor_ip = '';
}

Subject: Re: Test php code
From: Anonymous
Newsgroups: rocksolid.shared.test
Organization: RetroBBS
Date: Sat, 2 Nov 2024 14:08 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: Anonymous@rocksolidbbs.com (Anonymous)
Newsgroups: rocksolid.shared.test
Subject: Re: Test php code
Date: Sat, 2 Nov 2024 14:08:06 +0000
Organization: RetroBBS
Message-ID: <595a9d309f8bf262690d98c36bf39232@www.rocksolidbbs.com>
References: <eb5cf887978d8c226f3a3e562a66f2fc@www.rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="603246"; mail-complaints-to="usenet@i2pn2.org";
posting-account="GdBaQlf6HA9O28Y3uIZSxdmG9oS3n9bJlDLp/W0rX9M";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$fKuwUMen1vME9FHNUdk/B.nDNSyDpddMYb7tYeuNFUlTo1OAQG0u6
X-Rslight-Posting-User: edb7ced5e9ede030956e856c302d6aadc24bf8ed
View all headers

if (!isset($_SESSION['start_stamp'])) {
$_SESSION['start_stamp'] = time();
}

if (! isset($_SESSION['start_address'])) {
$_SESSION['start_address'] = $_SERVER['REMOTE_ADDR'];
$ip_pass = true;
} else {
if ($_SERVER['REMOTE_ADDR'] != $_SESSION['start_address']) {
$ip_pass = false;
} else {
$ip_pass = true;
}
}

if ($ip_pass && (isset($_SESSION['pass']) && $_SESSION['pass'] ===
true)) {
$logged_in = true;
} else {
$logged_in = false;
} return $logged_in;

1

rocksolid light 0.9.8
clearnet tor