Plugin Directory

Changeset 995574


Ignore:
Timestamp:
09/23/2014 05:47:19 PM (12 years ago)
Author:
sebstein
Message:

remove dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • g-crossposting/branches/import-all-branch/admin.php

    r993762 r995574  
    264264    _e('manually check for ALL activities and import them', 'g-crossposting');
    265265    echo '</a></div>';
    266 
    267 /*
    268     $options = g_crossposting_get_settings();
    269 
    270     // get latest Google+ activities
    271     $ch = curl_init("https://www.googleapis.com/plus/v1/people/{$options['gplusid']}/activities/public?alt=json&maxResults={$options['maxactivities']}&key={$options['apikey']}");
    272     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    273     $activities = curl_exec($ch);
    274     curl_close($ch);
    275 
    276 $activities = json_decode($activities);
    277 
    278 $no_posts = 0;
    279 $no_shares = 0;
    280 $no_unknown = 0;
    281 
    282 foreach($activities->items as $item) {
    283     switch ($item->verb) {
    284         case 'post':
    285             $no_posts++;
    286             break;
    287         case 'share':
    288             $no_shares++;
    289             break;
    290         default:
    291             $no_unknown++;
    292             break;
    293     }
    294        
    295 }
    296 print 'Found '.count($activities->items).' public activities on your Google+ account.<br />';
    297 print 'You got '.$no_posts.' posts.<br />';
    298 print 'You got '.$no_shares.' shares.<br />';
    299 print 'You got '.$no_unknown.' unknown activities.<br />';
    300 
    301 print '<pre>';
    302 foreach($activities->items as $item) {
    303 print '----------------new item---------------\n';
    304 var_dump($item);
    305 }
    306 print '</pre>';
    307 */
    308 
    309266    echo '</div>';
    310267}
Note: See TracChangeset for help on using the changeset viewer.