Skip to content

Instantly share code, notes, and snippets.

@3D-I 3D-I/fb.php

Last active Mar 16, 2016
What would you like to do?
Checks the SSL and cURL status of your server configuration
* Usage: Download and unzip the file, upload it to your Board's root (i.e.:
* Point your browser to i.e.: - results will be on your screen
* @package - fb.php 1.0.0-a1
* @copyright (c) 2016 3Di (Marco T.) 14-Mar-2016
* @license GNU General Public License v2
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$v = curl_version();
print $v['ssl_version'];
if (curl_version()['features'] & CURL_VERSION_SSL)
echo "<br>SSL is supported with this cURL installation.";
else if (!curl_version()['features'] & CURL_VERSION_SSL)
echo "<br>SSL is not supported with this cURL installation.";
if (extension_loaded('openssl'))
echo '<br>https = extension openssl is loaded';
else if (!extension_loaded('openssl'))
echo '<br>http = extension openssl not loaded';
/* Is allow_url_fopen enabled */
echo '<br>allow_url_fopen is enabled<br>';
else if(!ini_get('allow_url_fopen'))
echo '<br>allow_url_fopen is disabled<br>';
/* if https is in the list is also good */
echo '<br>If https is in this list is also good: <br>';
echo implode(', ', stream_get_wrappers());
/* Attempting to delete this file */
function remove_me()
/** Windows IIS servers may have a problem with unlinking recently created files.
* * So check if file exists and give a message
if (file_exists(__FILE__))
echo '<font color="blue">File could not be deleted. You will
need to manually delete the ' . basename(__FILE__) . ' file from the server.</font>';
/* Hasta la vista! */
echo '<br><br><br><font color="blue">Copy-paste these results or make a screenshot for further support...<br>...I am self destroying, hasta la vista!</font>';
/* uncomment the following line to turn on PHP info. */
/* comment out the following line to turn off the self-destroyer. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.