Plugin Directory

Changeset 2875372


Ignore:
Timestamp:
03/06/2023 02:07:49 PM (3 years ago)
Author:
cultdevops
Message:

Google service API bugs fixed and changed. Added new files.
Cron is stable now

Location:
fast-index
Files:
833 added
2 edited

Legend:

Unmodified
Added
Removed
  • fast-index/trunk/README.txt

    r2875320 r2875372  
    44Requires at least: 5.1
    55Tested up to: 6.1
    6 Stable tag: 1.5
     6Stable tag: 1.6
    77Requires PHP: 5.6
    88License: GPLv2 or later
     
    3838== Changelog ==
    3939
     40= 1.6 =
     41* Php8 google API problem solved
     42
     43= 1.5 =
     44* Php Tags bugs fixed
     45
    4046= 1.4 =
    4147* Added "Exclude Categories"
  • fast-index/trunk/index.php

    r2875320 r2875372  
    5858        $options['exclude_category'] = is_array($options['exclude_category'])? $options['exclude_category'] : array();
    5959
     60        $newJsons = array();
     61        if(is_array($options['json_file'])) {
     62            foreach($options['json_file'] as $key => $value) {
     63                if($key !="" and strlen($key)>10 and $value['mail'] !="") {
     64                    $newJsons[$key] = $value;
     65                }
     66            }
     67            $options['json_file'] = $newJsons;
     68        }
     69
    6070        return $options;
    6171    }
     
    182192            $addExclude = "and (" . trim(trim($addExclude), "and") . ")";
    183193            $addExcludeOr = "and (" . trim(trim($addExcludeOr), "or") . ")";
     194        } else {
     195            $addExclude = "and ( trr.term_taxonomy_id !='0')";
     196            $addExcludeOr = "and ( {$wpRelationshipsTable}.term_taxonomy_id ='0')";
    184197        }
    185198
    186199
    187200        $sql = "
    188         SELECT  p.*,
     201        SELECT  p.ID,
    189202        (select count(ID) from {$wpPostsTable} where {$wpPostsTable}.post_parent = p.ID and {$wpPostsTable}.post_type= %s ) AS content_id,
    190203        (select count(object_id) from {$wpRelationshipsTable} where {$wpRelationshipsTable}.object_id = p.ID {$addExcludeOr} ) AS count_2
     
    251264            $addExclude = "and (" . trim(trim($addExclude), "and") . ")";
    252265            $addExcludeOr = "and (" . trim(trim($addExcludeOr), "or") . ")";
    253         }
    254 
     266        } else {
     267            $addExclude = "and ( trr.term_taxonomy_id !='0')";
     268            $addExcludeOr = "and ( {$wpRelationshipsTable}.term_taxonomy_id ='0')";
     269        }
    255270
    256271        $sql = "
     
    340355        }
    341356
     357
     358
    342359        $totalSent          = esc_attr($this->countSentPosts());
    343360        $totalWaitingSubmit = esc_attr($this->countWaitingPosts());
    344361        $totalSubmitToday   = esc_attr($this->countDailySent());
    345362
     363
    346364        $logs = $this->getLogs();
    347365        include_once(plugin_dir_path(__FILE__) . '/view/history.php');
     
    353371            die;
    354372        }
     373
     374
    355375
    356376        $categories = get_categories(array('hide_empty' => false,));
     
    587607
    588608if (!function_exists('figi_fs')){
    589     // Create a helper function for easy SDK access.
     609
    590610    function figi_fs() {
    591611
     
    593613
    594614        if (!isset($figi_fs)){
    595             // Activate multisite network integration.
    596615            if (!defined('WP_FS__PRODUCT_11893_MULTISITE')){
    597616                define('WP_FS__PRODUCT_11893_MULTISITE', true);
    598617            }
    599 
    600             // Include Freemius SDK.
    601618
    602619            $figi_fs = fs_dynamic_init(array('id' => '11893', 'slug' => 'fast-index', 'premium_slug' => 'fast-index', 'type' => 'plugin', 'public_key' => 'pk_4352cecbab080b84df64da3246477', 'is_premium' => true, 'is_premium_only' => false, 'has_addons' => false, 'has_paid_plans' => false, 'menu' => array('slug' => 'fast-index', 'first-path' => 'admin.php?page=fast-index', 'contact' => false, 'support' => true, 'network' => true,
Note: See TracChangeset for help on using the changeset viewer.