Exemplo n.º 1
0
$a = \mixi\library\send($website, $object)
$b = new \mixi\bbs\threads\obj();
$b->community = 13575;
$website->get($a->url(), \mixi\bbs\threads\community::get_vars($b));
$website->encode('EUC-JP','UTF-8');
$a->parse($website->html());
$a = new \mixi\bbs\threads\community();
$website = new Website();
$website->cookies();
\mixi\library\connect($website);
$o = new \mixi\bbs\messages\obj();
$o->thread_id = 2129705;
$o->community = 13575;
$o->page = 'all';
$website->get(\mixi\bbs\messages\get_list::url(), \mixi\bbs\messages\get_list::get_vars($o));
$website->encode('EUC-JP','UTF-8');
print_r(\mixi\bbs\messages\get_list::parse($website->html));
#\mixi\library\connect($website);
#print_r(all_ashiato($website, 1));
*/
#$website = new Website();
#$website->cookies();
#\mixi\library\connect($website);
print_r(\mixi\library\thread_posts(2497010));
/*
$b='';
$website->get(\mixi\bbs\threads\related::url(), \mixi\bbs\threads\related::get_vars($b));
$website->encode('EUC-JP','UTF-8');
$threads = \mixi\bbs\threads\related::parse($website->html());
print_r($threads);
*/
Exemplo n.º 2
0
function mixi_bbsposts($mail_connection, $message)
{
    $from = $message->from;
    $to = $message->to;
    check_valid_from($from);
    $THREAD_ID_SEPERATOR = 't_';
    $MAIL_DOMAIN = '@dsmob.com';
    $to = str_replace($MAIL_DOMAIN, '', $to);
    $thread_id = array_pop(explode($THREAD_ID_SEPERATOR, $to));
    if (!is_numeric($thread_id)) {
        return send_bbsposts($from, "<p>You did not enclose a valid thread id.  We received: " . $thread_id . "</p>");
    }
    $website = new Website();
    $website->cookies();
    \mixi\library\connect($website);
    $posts = \mixi\library\thread_posts($website, $thread_id);
    send_bbsposts($from, $posts);
}