403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.101
Web Server : Apache
System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : bsiadvisil ( 110003)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bsiadvisil/www/plugins/system/msframework/helper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/bsiadvisil/www/plugins/system/msframework/helper/api.php
<?php
/**
 * MS Framework
 *
 * @package    	MS Framework Plugin
 * @version 	1.2.1.573
 *
 * @author 		Michael Snoeren
 * @link 		https://snoerendevelopment.nl/
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

// Deny direct access
defined('_JEXEC') or die;

abstract class MSFrameworkAPI
{
	/**
	 * Register an install
	 * @param 	String 	$alias 	The external extension alias
	 * @access 	Public
	 * @return 	Boolean
	 */
	public static function register($alias)
	{
		if (empty($alias)) {
			return false;
		}

		// POST to the API
		$response 				= MSFrameworkHTTP::post(
			MSFramework::BASEURL . 'install/register?format=json',
			[
				'alias' => $alias,
				'key' => MSFrameworkKey::get(),
				'host' => $_SERVER['HTTP_HOST']
			],
			15
		);

		// Parse the response
		if (empty($response)) {
			return false;
		}

		$json 					= @json_decode($response, true);

		return (!is_null($json) && count($json) && (int) $json['status'] === 1);
	}

	/**
	 * Unregister an install
	 * @param 	String 	$alias 	The external extension alias
	 * @access 	Public
	 * @return 	Boolean
	 */
	public static function unregister($alias)
	{
		return true;
	}

	/**
	 * Get the version of an extension
	 * @param 	String 	$alias 	The external extension alias
	 * @access 	Public
	 * @return 	String
	 */
	public static function getVersion($alias)
	{
		if (empty($alias)) {
			return '';
		}

		// POST to the API
		$response 				= MSFrameworkHTTP::post(
			MSFramework::BASEURL . 'api/getVersion',
			['alias' => $alias]
		);

		// Parse the response
		if (empty($response)) {
			return false;
		}

		$json 					= @json_decode($response, true);

		if (is_null($json) || !count($json) || !array_key_exists('version', $json) || empty($json['version'])) {
			return false;
		}

		return $json['version'];
	}

	/**
	 * Get the extensions as array
	 * @access 	Public
	 * @return 	Array
	 */
	public static function getExtensions()
	{
		$response 				= MSFrameworkHTTP::get(MSFramework::BASEURL . 'api/getExtensions');

		// Parse the response
		if (empty($response)) {
			return [];
		}

		$json 					= @json_decode($response, true);

		if (is_null($json) || !count($json)) {
			return array();
		}

		return $json;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit