コード例 #1
0
ファイル: 2015_Param.php プロジェクト: 313801120/AspPhpCms
function newReplaceValueParam($content, $paramName, $replaceStr)
{
    $startStr = '';
    $endStr = '';
    $labelStr = '';
    $nLen = '';
    $nTimeFormat = '';
    $delHtmlYes = '';
    $trimYes = '';
    //ReplaceStr = ReplaceStr & "这里面放上内容在这时碳呀。"
    //ReplaceStr = CStr(ReplaceStr)            '转成字符类型
    if (isNul($replaceStr) == true) {
        $replaceStr = '';
    }
    $startStr = '[$' . $paramName;
    $endStr = '$]';
    if (inStr($content, $startStr) > 0 && inStr($content, $endStr) > 0) {
        $labelStr = StrCut($content, $startStr, $endStr, 1);
        //删除Html
        $delHtmlYes = rParam($labelStr, 'DelHtml');
        //是否删除Html
        if ($delHtmlYes == 'true') {
            $replaceStr = replace(delHtml($replaceStr), '<', '&lt;');
        }
        //HTML处理
        //删除两边空格
        $trimYes = rParam($labelStr, 'Trim');
        //是否删除两边空格
        if ($trimYes == 'true') {
            $replaceStr = TrimVbCrlf($replaceStr);
        }
        //截取字符处理
        $nLen = rParam($labelStr, 'Len');
        //字符长度值
        $nLen = handleNumber($nLen);
        //If nLen<>"" Then ReplaceStr = CutStr(ReplaceStr,nLen,"null")' Left(ReplaceStr,nLen)
        if ($nLen != '') {
            $replaceStr = CutStr($replaceStr, $nLen, '...');
        }
        //Left(ReplaceStr,nLen)
        //时间处理
        $nTimeFormat = rParam($labelStr, 'Format_Time');
        //时间处理值
        if ($nTimeFormat != '') {
            $replaceStr = Format_Time($replaceStr, $nTimeFormat);
        }
        $content = replace($content, $labelStr, $replaceStr);
    }
    $newReplaceValueParam = $content;
    return @$newReplaceValueParam;
}
コード例 #2
0
ファイル: 2014_Author.php プロジェクト: 313801120/AspPhpCms
function handleAuthorInfo($fileInfo, $sType)
{
    $c = '';
    $phpS = '';
    $aspS = '';
    if ($sType == 'php') {
        $phpS = '/';
    } else {
        $aspS = '\'';
    }
    $c = $aspS . $phpS . '************************************************************' . vbCrlf();
    if ($FileInfo != '') {
        $c = $c . $aspS . '  文件:' . $FileInfo . vbCrlf();
    }
    $c = $c . $aspS . '作者:云端 (精通ASP/VB/PHP/JS/Flash,交流合作可联系本人)' . vbCrlf();
    $c = $c . $aspS . '版权:源代码公开,各种用途均可免费使用。 ' . vbCrlf();
    $c = $c . $aspS . '创建:' . Format_Time(now(), 2) . vbCrlf();
    $c = $c . $aspS . '联系:QQ313801120  交流群35915100(群里已有几百人)    邮箱313801120@qq.com   个人主页 sharembweb.com' . vbCrlf();
    $c = $c . $aspS . '更多帮助,文档,更新 请加群(35915100)或浏览(sharembweb.com)获得' . vbCrlf();
    $c = $c . $aspS . '*                                    Powered by ASPPHPCMS ' . vbCrlf();
    $c = $c . $aspS . '************************************************************' . $phpS . vbCrlf();
    $handleAuthorInfo = $c;
    return @$handleAuthorInfo;
}
コード例 #3
0
function delTemplate()
{
    $templateDir = '';
    $toTemplateDir = '';
    $url = '';
    $templateDir = replace(@$_REQUEST['templateDir'], '\\', '/');
    handlePower('删除模板');
    //管理权限处理
    $toTemplateDir = mid($templateDir, 1, inStrRev($templateDir, '/')) . '#' . mid($templateDir, inStrRev($templateDir, '/') + 1, -1) . '_' . Format_Time(now(), 11);
    //call die(toTemplateDir)
    moveFolder($templateDir, $toTemplateDir);
    $url = '?act=displayLayout&templateFile=layout_manageTemplates.html&lableTitle=模板';
    Rw(getMsg1('删除模板完成,正在进入模板界面...', $url));
}
コード例 #4
0
function webStat($folderPath)
{
    $dateTime = '';
    $content = '';
    $splStr = '';
    $thisUrl = '';
    $goToUrl = '';
    $caiShu = '';
    $c = '';
    $fileName = '';
    $co = '';
    $ie = '';
    $xp = '';
    $goToUrl = serverVariables('HTTP_REFERER');
    $thisUrl = 'http://' . serverVariables('HTTP_HOST') . serverVariables('SCRIPT_NAME');
    $caiShu = serverVariables('QUERY_STRING');
    if ($caiShu != '') {
        $thisUrl = $thisUrl . '?' . $caiShu;
    }
    $goToUrl = @$_REQUEST['GoToUrl'];
    $thisUrl = @$_REQUEST['ThisUrl'];
    $co = @$_GET['co'];
    $dateTime = now();
    $content = serverVariables('HTTP_USER_AGENT');
    $content = replace($content, 'MSIE', 'Internet Explorer');
    $content = replace($content, 'NT 5.0', '2000');
    $content = replace($content, 'NT 5.1', 'XP');
    $content = replace($content, 'NT 5.2', '2003');
    $splStr = aspSplit($content . ';;;;', ';');
    $ie = $splStr[1];
    $xp = aspTrim($splStr[2]);
    if (right($xp, 1) == ')') {
        $xp = mid($xp, 1, len($xp) - 1);
    }
    $c = '来访' . $goToUrl . vbCrlf();
    $c = $c . '当前:' . $thisUrl . vbCrlf();
    $c = $c . '时间:' . $dateTime . vbCrlf();
    $c = $c . 'IP:' . getIP() . vbCrlf();
    $c = $c . 'IE:' . getBrType('') . vbCrlf();
    $c = $c . 'Cookies=' . $co . vbCrlf();
    $c = $c . 'XP=' . $xp . vbCrlf();
    $c = $c . 'Screen=' . @$_REQUEST['screen'] . vbCrlf();
    //屏幕分辨率
    $c = $c . '用户信息=' . serverVariables('HTTP_USER_AGENT') . vbCrlf();
    //用户信息
    $c = $c . '-------------------------------------------------' . vbCrlf();
    //c=c & "CaiShu=" & CaiShu & vbcrlf
    $fileName = $folderPath . Format_Time(now(), 2) . '.txt';
    CreateAddFile($fileName, $c);
    $c = $c . vbCrlf() . $fileName;
    $c = replace($c, vbCrlf(), '\\n');
    $c = replace($c, '"', '\\"');
    //Response.Write("eval(""var MyWebStat=\""" & C & "\"""")")
    $splxx = '';
    $nIP = '';
    $nPV = '';
    $ipList = '';
    $s = '';
    $ip = '';
    //判断是否显示回显记录
    if (@$_REQUEST['stype'] == 'display') {
        $content = getFText($fileName);
        $splxx = aspSplit($content, vbCrlf() . '-------------------------------------------------' . vbCrlf());
        $nIP = 0;
        $nPV = 0;
        $ipList = '';
        foreach ($splxx as $key => $s) {
            if (inStr($s, '当前:') > 0) {
                $s = vbCrlf() . $s . vbCrlf();
                $ip = ADSql(getStrCut($s, vbCrlf() . 'IP:', vbCrlf(), 0));
                $nPV = $nPV + 1;
                if (inStr(vbCrlf() . $ipList . vbCrlf(), vbCrlf() . $ip . vbCrlf()) == false) {
                    $ipList = $ipList . $ip . vbCrlf();
                    $nIP = $nIP + 1;
                }
            }
        }
        Rw('document.write(\'网长统计 | 今日IP[' . $nIP . '] | 今日PV[' . $nPV . '] \')');
    }
    $webStat = $c;
    return @$webStat;
}
コード例 #5
0
ファイル: index.php プロジェクト: 313801120/AspPhpCms
function saveSiteMap()
{
    $isWebRunHtml = '';
    //是否为html方式显示网站
    $changefreg = '';
    //更新频率
    $priority = '';
    //优先级
    $s = '';
    $c = '';
    $url = '';
    handlePower('修改生成SiteMap');
    //管理权限处理
    $changefreg = @$_REQUEST['changefreg'];
    $priority = @$_REQUEST['priority'];
    loadWebConfig();
    //加载配置
    //call eerr("cfg_flags",cfg_flags)
    if (inStr($GLOBALS['cfg_flags'], '|htmlrun|') > 0) {
        $isWebRunHtml = true;
    } else {
        $isWebRunHtml = false;
    }
    $c = $c . '<?xml version="1.0" encoding="UTF-8"?>' . vbCrlf();
    $c = $c . vbTab() . '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . vbCrlf();
    //栏目
    $rsxObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'webcolumn where isonhtml<>0 order by sortrank asc');
    while ($rsx = $GLOBALS['conn']->fetch_array($rsxObj)) {
        if ($rsx['nofollow'] == false) {
            $c = $c . copyStr(vbTab(), 2) . '<url>' . vbCrlf();
            if ($isWebRunHtml == true) {
                $url = getRsUrl($rsx['filename'], $rsx['customaurl'], '/nav' . $rsx['id']);
                $url = handleAction($url);
            } else {
                $url = escape('?act=nav&columnName=' . $rsx['columnname']);
            }
            $url = urlAddHttpUrl($GLOBALS['cfg_webSiteUrl'], $url);
            //call echo(cfg_webSiteUrl,url)
            $c = $c . copyStr(vbTab(), 3) . '<loc>' . $url . '</loc>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<lastmod>' . Format_Time($rsx['updatetime'], 2) . '</lastmod>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<changefreq>' . $changefreg . '</changefreq>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<priority>' . $priority . '</priority>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 2) . '</url>' . vbCrlf();
            aspEcho('栏目', '<a href="' . $url . '" target=\'_blank\'>' . $url . '</a>');
        }
    }
    //文章
    $rsxObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'articledetail  where isonhtml<>0 order by sortrank asc');
    while ($rsx = $GLOBALS['conn']->fetch_array($rsxObj)) {
        if ($rsx['nofollow'] == false) {
            $c = $c . copyStr(vbTab(), 2) . '<url>' . vbCrlf();
            if ($isWebRunHtml == true) {
                $url = getRsUrl($rsx['filename'], $rsx['customaurl'], '/detail/detail' . $rsx['id']);
                $url = handleAction($url);
            } else {
                $url = '?act=detail&id=' . $rsx['id'];
            }
            $url = urlAddHttpUrl($GLOBALS['cfg_webSiteUrl'], $url);
            //call echo(cfg_webSiteUrl,url)
            $c = $c . copyStr(vbTab(), 3) . '<loc>' . $url . '</loc>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<lastmod>' . Format_Time($rsx['updatetime'], 2) . '</lastmod>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<changefreq>' . $changefreg . '</changefreq>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<priority>' . $priority . '</priority>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 2) . '</url>' . vbCrlf();
            aspEcho('文章', '<a href="' . $url . '">' . $url . '</a>');
        }
    }
    //单页
    $rsxObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'onepage where isonhtml<>0 order by sortrank asc');
    while ($rsx = $GLOBALS['conn']->fetch_array($rsxObj)) {
        if ($rsx['nofollow'] == false) {
            $c = $c . copyStr(vbTab(), 2) . '<url>' . vbCrlf();
            if ($isWebRunHtml == true) {
                $url = getRsUrl($rsx['filename'], $rsx['customaurl'], '/page/detail' . $rsx['id']);
                $url = handleAction($url);
            } else {
                $url = '?act=onepage&id=' . $rsx['id'];
            }
            $url = urlAddHttpUrl($GLOBALS['cfg_webSiteUrl'], $url);
            //call echo(cfg_webSiteUrl,url)
            $c = $c . copyStr(vbTab(), 3) . '<loc>' . $url . '</loc>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<lastmod>' . Format_Time($rsx['updatetime'], 2) . '</lastmod>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<changefreq>' . $changefreg . '</changefreq>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 3) . '<priority>' . $priority . '</priority>' . vbCrlf();
            $c = $c . copyStr(vbTab(), 2) . '</url>' . vbCrlf();
            aspEcho('单页', '<a href="' . $url . '">' . $url . '</a>');
        }
    }
    $c = $c . vbTab() . '</urlset>' . vbCrlf();
    loadWebConfig();
    createFile('sitemap.xml', $c);
    aspEcho('生成sitemap.xml文件成功', '<a href=\'/sitemap.xml\' target=\'_blank\'>点击预览sitemap.xml</a>');
    //判断是否生成sitemap.html
    if (@$_REQUEST['issitemaphtml'] == '1') {
        $c = '';
        //第二种
        //栏目
        $rsxObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'webcolumn order by sortrank asc');
        while ($rsx = $GLOBALS['conn']->fetch_array($rsxObj)) {
            if ($rsx['nofollow'] == false) {
                if ($isWebRunHtml == true) {
                    $url = getRsUrl($rsx['filename'], $rsx['customaurl'], '/nav' . $rsx['id']);
                    $url = handleAction($url);
                } else {
                    $url = escape('?act=nav&columnName=' . $rsx['columnname']);
                }
                $url = urlAddHttpUrl($GLOBALS['cfg_webSiteUrl'], $url);
                //判断是否生成html
                if ($rsx['isonhtml'] == true) {
                    $s = '<a href="' . $url . '">' . $rsx['columnname'] . '</a>';
                } else {
                    $s = '<span>' . $rsx['columnname'] . '</span>';
                }
                $c = $c . '<li style="width:20%;">' . $s . vbCrlf() . '<ul>' . vbCrlf();
                //文章
                $rssObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'articledetail where parentId=' . $rsx['id'] . ' order by sortrank asc');
                while ($rss = $GLOBALS['conn']->fetch_array($rssObj)) {
                    if ($rss['nofollow'] == false) {
                        if ($isWebRunHtml == true) {
                            $url = getRsUrl($rss['filename'], $rss['customaurl'], '/detail/detail' . $rss['id']);
                            $url = handleAction($url);
                        } else {
                            $url = '?act=detail&id=' . $rss['id'];
                        }
                        $url = urlAddHttpUrl($GLOBALS['cfg_webSiteUrl'], $url);
                        //判断是否生成html
                        if ($rss['isonhtml'] == true) {
                            $s = '<a href="' . $url . '">' . $rss['title'] . '</a>';
                        } else {
                            $s = '<span>' . $rss['title'] . '</span>';
                        }
                        $c = $c . '<li style="width:20%;">' . $s . '</li>' . vbCrlf();
                    }
                }
                $c = $c . '</ul>' . vbCrlf() . '</li>' . vbCrlf();
            }
        }
        //单面
        $c = $c . '<li style="width:20%;"><a href="javascript:;">单面列表</a>' . vbCrlf() . '<ul>' . vbCrlf();
        $rsxObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'onepage order by sortrank asc');
        while ($rsx = $GLOBALS['conn']->fetch_array($rsxObj)) {
            if ($rsx['nofollow'] == false) {
                $c = $c . copyStr(vbTab(), 2) . '<url>' . vbCrlf();
                if ($isWebRunHtml == true) {
                    $url = getRsUrl($rsx['filename'], $rsx['customaurl'], '/page/detail' . $rsx['id']);
                    $url = handleAction($url);
                } else {
                    $url = '?act=onepage&id=' . $rsx['id'];
                }
                //判断是否生成html
                if ($rsx['isonhtml'] == true) {
                    $s = '<a href="' . $url . '">' . $rsx['title'] . '</a>';
                } else {
                    $s = '<span>' . $rsx['title'] . '</span>';
                }
                $c = $c . '<li style="width:20%;">' . $s . '</li>' . vbCrlf();
                // target=""_blank""  去掉
            }
        }
        $c = $c . '</ul>' . vbCrlf() . '</li>' . vbCrlf();
        $templateContent = '';
        $templateContent = getFText($GLOBALS['adminDir'] . '/template_SiteMap.html');
        $templateContent = replace($templateContent, '{$content$}', $c);
        $templateContent = replace($templateContent, '{$Web_Title$}', $GLOBALS['cfg_webTitle']);
        createFile('sitemap.html', $templateContent);
        aspEcho('生成sitemap.html文件成功', '<a href=\'/sitemap.html\' target=\'_blank\'>点击预览sitemap.html</a>');
    }
    writeSystemLog('', '保存sitemap.xml');
    //系统日志
}
コード例 #6
0
ファイル: livestats.inc.php プロジェクト: beporter/hlstats
            } elseif ('BOT' == $p['uid']) {
                $is_bot = 1;
            } elseif ('HLTV' == $p['uid']) {
                $is_bot = 1;
            } elseif ('rcon' == $p['uid']) {
                $is_rcon = 1;
            } elseif ('0' == $p['uid']) {
                $is_bot = 1;
            } elseif ('0' == $p['ping']) {
                $is_bot = 1;
            }
        }
        $img = "player.gif";
        if ($is_bot === 1 || $is_rcon === 1) {
            $img = "bot.png";
        }
        echo '<tr>';
        echo '<td><img src="hlstatsimg/', $img, '" alt="icon" width="16"/></td>';
        echo '<td><a href="index.php?mode=search&amp;game=' . $server['game'] . '&amp;q=' . urlencode(makeSavePlayerName($p['name'])) . '">', makeSavePlayerName($p['name']), '</a></td>';
        echo '<td>', $p['frags'], '</td>';
        echo '<td>', Format_Time($p['time']), '</td>';
        echo '</tr>';
    }
    ?>
		</table>
	<?php 
}
?>
	</div>
