WordPress.org

Plugin Directory


Ignore:
Timestamp:
06/17/10 07:32:12 (8 years ago)
Author:
SriniG
Message:

v1.4: +sequential-refresh; +auto-refresh; +...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quotes-collection/trunk/quotes-collection-ajax.php

    r121004 r253475  
    2020    $show_author = isset($_POST['show_author'])?$_POST['show_author']:1; 
    2121    $show_source = isset($_POST['show_source'])?$_POST['show_source']:1; 
     22    $auto_refresh = isset($_POST['auto_refresh'])?$_POST['auto_refresh']:0;  
     23    $random_refresh = isset($_POST['random_refresh'])?$_POST['random_refresh']:1;    
    2224    $char_limit = (isset($_POST['char_limit']) && is_numeric($_POST['char_limit']))?$_POST['char_limit']:''; 
    2325     
    24      
    25     if($_POST['exclude'] && is_numeric($_POST['exclude'])) 
    26         $exclude = $_POST['exclude']; 
    27     else $exclude = ''; 
     26    if($random_refresh && $_POST['current'] && is_numeric($_POST['current'])) 
     27        $exclude = $_POST['current']; 
     28    else { 
     29        if ($_POST['current'] && is_numeric($_POST['current'])) 
     30            $current = $_POST['current']; 
     31        $exclude = ''; 
     32    } 
    2833         
    2934    $tags = $_POST['tags']; 
    3035     
    31     $args = "echo=0&ajax_refresh=2&show_author={$show_author}&show_source={$show_source}&char_limit={$char_limit}&exclude={$exclude}&tags={$tags}"; 
     36    $args = "echo=0&ajax_refresh=2&auto_refresh={$auto_refresh}&show_author={$show_author}&show_source={$show_source}&char_limit={$char_limit}&exclude={$exclude}&tags={$tags}&random={$random_refresh}&current={$current}"; 
    3237         
    3338 
Note: See TracChangeset for help on using the changeset viewer.