Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > > forminator > > > library >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
abstracts | Directory | - | - | |
addon | Directory | - | - | |
calculator | Directory | - | - | |
external | Directory | - | - | |
field-autofill-providers | Directory | - | - | |
fields | Directory | - | - | |
gateways | Directory | - | - | |
helpers | Directory | - | - | |
lib | Directory | - | - | |
mixpanel | Directory | - | - | |
model | Directory | - | - | |
modules | Directory | - | - | |
protection | Directory | - | - | |
render | Directory | - | - | |
class-api.php | File | 55565 bytes | March 03 2025 16:08:12. | |
class-autofill-loader.php | File | 6973 bytes | September 02 2024 15:32:28. | |
class-captcha-verification.php | File | 3739 bytes | April 14 2025 14:55:34. | |
class-core.php | File | 24198 bytes | May 19 2025 19:14:58. | |
class-database-tables.php | File | 5302 bytes | September 02 2024 15:32:28. | |
class-export-result.php | File | 2628 bytes | September 02 2024 15:32:28. | |
class-export.php | File | 62263 bytes | March 17 2025 17:29:02. | |
class-form-fields.php | File | 5115 bytes | February 03 2025 17:11:02. | |
class-forminator-hub-connector.php | File | 9488 bytes | July 14 2025 15:42:34. | |
class-geo.php | File | 4487 bytes | September 02 2024 15:32:28. | |
class-integration-loader.php | File | 19792 bytes | February 03 2025 17:11:02. | |
class-loader.php | File | 2597 bytes | February 03 2025 17:11:02. | |
class-migration.php | File | 29191 bytes | December 24 2024 20:31:58. | |
class-modules.php | File | 2028 bytes | September 02 2024 15:32:28. | |
class-page-cache.php | File | 8242 bytes | September 02 2024 15:32:28. | |
class-protection.php | File | 1059 bytes | September 02 2024 15:32:28. | |
class-reports.php | File | 7366 bytes | February 03 2025 17:11:02. | |
class-shortcode-generator.php | File | 16820 bytes | November 25 2024 21:22:22. | |
class-template-api.php | File | 7716 bytes | March 03 2025 16:08:12. | |
class-upgrade.php | File | 1535 bytes | February 03 2025 17:11:02. |
<?php /** * Forminator Loader * * @package Forminator */ if ( ! defined( 'ABSPATH' ) ) { die(); } /** * Class Forminator_Loader */ class Forminator_Loader { /** * Files * * @var array */ public $files = array(); /** * Forminator_Loader constructor. */ public function __construct() {} /** * Retrieve data * * @since 1.0 * @since 1.7 add $requirements * * @param string $dir Directory name. * @param array $requirements Requirements. * * @return mixed */ public function load_files( $dir, $requirements = array() ) { $files = scandir( forminator_plugin_dir() . $dir ); foreach ( $files as $file ) { if ( in_array( $file, array( 'paypal.php', 'stripe.php', 'stripe-payment-element.php' ), true ) && forminator_payments_disabled() ) { continue; } $path = forminator_plugin_dir() . $dir . '/' . $file; if ( $this->is_php( $file ) && is_file( $path ) ) { // check requirement. if ( ! empty( $requirements ) ) { if ( in_array( $file, array_keys( $requirements ), true ) ) { if ( ! $this->is_requirement_fulfilled( $requirements[ $file ] ) ) { continue; } } } // Get class name. $class_name = str_replace( '.php', '', $file ); // Include file. include_once $path; // Init class. $object = $this->init( $class_name ); $this->files[] = $object; } } return $this->files; } /** * Check if PHP file * * @since 1.0 * @param string $file Filename. * * @return bool */ public function is_php( $file ) { $check = substr( $file, - 4 ); if ( '.php' === $check ) { return true; } return false; } /** * Normalize class name * * @since 1.0 * @param string $name Name. * * @return mixed|string */ public function normalize( $name ) { $name = str_replace( '-', '_', $name ); $name = ucwords( $name ); return $name; } /** * Init class * * @since 1.0 * @param string $name Name. * * @return mixed */ private function init( $name ) { $class = 'Forminator_' . $this->normalize( $name ); if ( class_exists( $class ) ) { $object = new $class(); return $object; } } /** * Check if requirement fulfilled by system * * @since 1.7 * * @param array $requirement Requirement. * * @return bool */ private function is_requirement_fulfilled( $requirement ) { // check php version. if ( isset( $requirement['php'] ) ) { $version = $requirement['php']; if ( version_compare( PHP_VERSION, $version, 'lt' ) ) { return false; } } return true; } }
SILENT KILLER Tool