示例#1
0
文件: smsreader.php 项目: philum/cms
function plug_smsreader($p, $o)
{
    echo $o;
    //$p=130911;//131016
    /*$d='<?php'.'xml version="1.0" encoding="iso-8859-1"'.'?>';*/
    $d .= read_file('data/sms_' . $p . '.xml');
    $r = array('szFromNumber', 'szToNumber', 'uYear', 'uMonth', 'uDay', 'uHour', 'uMinute', 'uSecond', 'pMsgData');
    $rss = read_rss_data($d, 'Item', $r);
    //p($rss);
    $ret = smsreader($rss, $p, $o);
    $ret = utf8_decode($ret);
    //echo $ret;
    return $ret;
}
示例#2
0
文件: lib.php 项目: philum/cms
function read_rss($f, $t, $r)
{
    $d = get_file($f);
    $enc = embed_detect(strtolower($d), 'encoding="', '"', '');
    if (strtolower($enc) == 'utf-8') {
        $d = utf8_decode_b($d);
    }
    $d = str_replace(array(' isPermaLink="false"', ' rel="stylesheet"', ' type="text/css"'), '', $d);
    return read_rss_data($d, $t, $r);
}