Exemplo n.º 1
0
                     }
                 }
             }
         }
         mysql_free_result($q_dby);
     }
     break;
 case 'tqq':
     if ($config['is_tqq'] > 0 && ($config['is_utqq'] > 0 || $config['tqq_key'] != '' && $config['tqq_se'] != '')) {
         $s_dby = sprintf('select s_id, s_t from %s where aid=%s and name=%s and is_show=0 limit 1', $dbprefix . 'm_sync', $id, SQLString('tqq', 'text'));
         $q_dby = mysql_query($s_dby) or die('');
         $r_dby = mysql_fetch_assoc($q_dby);
         if (mysql_num_rows($q_dby) > 0) {
             require_once 'lib/tqq.php';
             $o = new tqqPHP($config['tqq_key'], $config['tqq_se'], $r_dby['s_t'], $r_dby['s_id']);
             $ma = $o->getMyTweet(5);
             if (isset($ma['ret']) && $ma['ret'] == 0 && isset($ma['data']['info']) && is_array($ma['data']['info']) && count($ma['data']['info']) > 0) {
                 foreach ($ma['data']['info'] as $v) {
                     if (trim($v['text']) != '') {
                         echo '<div class="sync_list" style="background-image: url(images/i-tqq.gif);">' . trim($v['text']) . '</div>';
                     }
                 }
             }
         }
         mysql_free_result($q_dby);
     }
     break;
 case 'tsohu':
     if ($config['is_tsohu'] > 0 && ($config['is_utsohu'] > 0 || $config['tsohu_key'] != '' && $config['tsohu_se'] != '')) {
         $s_dby = sprintf('select s_id, s_t, s_s from %s where aid=%s and name=%s and is_show=0 limit 1', $dbprefix . 'm_sync', $id, SQLString('tsohu', 'text'));
         $q_dby = mysql_query($s_dby) or die('');