REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 4.94 KB
Close
/proc/self/root/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/app/Config.php
Text
Base64
<?php /** * The App details file */ namespace Extendify; defined('ABSPATH') || die('No direct access.'); use Extendify\Shared\Services\Sanitizer; /** * Controller for handling various app data */ class Config { /** * Plugin slug * * @var string */ public static $slug = 'extendify'; /** * The JS/CSS asset manifest (with hashes) * * @var array */ public static $assetManifest = []; /** * Plugin version * * @var string */ public static $version = ''; /** * Plugin API REST version * * @var string */ public static $apiVersion = 'v1'; /** * Partner Id * * @var string|null */ public static $partnerId = null; /** * Whether to load Launch * * @var boolean */ public static $showLaunch = false; /** * Plugin environment * * @var string */ public static $environment = ''; /** * Host plugin * * @var string */ public static $requiredCapability = EXTENDIFY_REQUIRED_CAPABILITY; /** * Plugin config * * @var array */ public static $config = []; /** * Whether Launch was finished * * @var boolean */ public static $launchCompleted = false; /** * Enabled preview features. * * @var array */ public static $previewFeatures = []; public static $enablePreviewFeatures = false; /** * Process the readme file to get version and name * * @return void */ public function __construct() { self::$partnerId = defined('EXTENDIFY_PARTNER_ID') ? constant('EXTENDIFY_PARTNER_ID') : null; $partnerData = PartnerData::getPartnerData(); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents $readme = file_get_contents(EXTENDIFY_PATH . 'readme.txt'); preg_match('/Stable tag: ([0-9.:]+)/', $readme, $matches); self::$version = $matches[1]; self::$assetManifest = wp_json_file_decode( EXTENDIFY_PATH . 'public/build/manifest.json', ['associative' => true] ); if (!get_option('extendify_first_installed_version')) { update_option('extendify_first_installed_version', Sanitizer::sanitizeText(self::$version)); } // Set up the Preview features // phpcs:ignore WordPress.Security.NonceVerification self::handlePreviewUrlOptIn($_GET); // An easy way to check if we are in dev mode is to look for a dev specific file. $isDev = is_readable(EXTENDIFY_PATH . '.devbuild'); self::$environment = $isDev ? 'DEVELOPMENT' : 'PRODUCTION'; self::$launchCompleted = (bool) get_option('extendify_onboarding_completed', false); self::$showLaunch = $isDev ? true : ((bool) ($partnerData['showLaunch'] ?? false)); } /** * Retrieves the value of a preview setting. * * This method first checks if the preview setting exists as a static property of the class. * If it does, it returns the value of that property. Otherwise, it looks for the * preview setting in the saved setting and returns its value if found. * * @param string $previewKey The key of the preview setting to retrieve. * * @return boolean The value of the setting if found or false if not found. */ public static function preview(string $previewKey) { if (self::$environment === 'DEVELOPMENT') { return true; } if (property_exists(self::class, $previewKey)) { return self::$previewFeatures[$previewKey]; } $previewFeatures = get_option('extendify_enable_preview_features_v1', []); return (bool) ($previewFeatures[$previewKey] ?? false); } /** * Processes preview features from URL parameters and enables them. * * This method checks for 'extendify-preview' parameters in the GET request * and enables the specified preview features. It supports both single feature * format (extendify-preview=feature1) and array format (extendify-preview[]=feature1). * All specified features are enabled and saved to the database. * * @param array $getParams The GET parameters that may contain 'extendify-preview' settings. * * @return void */ protected static function handlePreviewUrlOptIn(array $getParams = []) { if (!isset($getParams['extendify-preview'])) { return; } $previewParam = $getParams['extendify-preview']; $features = is_array($previewParam) ? $previewParam : [$previewParam]; self::$previewFeatures = get_option('extendify_enable_preview_features_v1', []); foreach ($features as $feature) { self::$previewFeatures[$feature] = true; } update_option('extendify_enable_preview_features_v1', Sanitizer::sanitizeArray(self::$previewFeatures)); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 11 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Agent
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Assist
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AutoLaunch
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Draft
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
HelpCenter
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Launch
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Library
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PageCreator
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PluginNotifications
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Recommendations
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Shared
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AdminPageRouter.php
12.72 KB
lrw-r--r--
2026-04-27 23:36:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ApiRouter.php
2.29 KB
lrw-r--r--
2025-06-09 17:02:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Config.php
4.94 KB
lrw-r--r--
2025-08-27 17:47:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Insights.php
7.15 KB
lrw-r--r--
2026-02-27 04:48:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PartnerData.php
11.32 KB
lrw-r--r--
2026-03-19 23:35:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SiteSettings.php
1.31 KB
lrw-r--r--
2025-05-22 22:26:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).