NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
/*
How to use this script?
1. Create new file in your web root directory and name it sysreq.php
2. Copy the this code including <?php and ?> and paste it in that file
3. Using your favourite browser navigate to yourdomain.com/sysreq.php and read the output
*/
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
echo 'Parasite HTTP requires PHP 5.4.0 or greater in order to run. You are '
.'using ' . PHP_VERSION . ' which is very outdated. Please consider '
.'upgrading to a newer, more secure version of PHP.<br /<br />';
exit;
}

$GLOBALS['session_start_error'] = null;
$error = false;

$level = error_reporting(0);
set_error_handler('session_error_handler', E_ALL);

session_name('parasite_test');
$sessionStarted = @session_start();

restore_error_handler();

session_test();

function session_test()
{

if (isset($_GET['tested'])) {
if (!isset($_SESSION['test_value'])) {
$GLOBALS['session_start_error'] =
"The session started successfully, but the test value "
."was not found.<br />Click <a href="{$_SERVER['PHP_SELF']}">"
."here</a> to try the test again.<br />Make sure cookies are enabled in your browser.<br />";
}
} else {
if ($GLOBALS['session_start_error'] != null) {
echo '<strong>Failed to start the PHP session.</strong><br /><br />'
.'The <a href="http://php.net/sessions" target="_blank">session</a>'
.' did not start properly. This could indicate a problem '
.'the PHP configuration on this server.<br /><br />'
.'The following error occurred when attempting to call <i>session_start()</i>:<br />'
.'<pre style="margin: 25px">' . htmlspecialchars($GLOBALS['session_start_error']) . '</pre>'
.'<span style="color: #f00">In order for Parasite HTTP to work, you '
.'must resolve the error.</span><br /><br />'
.'If after searching <a href="https://google.com" target="_blank">Google</a> '
.'and <a href="http://stackoverflow.com/search" target="_blank">StackOverflow</a> '
.'for causes to the problem and you still cannot resolve the error, contact '
.'<a href="http://parasithenxhhddj.onion" target="_blank">the developers</a> '
.'of Parasite HTTP for assistance.<br />Provide as much information about the problem '
.' and error as possible, and we can help resolve the issue.';
exit;
}

$_SESSION['test_value'] = 'test';
header('Location: ' . $_SERVER['PHP_SELF'] . '?tested=1');
exit;
}

}

function print_status($supported)
{
if ($supported) {
echo "<span style="color: #00f">Yes!</span>";
} else {
$error = true;
echo "<span style="color: #f00; font-weight: bold">No</span>";
}
}

function session_error_handler($errno, $errstr, $errfile, $errline)
{
$GLOBALS['session_start_error'] = $errstr;
return true;
}

?>
<html>
<head>
<title>Parasite HTTP Test Script</title>
</head>
<body>
<h2>Parasite HTTP Test Script</h2>
<p>This script will test your PHP installation to see if Parasite HTTP will run on your server.</p>
<ul>
<li><strong>Session Functionality:</strong>
<?php print_status($GLOBALS['session_start_error'] == null); ?>
<?php if ($GLOBALS['session_start_error'] != null): ?>
<br /><span style="color: #f00">There may be a problem with session support.</span><br /><?php echo $GLOBALS['session_start_error'] ?>
<br />
<?php endif; ?></li>
<li><strong>GD Support:</strong>
<?php print_status($gd_support = extension_loaded('gd')); ?>
</li>
<li><strong>SQLite Support:</strong>
<?php print_status(extension_loaded('pdo_sqlite')); ?><br />
</li>
<li><strong>MySQL Support:</strong>
<?php print_status(extension_loaded('pdo_mysql')); ?><br />
</li>
<li><strong>OpenSSL Support:</strong>
<?php print_status(extension_loaded('openssl')); ?><br />
</li>
<li><strong>IonCube Loader:</strong>
<?php print_status(extension_loaded('ionCube Loader')); ?><br />
</li>
<?php
if (function_exists('ioncube_loader_version')) {
$ioncubeVersion = ioncube_loader_version();
$ioncubeMajorVersion = (int) substr($ioncubeVersion, 0, strpos($ioncubeVersion, '.'));
$ioncubeMinorVersion = (int) substr($ioncubeVersion, strpos($ioncubeVersion, '.') + 1);
if ($ioncubeMajorVersion < 10) {
$error = true;
echo '<span style="color: #f00; font-weight: bold">IonCube Loader ' . $ioncubeVersion . ' - old, required is a minimum of IonCube Loader version 10.0</span><br>';
}
}
?>
</ul>

<?php if (!$error): ?>
<span style="color: green; font-weight: bold">Your server meets the requirements for using Parasite HTTP!</span>
<?php else: ?>
<span style="color: #f00; font-weight: bold">Based on the requirements, you do not have what it takes to run Parasite HTTP</span>
<?php endif; ?>
</body>
</html>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.