Server IP : 103.119.228.120 / Your IP : 3.144.101.75 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/softaculous/sitepad/editor/site-data/plugins/pagelayer-pro/ |
Upload File : |
<?php /* Plugin Name: Pagelayer Pro Plugin URI: https://pagelayer.com/ Description: Pagelayer is a WordPress page builder plugin. Its very easy to use and very light on the browser. Version: 1.8.5 Author: Pagelayer Team Author URI: https://pagelayer.com/ Text Domain: pagelayer-pro */ // We need the ABSPATH if (!defined('ABSPATH')) exit; if(!function_exists('add_action')){ echo 'You are not allowed to access this page directly.'; exit; } // If PAGELAYER_VERSION exists then the plugin is loaded already ! if(defined('PAGELAYER_PRO_VERSION')) { return; } define('PAGELAYER_PREMIUM', plugin_basename(__FILE__)); define('PAGELAYER_PRO_FILE', __FILE__); define('PAGELAYER_PRO_URL', plugins_url('', PAGELAYER_PRO_FILE)); $_tmp_plugins = get_option('active_plugins'); if(!defined('SITEPAD') && !in_array('pagelayer/pagelayer.php', $_tmp_plugins)){ add_action('plugins_loaded', 'pagelayer_pro_load_plugin'); function pagelayer_pro_load_plugin(){ // Nag informing the user to install the free version. if(current_user_can('activate_plugins')){ add_action('admin_notices', 'pagelayer_pro_free_version_nag', 9); add_action('admin_menu', 'pagelayer_pro_add_menu', 9); $pl_free_installed = get_option('pagelayer_free_installed'); if(!empty($pl_free_installed)){ return; } // Include the necessary stuff include_once(ABSPATH . 'wp-admin/includes/plugin-install.php'); include_once(ABSPATH . 'wp-admin/includes/plugin.php'); include_once(ABSPATH . 'wp-admin/includes/file.php'); if( file_exists( WP_PLUGIN_DIR . '/pagelayer/pagelayer.php' ) && is_plugin_inactive( '/pagelayer/pagelayer.php' ) ) { update_option('pagelayer_free_installed', time()); activate_plugin('/pagelayer/pagelayer.php'); remove_action('admin_notices', 'pagelayer_pro_free_version_nag', 9); remove_action('admin_menu', 'pagelayer_pro_add_menu', 9); return; } // Includes necessary for Plugin_Upgrader and Plugin_Installer_Skin include_once(ABSPATH . 'wp-admin/includes/misc.php'); include_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'); // Filter to prevent the activate text add_filter('install_plugin_complete_actions', 'pagelayer_pro_prevent_activation_text', 10, 3); $upgrader = new Plugin_Upgrader(new WP_Ajax_Upgrader_Skin()); $installed = $upgrader->install('https://downloads.wordpress.org/plugin/pagelayer.zip'); if(!is_wp_error($installed) && $installed){ update_option('pagelayer_free_installed', time()); activate_plugin('pagelayer/pagelayer.php'); remove_action('admin_notices', 'pagelayer_pro_free_version_nag', 9); remove_action('admin_menu', 'pagelayer_pro_add_menu', 9); //wp_safe_redirect(admin_url('/')); } } } // Do not shows the activation text if function pagelayer_pro_prevent_activation_text($install_actions, $api, $plugin_file){ if($plugin_file == 'pagelayer/pagelayer.php'){ return array(); } return $install_actions; } function pagelayer_pro_free_version_nag(){ echo '<div class="notice notice-error"> <p style="font-size:16px;">You have not installed the free version of Pagelayer. Pagelayer Pro depends on the free version, so you must install it first in order to use Pagelayer. <a href="'.admin_url('plugin-install.php?s=pagelayer&tab=search').'" class="button button-primary">Install Now</a></p> </div>'; } function pagelayer_pro_add_menu(){ add_menu_page('Pagelayer Dahsboard', 'Pagelayer', 'activate_plugins', 'pagelayer', 'pagelayer_pro_menu_page', PAGELAYER_PRO_URL.'/images/pagelayer-logo-19.png'); } function pagelayer_pro_menu_page(){ echo '<div style="color: #333;padding: 50px;text-align: center;"> <h1 style="font-size: 2em;margin-bottom: 10px;">Pagelayer Free version is not installed!</h> <p style=" font-size: 16px;margin-bottom: 20px; font-weight:400;">Pagelayer Pro depends on the free version of Pagelayer, so you need to install the free version first.</p> <a href="'.admin_url('plugin-install.php?s=pagelayer&tab=search').'" style="text-decoration: none;font-size:16px;">Install Now</a> </div>'; } return; } include_once(dirname(__FILE__).'/init.php');