| Server IP : 118.139.160.155 / Your IP : 216.73.217.153 Web Server : Apache System : Linux sg2plmcpnl504228.prod.sin2.secureserver.net 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64 User : twll3xqyaqrh ( 9725459) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/twll3xqyaqrh/public_html/Site WP/wp-content/plugins/redux-framework/extendify-sdk/app/ |
Upload File : |
<?php
/**
* The App details file
*/
namespace Extendify\Library;
use Extendify\Library\Plugin;
/**
* Controller for handling various app data
*/
class App
{
/**
* Plugin name
*
* @var string
*/
public static $name = '';
/**
* Plugin slug
*
* @var string
*/
public static $slug = '';
/**
* Plugin version
*
* @var string
*/
public static $version = '';
/**
* Plugin API REST version
*
* @var string
*/
public static $apiVersion = 'v1';
/**
* Plugin text domain
*
* @var string
*/
public static $textDomain = '';
/**
* Plugin environment
*
* @var string
*/
public static $environment = '';
/**
* The partner plugin/theme
*
* @var string
*/
public static $sdkPartner = '';
/**
* Host plugin
*
* @var string
*/
public static $requiredCapability = 'upload_files';
/**
* Plugin config
*
* @var array
*/
public static $config = [];
/**
* Process the readme file to get version and name
*
* @return void
*/
public function __construct()
{
// Set the "partner" plugin/theme here with a fallback to support the previous plugin implementation.
self::$sdkPartner = isset($GLOBALS['extendify_sdk_partner']) ? $GLOBALS['extendify_sdk_partner'] : '';
if (!self::$sdkPartner && isset($GLOBALS['extendifySdkSourcePlugin'])) {
self::$sdkPartner = $GLOBALS['extendifySdkSourcePlugin'];
}
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
$readme = file_get_contents(dirname(__DIR__) . '/readme.txt');
preg_match('/=== (.+) ===/', $readme, $matches);
self::$name = $matches[1];
self::$slug = strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', self::$name), '-'));
preg_match('/Stable tag: ([0-9.:]+)/', $readme, $matches);
self::$version = $matches[1];
// An easy way to check if we are in dev mode is to look for a dev specific file.
$isDev = is_readable(EXTENDIFY_PATH . 'node_modules') || is_readable(EXTENDIFY_PATH . '.devbuild');
self::$environment = $isDev ? 'DEVELOPMENT' : 'PRODUCTION';
self::$textDomain = Plugin::getPluginInfo('TextDomain', self::$slug);
// Add the config.
// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
$config = file_get_contents(dirname(__DIR__) . '/config.json');
self::$config = json_decode($config, true);
}
}