WordPress.org

Plugin Directory

Changeset 579756


Ignore:
Timestamp:
07/31/12 13:51:27 (21 months ago)
Author:
xhanch_studio
Message:
 
Location:
xhanch-my-twitter/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • xhanch-my-twitter/trunk/admin/setting.php

    r579506 r579756  
    114114        }elseif(isset($_POST['cmd_xmt_delete_profile'])){ 
    115115            xmt_acc_del($acc_sel); 
    116             echo '<div id="message" class="updated fade"><p>Profile <b>'.htmlspecialchars($acc_sel).'</b> has been deleted</p></div>';               
     116            echo '<div id="message" class="updated fade"><p>Profile <b>'.htmlspecialchars($acc_sel).'</b> has been deleted</p></div>';       
     117        }elseif(isset($_POST['cmd_xmt_get_tweets'])){ 
     118            xmt_twt_imp($acc_sel, true); 
     119            echo '<div id="message" class="updated fade"><p>Tweets updated</p></div>';           
    117120        }elseif(isset($_POST['cmd_xmt_delete_tweets'])){ 
    118121            $sql = ' 
     
    796799                            <input type="submit" name="cmd_xmt_disconnect" value="<?php echo __('Disconnect From Twitter', 'xmt'); ?>"/>                             
    797800                        <?php } ?> 
     801                        <input type="submit" name="cmd_xmt_get_tweets" value="<?php echo __('Get New Tweets', 'xmt'); ?>"/> 
    798802                        <input type="submit" name="cmd_xmt_delete_tweets" value="<?php echo __('Delete All Stored Tweets', 'xmt'); ?>" onclick="return confirm('Are you sure to delete all stored tweets?')"/> 
    799803                        <input type="button" name="cmd_xmt_export_profile" value="<?php echo __('Export Profile', 'xmt'); ?>" onclick="location.href='<?php echo xmt_get_dir('url').'/misc/profile-export.php?prf='.urlencode($acc_sel); ?>'"/> 
  • xhanch-my-twitter/trunk/inc/twitter.php

    r579051 r579756  
    4747    } 
    4848 
    49     function xmt_twt_imp($acc){ 
     49    function xmt_twt_imp($acc, $frc=false){ 
    5050        global $wpdb; 
    5151        global $xmt_tmd; 
    5252        global $xmt_acc; 
    53  
    54         $las_imp = intval($xmt_acc[$acc]['las_twt_imp_dtp']); 
    55         $imp_itv = intval($xmt_acc[$acc]['cfg']['imp_itv']) * 60; 
    56  
    57         if(time() - $las_imp < $imp_itv) 
    58             return; 
     53         
     54        if(!$frc){ 
     55            $las_imp = intval($xmt_acc[$acc]['las_twt_imp_dtp']); 
     56            $imp_itv = intval($xmt_acc[$acc]['cfg']['imp_itv']) * 60; 
     57 
     58            if(time() - $las_imp < $imp_itv) 
     59                return; 
     60        } 
    5961 
    6062        xmt_tmd('Import Tweets - Start'); 
     
    133135            )on duplicate key update 
    134136                nme = '.xmt_sql_str($prm['uid']).',  
    135                 img_url = '.xmt_sql_str($prm['nme']).',  
    136                 dte_upd = '.xmt_sql_str($prm['img_url']).'               
     137                img_url = '.xmt_sql_str($prm['img_url']).',  
     138                dte_upd = now()          
    137139        '; 
    138140        $wpdb->query($sql); 
  • xhanch-my-twitter/trunk/readme.txt

    r579503 r579756  
    77Requires at least: 2.3 
    88Tested up to: 3.4.1 
    9 Stable tag: 2.7.2 
     9Stable tag: 2.7.3 
    1010 
    1111The best plugin to display your latest tweets, replies, direct messages, retweets, auto and manual tweet and lots more. Support multiple accounts 
  • xhanch-my-twitter/trunk/xhanch-my-twitter.php

    r579504 r579756  
    66        Author: Susanto BSc (Xhanch Studio) 
    77        Author URI: http://xhanch.com 
    8         Version: 2.7.2 
     8        Version: 2.7.3 
    99    */ 
    1010     
Note: See TracChangeset for help on using the changeset viewer.