Example #1
0
function XY_TitleInSearchEngineList($action)
{
    $title = '';
    $sType = '';
    $divclass = '';
    $spanclass = '';
    $s = '';
    $c = '';
    $title = RParam($action, 'title');
    $sType = RParam($action, 'sType');
    $divclass = RParam($action, 'divclass');
    $spanclass = RParam($action, 'spanclass');
    $s = '<strong>更多关于《' . $title . '》</strong>';
    if ($divclass != '') {
        $s = '<div class="' . $divclass . '">' . $s . '</div>';
    } else {
        if ($spanclass != '') {
            $s = '<span class="' . $spanclass . '">' . $s . '</span>' . '<br>';
        } else {
            $s = $s . '<br>';
        }
    }
    $c = $c . $s . vbCrlf();
    $c = $c . '<ul class="list"> ' . vbCrlf();
    $c = $c . '<li><a href="https://www.baidu.com/s?ie=gb2312&word=' . $title . '" rel="nofollow" target="_blank">【baidu搜索】在百度里搜索(' . $title . ')</a></li>' . vbCrlf();
    $c = $c . '<li><a href="http://www.haosou.com/s?ie=gb2312&q=' . $title . '" rel="nofollow" target="_blank">【haosou搜索】在好搜里搜索(' . $title . ')</a></li>' . vbCrlf();
    $c = $c . '<li><a href="https://search.yahoo.com/search;_ylt=A86.JmbkJatWH5YARmebvZx4?toggle=1&cop=mss&ei=gb2312&fr=yfp-t-901&fp=1&p=' . $title . '" rel="nofollow" target="_blank">【yahoo搜索】在雅虎里搜索(' . $title . ')</a></li>' . vbCrlf();
    $c = $c . '<li><a href="https://www.sogou.com/sogou?ie=utf8&query=' . toUTFChar($title) . '" rel="nofollow" target="_blank">【sogou搜索】在搜狗里搜索(' . $title . ')</a></li>' . vbCrlf();
    $c = $c . '<li><a href="http://www.youdao.com/search?ue=utf8&q=' . toUTFChar($title) . '" rel="nofollow" target="_blank">【youdao搜索】在有道里搜索(' . $title . ')</a></li>' . vbCrlf();
    $c = $c . '<li><a href="http://search.yam.com/Search/Web/DefaultKSA.aspx?SearchType=web&l=0&p=0&k=' . toUTFChar($title) . '" rel="nofollow" target="_blank">【yam搜索(google提供技术)】在蕃薯藤里搜索(' . $title . ')</a></li>' . vbCrlf();
    $c = $c . '<li><a href="http://cn.bing.com/search?q=' . toUTFChar($title) . '" rel="nofollow" target="_blank">【bing搜索】在必应里搜索(' . $title . ')</a></li>' . vbCrlf();
    $c = $c . '</ul>' . vbCrlf();
    $XY_TitleInSearchEngineList = $c;
    return @$XY_TitleInSearchEngineList;
}
Example #2
0
function createUTFFile($file, $content)
{
    $file = handlePath($file);
    echo 'fileName=' . $file;
    $content = toUTFChar($content);
    //转utf-8内容
    $f = fopen($file, "wb");
    fputs($f, "" . '我');
    //生成的文件将成为UTF-8格式
    fclose($f);
    delFileBOM($file, $content);
}