Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Wordpress Automatic Plugin
- Plugin URI: http://codecanyon.net/item/wordpress-automatic-plugin/1904470?ref=ValvePress
- Description: WordPress Automatic posts quality articles, Amazon products, Clickbank products, Youtube videos, eBay items, Flicker images, RSS feeds posts on auto-pilot and much more.
- Version: 3.49.0
- Author: ValvePress
- Author URI: http://codecanyon.net/user/ValvePress/portfolio?ref=ValvePress
- */
- function check_dynamic_key2($str, $salt) {
- $md5 = md5($str);
- $md5 = md5(sha1('Y5f6hDZsF4Wmx2mB'.$md5).$salt);
- return sha1(md5('ct9JFUQD6g7bFX9a'.hash('sha256', $md5.'5HizxJYiIv9ytoZ6')));
- }
- /* Copyright 2012-2020 Wordpress Automatic (email : [email protected]) */
- global $wpAutomaticTemp; //temp var used for displaying columns of campsigns
- global $wpAutomaticDemo;
- $wpAutomaticDemo = false;
- if(stristr($_SERVER['HTTP_HOST'], 'valvepress.com')) $wpAutomaticDemo = true;
- $licenseactive=get_option('wp_automatic_license_active','');
- if(trim($licenseactive) != ''){
- //fire checks
- require_once plugin_dir_path(__FILE__) . 'plugin-updates/plugin-update-checker.php';
- $wp_automatic_UpdateChecker = Puc_v4_Factory::buildUpdateChecker(
- 'https://deandev.com/upgrades/meta/wp-automatic.json',
- __FILE__,
- 'wp-automatic'
- );
- //append keys to the download url
- $wp_automatic_UpdateChecker->addResultFilter('wp_automatic_addResultFilter');
- // @ioncube.dk check_dynamic_key2('LxiUcc5SilPRaKCk', 'sBOScJZio593b179') -> 'a234a739fa799816b65608c44edbe8aea0dcc4d4' RANDOM
- function wp_automatic_addResultFilter($info){
- $wp_automatic_license = get_option('wp_automatic_license','');
- if(isset($info->download_url)){
- $info->download_url = $info->download_url . '&key='.$wp_automatic_license;
- }
- return $info;
- }
- }
- // amazon
- require_once ( dirname(__FILE__) . '/inc/amazon_api_class.php');
- /*
- * Stylesheets & JS loading
- */
- require_once 'p_scripts.php';
- /*
- * Creating a Custom Post Type
- */
- require_once 'post_type.php';
- /*
- * Creating the admin menu
- */
- require_once 'p_menu.php';
- /*
- * Settings
- */
- require_once 'p_options.php';
- /*
- * Log
- */
- require_once 'p_log.php';
- /*
- * Plugin functions
- */
- require_once 'p_functions.php';
- /*
- * ajax handling
- */
- require_once 'pajax.php';
- /*
- * ads adding
- */
- require_once 'p_ads.php';
- /*
- * Meta Box
- */
- require_once('p_meta.php');
- require_once('metabox_time.php');
- /*
- * Cron Schedule
- */
- require_once 'automatic_schedule.php';
- /*
- * clear feed cache
- */
- add_filter( 'wp_feed_cache_transient_lifetime', 'wp_automatic_feed_lifetime');
- // @ioncube.dk check_dynamic_key2('5HHYQ7jSzRbDfvym', 'RH5L3Dn7awre2jGt') -> 'e098328fcd16ea4617e4df40fb8c8a9d663e0468' RANDOM
- function wp_automatic_feed_lifetime( $a ){
- return 0 ;
- }
- if(! function_exists('do_not_cache_feeds')){
- // @ioncube.dk check_dynamic_key2('kDuBOGJEbQUS7pwx', 'ffktoCHljUlPw91a') -> 'ba9d5cdf31d7157200fc17537c072527c3ad550e' RANDOM
- function do_not_cache_feeds(&$feed) {
- $feed->enable_cache(false);
- }
- }
- add_action( 'wp_feed_options', 'do_not_cache_feeds' );
- /*
- * Filter the content to remove first image if active
- */
- require_once 'p_content_filter.php';
- /*
- * tables
- */
- global $wpdb;
- $mysqlVersion = $wpdb->db_version();
- if( version_compare($mysqlVersion, '5.5.3') > 0 ){
- register_activation_hook( __FILE__, 'create_table_all' );
- require_once 'p_tables.php';
- }
- //removes quick edit from custom post type list
- /**
- * custom request for cron job
- */
- // @ioncube.dk check_dynamic_key2('J7CZ1513bNx3uAt', '9hPpCL2GZkIIk3ie') -> '86cbd33c3c7860abbff489a82341a39925e50713' RANDOM
- function wp_automatic_parse_request($wp) {
- //secret word
- $wp_automatic_secret = trim(get_option('wp_automatic_cron_secret'));
- if(trim($wp_automatic_secret) == '') $wp_automatic_secret = 'cron';
- // only process requests with "my-plugin=ajax-handler"
- if (array_key_exists('wp_automatic', $wp->query_vars)) {
- if($wp->query_vars['wp_automatic'] == $wp_automatic_secret){
- require_once(dirname(__FILE__) . '/cron.php');
- exit;
- }elseif ($wp->query_vars['wp_automatic'] == 'download'){
- require_once 'downloader.php';
- exit;
- }elseif ($wp->query_vars['wp_automatic'] == 'test'){
- require_once 'test.php';
- exit;
- }elseif($wp->query_vars['wp_automatic'] == 'show_ip'){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_HEADER,0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
- curl_setopt($ch, CURLOPT_TIMEOUT,20);
- curl_setopt($ch, CURLOPT_REFERER, 'http://www.bing.com/');
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8');
- curl_setopt($ch, CURLOPT_MAXREDIRS, 5); // Good leeway for redirections.
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // Many login forms redirect at least once.
- //curl get
- $x='error';
- $url='http://www.whatismyip.com/';
- curl_setopt($ch, CURLOPT_HTTPGET, 0);
- curl_setopt($ch, CURLOPT_URL, trim($url));
- $exec=curl_exec($ch);
- $x=curl_error($ch);
- echo $exec.$x;
- exit;
- }
- }
- }
- add_action('parse_request', 'wp_automatic_parse_request');
- // @ioncube.dk check_dynamic_key2('22lJv2ZxhzPV6sEJ', 'N0HDbouuDrayytGc') -> 'b7c0a8df4edca44e3b0435acb7003980617d186d' RANDOM
- function wp_automatic_query_vars($vars) {
- $vars[] = 'wp_automatic';
- return $vars;
- }
- add_filter('query_vars', 'wp_automatic_query_vars');
- /*
- * support widget
- */
- if( ! $wpAutomaticDemo)
- require_once 'widget.php';
- /*
- * rating notice
- */
- require_once 'p_rating.php';
- require_once 'p_license.php';
- /*
- * update notice
- */
- require_once 'updated.php';
- /*
- * admin edit
- */
- require_once 'wp-automatic-admin-edit.php';
- /*
- *amazon product price update
- */
- require_once 'wp-automatic-amazon-prices.php';
- //sorting function by length
- // @ioncube.dk check_dynamic_key2('bKzGpMPVfHthPzi', 'witZ7hShBdbStHTp') -> '87f9e63d9d8b99a581dcc237af279316d97623c9' RANDOM
- function wp_automatic_sort($a,$b){
- return strlen($b)-strlen($a);
- }
- //stripslashes with array support
- // @ioncube.dk check_dynamic_key2('TSh1iLbJZ0RYzv0R', 'YoOVBDNYYKfRYxvF') -> '91ee7ba23528d105f640fe7e6803a7f274864c9f' RANDOM
- function wp_automatic_stripslashes($toStrip){
- if(is_array($toStrip)){
- return array_map('wp_automatic_stripslashes',$toStrip);
- }else{
- return stripslashes($toStrip);
- }
- }
- //rotate and get a single item
- // @ioncube.dk check_dynamic_key2('H6YTsr1PxaupX0z4', 'SefTuT1cdd9UDo') -> 'f65abf15e11ab25355da585cd0af8126ca2da231' RANDOM
- function wp_automatic_single_item($option_name){
- $option_value = get_option($option_name);
- //empty value
- if(trim($option_value) == '') return $option_value;
- $multiple_items = array_filter( explode("\n", $option_value ) );
- //single value
- if(count($multiple_items) == 1) return trim($multiple_items[0]);
- //multiple items, return first and send it to the last
- if(count($multiple_items) > 0 ){
- $first_item = $multiple_items[0];
- unset($multiple_items[0]);
- $multiple_items[] = $first_item;
- update_option($option_name , implode("\n" ,$multiple_items ));
- return trim($first_item);
- }
- return trim($option_value);
- }
- //fix relative link global
- // @ioncube.dk check_dynamic_key2('8bCioZIwypVqjF', '8fpObigAzQ3s3Dr4') -> '487e165d745cffb2369c61d10d40414cbfdb62b7' RANDOM
- function wp_automatic_fix_relative_link ($found_link,$host,$http_prefix,$the_path,$base_url = ''){
- if (! stristr ( $found_link, 'http' )) {
- if (stristr ( $found_link, '//' )) {
- $found_link = $http_prefix . $found_link;
- } else {
- if( preg_match ( '{^/}' , $found_link ) ){
- $found_link = $host . $found_link;
- }else{
- if(trim($base_url) != ''){
- $found_link = $base_url . $found_link;
- }else{
- if(trim ($the_path) != ''){
- $found_link = $host . $the_path . '/' . $found_link;
- }else{
- $found_link = $host . '/' . $found_link;
- }
- }
- }
- }
- }
- return $found_link;
- }
Add Comment
Please, Sign In to add comment