if ($code[strlen($code) - 1] == "\n") {
$code = substr($code, 0, -1);
}
-//var_dump($code);
+
$code = str_replace(array('>', '<'), array('>', '<'), $code);
$code = highlight_string('<?php ' . $code, true);
$code = str_replace('<span style="color: #0000BB"><?php <br />', '<span style="color: #0000BB">', $code);
-//echo($code);
+
$out = $out . substr($content, $last, $start + strlen($starttag) - $last) . $code . $endtag;
$last = $end + strlen($endtag);
}
class Client
{
/// @todo: do these need to be public?
- public $path;
+ public $method = 'http';
public $server;
public $port = 0;
- public $method = 'http';
+ public $path;
+
public $errno;
public $errstr;
public $debug = 0;
+
public $username = '';
public $password = '';
public $authtype = 1;
+
public $cert = '';
public $certpass = '';
public $cacert = '';
public $verifypeer = true;
public $verifyhost = 2;
public $sslversion = 0; // corresponds to CURL_SSLVERSION_DEFAULT
- public $no_multicall = false;
+
public $proxy = '';
public $proxyport = 0;
public $proxy_user = '';
public $proxy_pass = '';
public $proxy_authtype = 1;
+
public $cookies = array();
public $extracurlopts = array();
+ public $no_multicall = false;
+
/**
* List of http compression methods accepted by the client for responses.
* NB: PHP supports deflate, gzip compressions out of the box if compiled w. zlib.