X7ROOT File Manager
Current Path:
/var/softaculous/sitepad/editor/site-inc
var
/
softaculous
/
sitepad
/
editor
/
site-inc
/
ðŸ“
..
ðŸ“
ID3
ðŸ“
IXR
ðŸ“
PHPMailer
ðŸ“
Requests
ðŸ“
SimplePie
ðŸ“
Text
📄
admin-bar.php
(29.03 KB)
📄
atomlib.php
(11.56 KB)
📄
author-template.php
(16.22 KB)
📄
blocks.php
(12.43 KB)
📄
bookmark-template.php
(11.64 KB)
📄
bookmark.php
(13.55 KB)
📄
bootstrap.php
(4.11 KB)
📄
cache.php
(21.35 KB)
📄
canonical.php
(27.83 KB)
📄
capabilities.php
(28.84 KB)
📄
category-template.php
(50.8 KB)
📄
category.php
(12.41 KB)
ðŸ“
certificates
📄
class-IXR.php
(2.51 KB)
📄
class-feed.php
(523 B)
📄
class-http.php
(36.22 KB)
📄
class-json.php
(39.53 KB)
📄
class-oembed.php
(30.73 KB)
📄
class-phpass.php
(7.15 KB)
📄
class-phpmailer.php
(668 B)
📄
class-pop3.php
(20.43 KB)
📄
class-requests.php
(29.09 KB)
📄
class-simplepie.php
(87.17 KB)
📄
class-smtp.php
(461 B)
📄
class-walker-category-dropdown.php
(2.07 KB)
📄
class-walker-category.php
(6.62 KB)
📄
class-walker-comment.php
(13.33 KB)
📄
class-walker-nav-menu.php
(8.38 KB)
📄
class-walker-page-dropdown.php
(2.24 KB)
📄
class-walker-page.php
(6.78 KB)
📄
class-wp-admin-bar.php
(16.08 KB)
📄
class-wp-ajax-response.php
(5.01 KB)
📄
class-wp-block-parser.php
(14.86 KB)
📄
class-wp-block-type-registry.php
(4.63 KB)
📄
class-wp-block-type.php
(4.7 KB)
📄
class-wp-comment-query.php
(42.21 KB)
📄
class-wp-comment.php
(8.75 KB)
📄
class-wp-customize-control.php
(24.49 KB)
📄
class-wp-customize-manager.php
(195.47 KB)
📄
class-wp-customize-nav-menus.php
(53.08 KB)
📄
class-wp-customize-panel.php
(9.42 KB)
📄
class-wp-customize-section.php
(9.99 KB)
📄
class-wp-customize-setting.php
(27.59 KB)
📄
class-wp-dependency.php
(2.28 KB)
📄
class-wp-editor.php
(66.27 KB)
📄
class-wp-embed.php
(14.38 KB)
📄
class-wp-error.php
(4.81 KB)
📄
class-wp-feed-cache-transient.php
(2.5 KB)
📄
class-wp-feed-cache.php
(749 B)
📄
class-wp-hook.php
(13.77 KB)
📄
class-wp-http-cookie.php
(6.44 KB)
📄
class-wp-http-curl.php
(11.64 KB)
📄
class-wp-http-encoding.php
(6.35 KB)
📄
class-wp-http-ixr-client.php
(3.25 KB)
📄
class-wp-http-proxy.php
(5.92 KB)
📄
class-wp-http-requests-hooks.php
(1.83 KB)
📄
class-wp-http-requests-response.php
(4.19 KB)
📄
class-wp-http-response.php
(2.8 KB)
📄
class-wp-http-streams.php
(15.02 KB)
📄
class-wp-image-editor-gd.php
(13.18 KB)
📄
class-wp-image-editor-imagick.php
(21.27 KB)
📄
class-wp-image-editor.php
(11.49 KB)
📄
class-wp-list-util.php
(6.25 KB)
📄
class-wp-locale-switcher.php
(4.91 KB)
📄
class-wp-locale.php
(14.26 KB)
📄
class-wp-matchesmapregex.php
(1.76 KB)
📄
class-wp-meta-query.php
(22.86 KB)
📄
class-wp-metadata-lazyloader.php
(5.26 KB)
📄
class-wp-network-query.php
(16.79 KB)
📄
class-wp-network.php
(11.93 KB)
📄
class-wp-oembed-controller.php
(5.88 KB)
📄
class-wp-post-type.php
(17.81 KB)
📄
class-wp-post.php
(6.28 KB)
📄
class-wp-query.php
(127.67 KB)
📄
class-wp-rewrite.php
(58.42 KB)
📄
class-wp-role.php
(2.6 KB)
📄
class-wp-roles.php
(8.13 KB)
📄
class-wp-session-tokens.php
(7.25 KB)
📄
class-wp-simplepie-file.php
(2.27 KB)
📄
class-wp-simplepie-sanitize-kses.php
(1.73 KB)
📄
class-wp-site-query.php
(26.78 KB)
📄
class-wp-site.php
(7.13 KB)
📄
class-wp-tax-query.php
(18.81 KB)
📄
class-wp-taxonomy.php
(10.41 KB)
📄
class-wp-term-query.php
(33.84 KB)
📄
class-wp-term.php
(5.14 KB)
📄
class-wp-text-diff-renderer-inline.php
(716 B)
📄
class-wp-text-diff-renderer-table.php
(16.06 KB)
📄
class-wp-theme.php
(48.09 KB)
📄
class-wp-user-meta-session-tokens.php
(2.92 KB)
📄
class-wp-user-query.php
(30.49 KB)
📄
class-wp-user.php
(20.91 KB)
📄
class-wp-walker.php
(12.39 KB)
📄
class-wp-widget-factory.php
(3.69 KB)
📄
class-wp-widget.php
(17.41 KB)
📄
class-wp-xmlrpc-server.php
(202.08 KB)
📄
class-wp.php
(24.18 KB)
📄
class.wp-dependencies.php
(11.24 KB)
📄
class.wp-scripts.php
(16.79 KB)
📄
class.wp-styles.php
(9.61 KB)
📄
comment-template.php
(87.64 KB)
📄
comment.php
(111.72 KB)
📄
compat.php
(15.99 KB)
📄
cron.php
(30.82 KB)
ðŸ“
css
ðŸ“
customize
📄
date.php
(34.34 KB)
📄
default-constants.php
(9.61 KB)
📄
default-filters.php
(24.68 KB)
📄
default-widgets.php
(2.13 KB)
📄
embed.php
(44.04 KB)
📄
feed-atom-comments.php
(5.33 KB)
📄
feed-atom.php
(3.09 KB)
📄
feed-rdf.php
(2.67 KB)
📄
feed-rss.php
(1.25 KB)
📄
feed-rss2-comments.php
(4.09 KB)
📄
feed-rss2.php
(3.77 KB)
📄
feed.php
(19.29 KB)
ðŸ“
fonts
📄
formatting.php
(278.69 KB)
📄
functions.php
(207.2 KB)
📄
functions.wp-scripts.php
(12.53 KB)
📄
functions.wp-styles.php
(8.03 KB)
📄
general-template.php
(138.46 KB)
📄
http.php
(21.9 KB)
ðŸ“
images
ðŸ“
js
📄
kses.php
(55.74 KB)
📄
l10n.php
(50.58 KB)
📄
link-template.php
(135.4 KB)
📄
load.php
(36.4 KB)
📄
media-template.php
(46.33 KB)
📄
media.php
(141.33 KB)
📄
meta.php
(44.98 KB)
📄
mime.php
(39.54 KB)
📄
nav-menu-template.php
(21.2 KB)
📄
nav-menu.php
(39.57 KB)
📄
open_basedir.php
(21 B)
📄
option.php
(67.91 KB)
📄
pluggable.php
(97.52 KB)
📄
plugin.php
(31.37 KB)
ðŸ“
pomo
📄
post-formats.php
(6.86 KB)
📄
post-template.php
(60.07 KB)
📄
post-thumbnail-template.php
(8.75 KB)
📄
post.php
(227.37 KB)
📄
query.php
(31.24 KB)
ðŸ“
random_compat
ðŸ“
rest-api
📄
rest-api.php
(40.67 KB)
📄
revision.php
(21.08 KB)
📄
rewrite.php
(17.27 KB)
📄
rss.php
(22.66 KB)
📄
script-loader.php
(98.75 KB)
📄
shortcodes.php
(20.25 KB)
📄
sitepad_functions.php
(19.26 KB)
📄
sitepad_functions2.php
(21.99 KB)
📄
spl-autoload-compat.php
(2.51 KB)
📄
taxonomy.php
(152.95 KB)
📄
template-loader.php
(2.55 KB)
📄
template.php
(19.77 KB)
ðŸ“
theme-compat
📄
theme.php
(99.09 KB)
📄
update.php
(24.81 KB)
📄
user.php
(120.69 KB)
📄
vars.php
(5.59 KB)
📄
version.php
(2.03 KB)
ðŸ“
widgets
📄
widgets.php
(55.82 KB)
📄
wlwmanifest.xml
(1.03 KB)
📄
wp-db.php
(99.29 KB)
📄
wp-diff.php
(662 B)
Editing: class-wp-http-curl.php
<?php /** * HTTP API: WP_Http_Curl class * * @package WordPress * @subpackage HTTP * @since 4.4.0 */ /** * Core class used to integrate Curl as an HTTP transport. * * HTTP request method uses Curl extension to retrieve the url. * * Requires the Curl extension to be installed. * * @since 2.7.0 */ class WP_Http_Curl { /** * Temporary header storage for during requests. * * @since 3.2.0 * @var string */ private $headers = ''; /** * Temporary body storage for during requests. * * @since 3.6.0 * @var string */ private $body = ''; /** * The maximum amount of data to receive from the remote server. * * @since 3.6.0 * @var int */ private $max_body_length = false; /** * The file resource used for streaming to file. * * @since 3.6.0 * @var resource */ private $stream_handle = false; /** * The total bytes written in the current request. * * @since 4.1.0 * @var int */ private $bytes_written_total = 0; /** * Send a HTTP request to a URI using cURL extension. * * @since 2.7.0 * * @param string $url The request URL. * @param string|array $args Optional. Override the defaults. * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error */ public function request( $url, $args = array() ) { $defaults = array( 'method' => 'GET', 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => null, 'cookies' => array(), ); $r = wp_parse_args( $args, $defaults ); if ( isset( $r['headers']['User-Agent'] ) ) { $r['user-agent'] = $r['headers']['User-Agent']; unset( $r['headers']['User-Agent'] ); } elseif ( isset( $r['headers']['user-agent'] ) ) { $r['user-agent'] = $r['headers']['user-agent']; unset( $r['headers']['user-agent'] ); } // Construct Cookie: header if any cookies are set. WP_Http::buildCookieHeader( $r ); $handle = curl_init(); // cURL offers really easy proxy support. $proxy = new WP_HTTP_Proxy(); if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { curl_setopt( $handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP ); curl_setopt( $handle, CURLOPT_PROXY, $proxy->host() ); curl_setopt( $handle, CURLOPT_PROXYPORT, $proxy->port() ); if ( $proxy->use_authentication() ) { curl_setopt( $handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY ); curl_setopt( $handle, CURLOPT_PROXYUSERPWD, $proxy->authentication() ); } } $is_local = isset( $r['local'] ) && $r['local']; $ssl_verify = isset( $r['sslverify'] ) && $r['sslverify']; if ( $is_local ) { /** This filter is documented in site-inc/class-wp-http-streams.php */ $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url ); } elseif ( ! $is_local ) { /** This filter is documented in site-inc/class-http.php */ $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url ); } /* * CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers. Have to use ceil since. * a value of 0 will allow an unlimited timeout. */ $timeout = (int) ceil( $r['timeout'] ); curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout ); curl_setopt( $handle, CURLOPT_TIMEOUT, $timeout ); curl_setopt( $handle, CURLOPT_URL, $url ); curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === true ) ? 2 : false ); curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, $ssl_verify ); if ( $ssl_verify ) { curl_setopt( $handle, CURLOPT_CAINFO, $r['sslcertificates'] ); } curl_setopt( $handle, CURLOPT_USERAGENT, $r['user-agent'] ); /* * The option doesn't work with safe mode or when open_basedir is set, and there's * a bug #17490 with redirected POST requests, so handle redirections outside Curl. */ curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, false ); if ( defined( 'CURLOPT_PROTOCOLS' ) ) { // PHP 5.2.10 / cURL 7.19.4 curl_setopt( $handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS ); } switch ( $r['method'] ) { case 'HEAD': curl_setopt( $handle, CURLOPT_NOBODY, true ); break; case 'POST': curl_setopt( $handle, CURLOPT_POST, true ); curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); break; case 'PUT': curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' ); curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); break; default: curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $r['method'] ); if ( ! is_null( $r['body'] ) ) { curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); } break; } if ( true === $r['blocking'] ) { curl_setopt( $handle, CURLOPT_HEADERFUNCTION, array( $this, 'stream_headers' ) ); curl_setopt( $handle, CURLOPT_WRITEFUNCTION, array( $this, 'stream_body' ) ); } curl_setopt( $handle, CURLOPT_HEADER, false ); if ( isset( $r['limit_response_size'] ) ) { $this->max_body_length = intval( $r['limit_response_size'] ); } else { $this->max_body_length = false; } // If streaming to a file open a file handle, and setup our curl streaming handler. if ( $r['stream'] ) { if ( ! WP_DEBUG ) { $this->stream_handle = @fopen( $r['filename'], 'w+' ); } else { $this->stream_handle = fopen( $r['filename'], 'w+' ); } if ( ! $this->stream_handle ) { return new WP_Error( 'http_request_failed', sprintf( /* translators: 1: fopen(), 2: file name */ __( 'Could not open handle for %1$s to %2$s.' ), 'fopen()', $r['filename'] ) ); } } else { $this->stream_handle = false; } if ( ! empty( $r['headers'] ) ) { // cURL expects full header strings in each element. $headers = array(); foreach ( $r['headers'] as $name => $value ) { $headers[] = "{$name}: $value"; } curl_setopt( $handle, CURLOPT_HTTPHEADER, $headers ); } if ( $r['httpversion'] == '1.0' ) { curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 ); } else { curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1 ); } /** * Fires before the cURL request is executed. * * Cookies are not currently handled by the HTTP API. This action allows * plugins to handle cookies themselves. * * @since 2.8.0 * * @param resource $handle The cURL handle returned by curl_init() (passed by reference). * @param array $r The HTTP request arguments. * @param string $url The request URL. */ do_action_ref_array( 'http_api_curl', array( &$handle, $r, $url ) ); // We don't need to return the body, so don't. Just execute request and return. if ( ! $r['blocking'] ) { curl_exec( $handle ); if ( $curl_error = curl_error( $handle ) ) { curl_close( $handle ); return new WP_Error( 'http_request_failed', $curl_error ); } if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) ) { curl_close( $handle ); return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) ); } curl_close( $handle ); return array( 'headers' => array(), 'body' => '', 'response' => array( 'code' => false, 'message' => false, ), 'cookies' => array(), ); } curl_exec( $handle ); $theHeaders = WP_Http::processHeaders( $this->headers, $url ); $theBody = $this->body; $bytes_written_total = $this->bytes_written_total; $this->headers = ''; $this->body = ''; $this->bytes_written_total = 0; $curl_error = curl_errno( $handle ); // If an error occurred, or, no response. if ( $curl_error || ( 0 == strlen( $theBody ) && empty( $theHeaders['headers'] ) ) ) { if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error ) { if ( ! $this->max_body_length || $this->max_body_length != $bytes_written_total ) { if ( $r['stream'] ) { curl_close( $handle ); fclose( $this->stream_handle ); return new WP_Error( 'http_request_failed', __( 'Failed to write request to temporary file.' ) ); } else { curl_close( $handle ); return new WP_Error( 'http_request_failed', curl_error( $handle ) ); } } } else { if ( $curl_error = curl_error( $handle ) ) { curl_close( $handle ); return new WP_Error( 'http_request_failed', $curl_error ); } } if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) ) { curl_close( $handle ); return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) ); } } curl_close( $handle ); if ( $r['stream'] ) { fclose( $this->stream_handle ); } $response = array( 'headers' => $theHeaders['headers'], 'body' => null, 'response' => $theHeaders['response'], 'cookies' => $theHeaders['cookies'], 'filename' => $r['filename'], ); // Handle redirects. if ( false !== ( $redirect_response = WP_HTTP::handle_redirects( $url, $r, $response ) ) ) { return $redirect_response; } if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode( $theHeaders['headers'] ) ) { $theBody = WP_Http_Encoding::decompress( $theBody ); } $response['body'] = $theBody; return $response; } /** * Grabs the headers of the cURL request. * * Each header is sent individually to this callback, so we append to the `$header` property * for temporary storage * * @since 3.2.0 * * @param resource $handle cURL handle. * @param string $headers cURL request headers. * @return int Length of the request headers. */ private function stream_headers( $handle, $headers ) { $this->headers .= $headers; return strlen( $headers ); } /** * Grabs the body of the cURL request. * * The contents of the document are passed in chunks, so we append to the `$body` * property for temporary storage. Returning a length shorter than the length of * `$data` passed in will cause cURL to abort the request with `CURLE_WRITE_ERROR`. * * @since 3.6.0 * * @param resource $handle cURL handle. * @param string $data cURL request body. * @return int Total bytes of data written. */ private function stream_body( $handle, $data ) { $data_length = strlen( $data ); if ( $this->max_body_length && ( $this->bytes_written_total + $data_length ) > $this->max_body_length ) { $data_length = ( $this->max_body_length - $this->bytes_written_total ); $data = substr( $data, 0, $data_length ); } if ( $this->stream_handle ) { $bytes_written = fwrite( $this->stream_handle, $data ); } else { $this->body .= $data; $bytes_written = $data_length; } $this->bytes_written_total += $bytes_written; // Upon event of this function returning less than strlen( $data ) curl will error with CURLE_WRITE_ERROR. return $bytes_written; } /** * Determines whether this class can be used for retrieving a URL. * * @since 2.7.0 * * @param array $args Optional. Array of request arguments. Default empty array. * @return bool False means this class can not be used, true means it can. */ public static function test( $args = array() ) { if ( ! function_exists( 'curl_init' ) || ! function_exists( 'curl_exec' ) ) { return false; } $is_ssl = isset( $args['ssl'] ) && $args['ssl']; if ( $is_ssl ) { $curl_version = curl_version(); // Check whether this cURL version support SSL requests. if ( ! ( CURL_VERSION_SSL & $curl_version['features'] ) ) { return false; } } /** * Filters whether cURL can be used as a transport for retrieving a URL. * * @since 2.7.0 * * @param bool $use_class Whether the class can be used. Default true. * @param array $args An array of request arguments. */ return apply_filters( 'use_curl_transport', true, $args ); } }
Upload File
Create Folder