| Server IP : 162.214.67.83 / Your IP : 216.73.217.9 Web Server : Apache System : Linux dedi-13542965.clustter.com.br 5.14.0-687.20.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 30 06:22:49 EDT 2026 x86_64 User : pjacortinas ( 1096) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/pjacortinas/www/wp-content/plugins/formlayer/ |
Upload File : |
<?php
/**
Plugin Name: FormLayer
Plugin URI: https://formlayer.net
Description: Build fast and powerful contact forms in WordPress with an intuitive drag-and-drop builder packed with smart features.
Version: 1.0.7
Author: Softaculous Team
Author URI: https://softaculous.com/
Text Domain: formlayer
License: GPLv2
*/
if(!defined('ABSPATH')){
exit;
}
if(!function_exists('add_action')){
echo 'You are not allowed to access this page directly.';
exit;
}
// Define Constants
define('FORMLAYER_VERSION', '1.0.7' );
define('FORMLAYER_FILE', __FILE__);
define('FORMLAYER_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('FORMLAYER_PLUGIN_URL', plugin_dir_url(__FILE__));
define('FORMLAYER_ASSETS_URL', FORMLAYER_PLUGIN_URL . 'assets');
function formlayer_autoloader($class){
if(!preg_match('/^FormLayer\\\(.*)/is', $class, $m)){
return;
}
$m[1] = str_replace('\\', '/', $m[1]);
$file = FORMLAYER_PLUGIN_DIR . 'main/' . strtolower($m[1]) . '.php';
if(file_exists($file)){
include_once($file);
}
}
spl_autoload_register('formlayer_autoloader');
register_activation_hook(FORMLAYER_FILE, '\FormLayer\Install::activate');
register_deactivation_hook(FORMLAYER_FILE, '\FormLayer\Install::deactivate');
register_uninstall_hook(FORMLAYER_FILE, '\FormLayer\Install::uninstall');
add_action('plugins_loaded', 'formlayer_load_plugin');
/**
* Initialize plugin on plugins_loaded hook
*/
function formlayer_load_plugin(){
global $formlayer;
if(empty($formlayer)){
$formlayer = new stdClass();
}
if(wp_doing_ajax()){
\FormLayer\Ajax::hooks();
}
// Load frontend class and init (priority 15)
add_action('init', '\FormLayer\Frontend::init', 15);
if(is_admin()){
\FormLayer\Admin::init();
return;
}
}