Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-content/plugins/really-simple-ssl/security
NameTypeSizeActions
📁 .. Folder -
📄 class-rsssl-htaccess-file-manager.php File 20985
Edit Download
📄 cron.php File 4169
Edit Download
📄 deactivate-integration.php File 1611
Edit Download
📄 firewall-manager.php File 22754
Edit Download
📄 functions.php File 20506
Edit Download
📄 hardening.php File 2260
Edit Download
📁 includes Folder -
📄 index.php File 32
Edit Download
📄 integrations.php File 4813
Edit Download
📄 notices.php File 6174
Edit Download
📄 security.php File 1805
Edit Download
📁 server Folder -
📄 sync-settings.php File 2860
Edit Download
📁 tests Folder -
📄 tests.php File 13704
Edit Download
📁 wordpress Folder -
risk_naming = [ 'l' => __('low-risk', 'really-simple-ssl'), 'm' => __('medium-risk', 'really-simple-ssl'), 'h' => __('high-risk', 'really-simple-ssl'), 'c' => __('critical', 'really-simple-ssl'), ]; } function hardening_data( array $response, string $action, $data ): array { if ( ! rsssl_user_can_manage() ) { return $response; } if ($action === 'hardening_data') { $response = $this->get_stats( $data ); } return $response; } static function this() { return self::$_this; } /* Public Section 2: DataGathering */ /** * @param $data * * @return array */ public function get_stats($data): array { if ( ! rsssl_user_can_manage() ) { return []; } $vulEnabled = rsssl_get_option('enable_vulnerability_scanner'); //now we fetch all plugins that have an update available. $stats = [ 'updates' => $this->getAllUpdatesCount(), 'lastChecked' => time(), 'riskNaming' => $this->risk_naming, 'vulEnabled' => $vulEnabled, ]; $repsonse = [ "request_success" => true, 'data' => apply_filters('rsssl_vulnerability_data', $stats), ]; return $repsonse; } /** * Gets the count of all available updates for core, plugins, and themes. * * @return int The count of all available updates. */ public function getAllUpdatesCount(): int { $updatesData = wp_get_update_data(); // Checks if the 'counts' key exists in the array and it's an array itself. if (isset($updatesData['counts']) && is_array($updatesData['counts'])) { //we only want core, plugins and themes. $updatesCounts = array_slice($updatesData['counts'], 0, 3); return array_sum($updatesCounts); } // Fallback return in case there's no 'counts' key or it's not an array. return 0; } }