</div>
コード例 #7
0
function backupDatabase()
{
    $isUnifyToFile = '';
    $tableNameList = '';
    $databaseTableNameList = '';
    $fieldConfig = '';
    $fieldName = '';
    $fieldType = '';
    $splField = '';
    $fieldValue = '';
    $nLen = '';
    $isOK = '';
    $splStr = '';
    $splxx = '';
    $tableName = '';
    $s = '';
    $c = '';
    $backupDir = '';
    $backupFilePath = '';
    handlePower('备份数据库');
    $tableNameList = lCase(@$_REQUEST['tableNameList']);
    //自定义备份数据表列表
    $isUnifyToFile = @$_REQUEST['isUnifyToFile'];
    //统一放到一个文件里
    $databaseTableNameList = lCase($GLOBALS['db_PREFIX'] . 'webcolumn' . vbCrlf() . getTableList());
    //让db_PREFIX在最前面,因为文章类型要从这里读取
    $nLen = len($GLOBALS['db_PREFIX']);
    //处理自定义表列表
    if ($tableNameList != '') {
        $splStr = aspSplit($tableNameList, '|');
        foreach ($splStr as $key => $tableName) {
            if (inStr(vbCrlf() . $databaseTableNameList . vbCrlf(), vbCrlf() . $GLOBALS['db_PREFIX'] . $tableName . vbCrlf()) > 0) {
                if ($c != '') {
                    $c = $c . vbCrlf();
                }
                $c = $c . $GLOBALS['db_PREFIX'] . $tableName;
            }
        }
        if ($c == '') {
            eerr('自定义备份表不正确 <a href="javascript:history.go(-1)">点击返回</a>', $tableNameList);
        }
        $databaseTableNameList = $c;
    }
    $splStr = aspSplit($databaseTableNameList, vbCrlf());
    $c = '';
    foreach ($splStr as $key => $tableName) {
        $tableName = aspTrim($tableName);
        $isOK = true;
        //判断前缀是否一样
        if ($nLen > 0) {
            if (mid($tableName, 1, $nLen) != $GLOBALS['db_PREFIX']) {
                $isOK = false;
            }
        }
        if ($isOK == true) {
            $fieldConfig = lCase(getFieldConfigList($tableName));
            aspEcho($tableName, $fieldConfig);
            $rsObj = $GLOBALS['conn']->query('select * from ' . $tableName);
            $c = $c . '【table】' . mid($tableName, len($GLOBALS['db_PREFIX']) + 1, -1) . vbCrlf();
            while ($rs = $GLOBALS['conn']->fetch_array($rsObj)) {
                $splField = aspSplit($fieldConfig, ',');
                foreach ($splField as $key => $s) {
                    if (inStr($s, '|') > 0) {
                        $splxx = aspSplit($s, '|');
                        $fieldName = $splxx[0];
                        $fieldType = $splxx[1];
                        $fieldValue = $rs[$fieldName];
                        if ($fieldType == 'numb') {
                            $fieldValue = replace(replace($fieldValue, 'True', '1'), 'False', '0');
                        }
                        //后台菜单
                        if ($tableName == $GLOBALS['db_PREFIX'] . 'listmenu' && $fieldName == 'parentid') {
                            $fieldValue = getListMenuName($fieldValue);
                            //网站栏目
                        } else {
                            if ($tableName == $GLOBALS['db_PREFIX'] . 'webcolumn' && $fieldName == 'parentid') {
                                $fieldValue = getColumnName($fieldValue);
                            }
                        }
                        if ($fieldValue != '') {
                            if (inStr($fieldValue, vbCrlf()) > 0) {
                                $fieldValue = $fieldValue . '【/' . $fieldName . '】';
                            }
                            $c = $c . '【' . $fieldName . '】' . $fieldValue . vbCrlf();
                        }
                    }
                }
                $c = $c . '-------------------------------' . vbCrlf();
            }
            $c = $c . '===============================' . vbCrlf();
        }
    }
    $backupDir = $GLOBALS['adminDir'] . '/Data/BackUpDateBases/';
    $backupFilePath = $backupDir . '/' . Format_Time(now(), 4) . '.txt';
    createDirFolder($backupDir);
    deleteFile($backupFilePath);
    //删除旧备份文件
    createFile($backupFilePath, $c);
    //创建备份文件
    HR();
    aspEcho('backupDir', $backupDir);
    aspEcho('backupFilePath', $backupFilePath);
    eerr('操作完成', '<a href=\'?act=displayLayout&templateFile=layout_manageDatabases.html&lableTitle=数据库\'>点击返回 备份恢复数据</a>');
}
コード例 #8
0
ファイル: FunHTML.php プロジェクト: 313801120/AspPhpCms
function getDefaultFileName()
{
    $getDefaultFileName = Format_Time(now(), 6);
    return @$getDefaultFileName;
}
コード例 #9
0
function replaceValueParam($content, $paramName, $replaceStr)
{
    $startStr = '';
    $endStr = '';
    $labelStr = '';
    $tempLabelStr = '';
    $nLen = '';
    $nTimeFormat = '';
    $delHtmlYes = '';
    $funStr = '';
    $trimYes = '';
    $isEscape = '';
    $s = '';
    $i = '';
    $ifStr = '';
    //判断字符
    $elseIfStr = '';
    //第二判断字符
    $valueStr = '';
    //显示字符
    $elseStr = '';
    //否则字符
    $elseIfValue = '';
    $elseValue = '';
    //第二判断值
    $instrStr = '';
    $instr2Str = '';
    //查找字符
    $tempReplaceStr = '';
    //暂存
    //ReplaceStr = ReplaceStr & "这里面放上内容在这时碳呀。"
    //ReplaceStr = CStr(ReplaceStr)            '转成字符类型
    if (isNul($replaceStr) == true) {
        $replaceStr = '';
    }
    $tempReplaceStr = $replaceStr;
    //最多处理99个  20160225
    for ($i = 1; $i <= 999; $i++) {
        $replaceStr = $tempReplaceStr;
        //恢复
        $startStr = '[$' . $paramName;
        $endStr = '$]';
        //字段名称严格判断 20160226
        if (inStr($content, $startStr) > 0 && inStr($content, $endStr) > 0 && (inStr($content, $startStr . ' ') > 0 || inStr($content, $startStr . $endStr) > 0)) {
            //获得对应字段加强版20151231
            if (inStr($content, $startStr . $endStr) > 0) {
                $labelStr = $startStr . $endStr;
            } else {
                if (inStr($content, $startStr . ' ') > 0) {
                    $labelStr = StrCut($content, $startStr . ' ', $endStr, 1);
                } else {
                    $labelStr = StrCut($content, $startStr, $endStr, 1);
                }
            }
            $tempLabelStr = $labelStr;
            $labelStr = HandleInModule($labelStr, 'start');
            //删除Html
            $delHtmlYes = RParam($labelStr, 'delHtml');
            //是否删除Html
            if ($delHtmlYes == 'true') {
                $replaceStr = replace(delHtml($replaceStr), '<', '&lt;');
            }
            //HTML处理
            //删除两边空格
            $trimYes = RParam($labelStr, 'trim');
            //是否删除两边空格
            if ($trimYes == 'true') {
                $replaceStr = TrimVbCrlf($replaceStr);
            }
            //截取字符处理
            $nLen = RParam($labelStr, 'len');
            //字符长度值
            $nLen = handleNumber($nLen);
            //If nLen<>"" Then ReplaceStr = CutStr(ReplaceStr,nLen,"null")' Left(ReplaceStr,nLen)
            if ($nLen != '') {
                $replaceStr = CutStr($replaceStr, $nLen, '...');
            }
            //Left(ReplaceStr,nLen)
            //时间处理
            $nTimeFormat = RParam($labelStr, 'format_time');
            //时间处理值
            if ($nTimeFormat != '') {
                $replaceStr = Format_Time($replaceStr, $nTimeFormat);
            }
            //获得栏目名称
            $s = RParam($labelStr, 'getcolumnname');
            if ($s != '') {
                if ($s == '@ME') {
                    $s = $replaceStr;
                }
                $replaceStr = getColumnName($s);
            }
            //获得栏目URL
            $s = RParam($labelStr, 'getcolumnurl');
            if ($s != '') {
                if ($s == '@ME') {
                    $s = $replaceStr;
                }
                $replaceStr = getColumnUrl($s, 'id');
            }
            //是否为密码类型
            $s = RParam($labelStr, 'password');
            if ($s != '') {
                if ($s != '') {
                    $replaceStr = $s;
                }
            }
            $ifStr = RParam($labelStr, 'if');
            $elseIfStr = RParam($labelStr, 'elseif');
            $valueStr = RParam($labelStr, 'value');
            $elseifValue = RParam($labelStr, 'elseifvalue');
            $elseValue = RParam($labelStr, 'elsevalue');
            $instrStr = RParam($labelStr, 'instr');
            $instr2Str = RParam($labelStr, 'instr2');
            //call echo("ifStr",ifStr)
            //call echo("valueStr",valueStr)
            //call echo("elseStr",elseStr)
            //call echo("elseIfStr",elseIfStr)
            //call echo("replaceStr",replaceStr)
            if ($ifStr != '' || $instrStr != '') {
                if ($ifStr == cStr($replaceStr) && $ifStr != '') {
                    $replaceStr = $valueStr;
                } else {
                    if ($elseIfStr == cStr($replaceStr) && $elseIfStr != '') {
                        $replaceStr = $valueStr;
                        if ($elseifValue != '') {
                            $replaceStr = $elseifValue;
                        }
                    } else {
                        if (inStr(cStr($replaceStr), $instrStr) > 0 && $instrStr != '') {
                            $replaceStr = $valueStr;
                        } else {
                            if (inStr(cStr($replaceStr), $instr2Str) > 0 && $instr2Str != '') {
                                $replaceStr = $valueStr;
                                if ($elseifValue != '') {
                                    $replaceStr = $elseifValue;
                                }
                            } else {
                                if ($elseValue != '@ME') {
                                    $replaceStr = $elseValue;
                                }
                            }
                        }
                    }
                }
            }
            //函数处理20151231    [$title  function='left(@ME,40)'$]
            $funStr = RParam($labelStr, 'function');
            //函数
            if ($funStr != '') {
                $funStr = replace($funStr, '@ME', $replaceStr);
                $replaceStr = HandleContentCode($funStr, '');
            }
            //默认值
            $s = RParam($labelStr, 'default');
            if ($s != '' && $s != '@ME') {
                if ($replaceStr == '') {
                    $replaceStr = $s;
                }
            }
            //escape转码
            $isEscape = lCase(RParam($labelStr, 'escape'));
            if ($isEscape == '1' || $isEscape == 'true') {
                $replaceStr = escape($replaceStr);
            }
            //文本颜色
            $s = RParam($labelStr, 'fontcolor');
            //函数
            if ($s != '') {
                $replaceStr = '<font color="' . $s . '">' . $replaceStr . '</font>';
            }
            //call echo(tempLabelStr,replaceStr)
            $content = replace($content, $tempLabelStr, $replaceStr);
        } else {
            break;
        }
    }
    $replaceValueParam = $content;
    return @$replaceValueParam;
}