<?php

function _isCurl()
{
    return function_exists('curl_version');
}
if (!_iscurl()) {
    echo "Curl disabled";
} else {
    echo "Curl enabled<br/>";
    echo "pre_init<br/>";
    $url = "https://api.sandbox.justgiving.com/docs";
    $ch = curl_init($url);
    echo "post_init<br/>";
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    echo "post_setopt<br/>";
    echo "pre_exec<br/>";
    $result = curl_exec($ch);
    $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    $type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
    curl_close($ch);
    echo "post_close<br/>";
    echo "result: <br/>";
    echo $result;
}
Example #2
0
								<?php 
$currTimeLimit = @set_time_limit(300);
$changedTimeLimit = ini_get('max_execution_time');
echo getBullets($changedTimeLimit == 300 ? 1 : 0);
?>
							</td>
						</tr>
						<tr>
							<td><?php 
echo sh('6mxg6vwg4n');
?>
Curl Extension</td>
							<td>Yes</td>
							<td>
								<?php 
echo getBullets(_iscurl() ? 1 : 0);
?>
							</td>
						</tr>
						<tr>
							<td><?php 
echo sh('KX1M7KaMmV');
?>
fopen Extension</td>
							<td>Yes</td>
							<td>
								<?php 
echo getBullets(function_exists('fopen') ? 1 : 0);
?>
							</td>
						</tr>
Example #3
0
<?php

echo base64_decode(LETHE_POWERED);
/* System Notices */
if (lethe_system_notices) {
    if (_iscurl()) {
        echo '<div id="lethe-notice-box" class="hidden-xs hidden-sm"><div id="lethe-notices"></div></div>
			<script type="text/javascript">
				$(document).ready(function () {
					$("#lethe-notices").ticker({
						htmlFeed: false,
						ajaxFeed: true,
						feedUrl: "ext/lethe.feeds.php?v=' . LETHE_VERSION . '",
						feedType: "xml",
						titleText: "NOTICES",
						displayType: "fade",
						pauseOnItems: 5000,
						controls: false
					});
				});
			</script>
			';
    }
}
/* Sidera Helper */
if (SIDERA_HELPER) {
    echo '<script type="text/javascript">
				var sidera_helper_uri = "' . SIDERA_HELPER_URL . '";
			  </script>';
}