Example #1
0
                     }
                 }
             }
         }
         mysql_free_result($q_dby);
     }
     break;
 case 'kx001':
     if ($config['is_kx001'] > 0 && $config['kx001_key'] != '' && $config['kx001_se'] != '') {
         $s_dby = sprintf('select s_t from %s where aid=%s and name=%s and is_show=0 limit 1', $dbprefix . 'm_sync', $id, SQLString('kx001', '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/kaixin.php';
             $kx_co = new kaixinPHP($config['kx001_key'], $config['kx001_se'], $r_dby['s_t']);
             $kx_re = $kx_co->records_me(5);
             if (isset($kx_re['data']) && count($kx_re['data']) > 0) {
                 foreach ($kx_re['data'] as $v) {
                     if (trim($v['main']['content']) != '') {
                         echo '<div class="sync_list" style="background-image: url(images/i-kx001.gif);">' . trim($v['main']['content']) . '</div>';
                     }
                 }
             }
         }
         mysql_free_result($q_dby);
     }
     break;
 case 'renren':
     if ($config['is_renren'] > 0 && $config['renren_key'] != '' && $config['renren_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('renren', 'text'));
         $q_dby = mysql_query($s_dby) or die('');