Ejemplo n.º 1
0
function fastpick_evo_test()
{
    pload('F:spider');
    $id = intval($_GET['id']);
    $rules_info = fastpick_info($id, '*', 'evo');
    $content = get_contents($rules_info['detail_ID_test']);
    $re = evo_rules_get_article($content, $rules_info);
    show_pick_window($re['title'], $re['content'], array('w' => 650, 'h' => '460', 'f' => 1));
}
Ejemplo n.º 2
0
function get_member_info()
{
    $info_str = milu_lang('member_field_str');
    $url = format_url($_GET['url']);
    $test_uid = intval(format_url($_GET['test_uid']));
    $uid_range = $test_uid ? $test_uid : format_url($_GET['uid_range']);
    $login_cookie = format_cookie($_GET['login_cookie']);
    $uid_arr = get_data_range($uid_range);
    $arr = get_user_url_arr($url, $uid_arr['list']);
    $test_url = $arr[0]['url'];
    if (!$test_url) {
        show_pick_window(milu_lang('get_link_list_test'), milu_lang('no_set_uidurl'), array('w' => 620, 'h' => '400', 'f' => 1));
    }
    $content = get_contents($test_url, array('cookie' => $login_cookie));
    if ($content == -1) {
        show_pick_window(milu_lang('get_link_list_test'), milu_lang('check_user_url'), array('w' => 620, 'h' => '400', 'f' => 1));
    }
    $info_arr = dom_get_manytext($content, 'div#ct div.mn li');
    //获取用户名
    preg_match_all('/<title>(.*)' . milu_lang('the_user_info') . '/i', $content, $matchs);
    $re_arr[milu_lang('user_name')] = $matchs[1][0];
    if (!$info_arr) {
        show_pick_window(milu_lang('get_link_list_test'), milu_lang('pick_must_set_cookie'), array('w' => 620, 'h' => '400', 'f' => 1));
    }
    $info_field_arr = explode('|', $info_str);
    $i = 0;
    foreach ((array) $info_arr as $k => $v) {
        foreach ($info_field_arr as $k2 => $v2) {
            $v2_arr = format_wrap($v2, '@@');
            $v2 = $v2_arr[1];
            if (strexists($v, $v2)) {
                $value = str_replace('<em>' . $v2 . '</em>', '', $v);
                if (strexists($v2, 'IP')) {
                    $value = str_replace(' -', '', $value);
                }
                $re_arr[$v2] = trim($value);
            }
        }
    }
    $output .= '<p>' . milu_lang('the_test_url') . ' : <a target="_brank" href="' . $test_url . '">' . $test_url . '</a></p></br>';
    $output .= '<table class="tb tb2">';
    foreach ((array) $re_arr as $k => $v) {
        $output .= '<tr><td>' . $k . ' : </td><td>' . $v . '</td></tr>';
    }
    $output .= '</table>';
    show_pick_window(milu_lang('get_link_list_test'), $output, array('w' => 620, 'h' => '400', 'f' => 1));
}
Ejemplo n.º 3
0
function get_other_test()
{
    global $_G;
    pload('F:spider');
    $url = format_url($_GET['url']);
    $args['from_get_type'] = format_url($_GET['from_get_type']);
    $args['author_get_type'] = format_url($_GET['author_get_type']);
    $args['dateline_get_type'] = format_url($_GET['dateline_get_type']);
    $args['from_get_rules'] = format_url($_GET['from_get_rules']);
    $args['author_get_rules'] = format_url($_GET['author_get_rules']);
    $args['dateline_get_rules'] = format_url($_GET['dateline_get_rules']);
    $login_cookie = format_cookie($_GET['login_cookie']);
    $contents = get_contents($url, array('cookie' => $login_cookie));
    $data = get_other_info($contents, $args);
    $show_time = str_format_time($data['article_dateline']);
    $show_time = $show_time ? dgmdate($show_time) : '';
    if (!$data) {
        $output = milu_lang('no_get_info');
    } else {
        $output = '<table class="tb tb2 "><tbody><tr class="header"><th width="51">' . milu_lang('field_name') . '</th><th width="220">' . milu_lang('the_get_info') . '</th><th width="80">' . milu_lang('trun_info') . '</th></tr>
		
		<tr class="td24"><td class="td25">' . milu_lang('article_from') . '</td><td class="td24">' . $data['from'] . '</td><td>' . milu_lang('no_turn') . '</td></tr>
		<tr class="td24"><td class="td25">' . milu_lang('old_author') . '</td><td class="td24">' . $data['author'] . '</td><td>' . milu_lang('no_turn') . '</td></tr>
		<tr class="td24"><td class="td25">' . milu_lang('public_time') . '</td><td class="td24">' . $data['article_dateline'] . '</td><td>' . $show_time . '</td></tr>
		
		</tr></tbody></table>';
        if ($args['dateline_get_rules']) {
            $output .= milu_lang('get_other_notice');
        }
    }
    show_pick_window(milu_lang('get_other_show'), $output, array('w' => 645, 'h' => '460', 'f' => 1));
}
Ejemplo n.º 4
0
function show_article_detail()
{
    $aid = intval($_GET['aid']);
    $ar_info = article_info($aid);
    //print_r($ar_info);exit();
    if (!$ar_info['content']) {
        $ar_info['content'] = milu_lang('article_content_empty');
    }
    if ($ar_info['is_bbs'] == 1) {
        $output = $ar_info['content'];
        $output .= show_reply_output($ar_info['reply']);
    } else {
        if ($ar_info['contents'] == 1) {
            //普通没分页文章
            $output = $ar_info['content'];
        } else {
            $output = show_page_output($ar_info['content_arr']);
        }
    }
    show_pick_window(dhtmlspecialchars($ar_info['title']), $output, array('w' => 645, 'h' => '460', 'f' => 1));
}