if (count($arr_array) != 0) { echo format_time("Y-m-d H:i:s", $arr_array[0]['postTime']); } else { echo format_time("Y-m-d H:i:s", time()); } ?> </updated> <?php foreach ($arr_array as $key => $fa) { if ($fa['password'] != "" && strpos(";" . $_SESSION['logpassword'], $fa['password']) < 1 && $_SESSION['rights'] != "admin") { $content = "<img src=\"" . $home_url . "images/icon_lock.gif\" alt=\"\" /> {$strLogPasswordHelp} \n"; } else { $content = $fa['logContent']; $rssLength = $settingInfo['rssLength'] < 1 ? 500 : $settingInfo['rssLength']; if ($settingInfo['rssContentType'] == "1") { $content = htmlSubString($content, $rssLength); } $content = formatBlogContent($content, 0, $fa['cid']); $content = str_replace("attachments/", $home_url . "attachments/", $content); $content = preg_replace("/src=\"([^http].*?)\"/is", "src=\"{$home_url}\\1\"", $content); $content = str_replace("download.php", $home_url . "download.php", $content); if ($fa['logsediter'] == "ubb") { $content = nl2br($content); } } $author = empty($fa['nickname']) ? $fa['author'] : $fa['nickname']; ?> <entry> <title type="html"><![CDATA[<?php echo $fa['logTitle']; echo $fa['saveType'] == 3 ? " [{$strHidLog}]" : "";
if ($fa['logsediter'] == "ubb") { $content_index = nl2br($content_index); } $content_index .= "<p><a class=\"more\" href=\"{$gourl}" . $fa['id'] . $settingInfo['stype'] . "\">[{$strContentAll}]</a></p> \n"; } else { if ($fa['autoSplit'] > 0) { $textlength = getStringLength(strip_tags($content)); if ($textlength > $fa['autoSplit']) { $content_index = htmlSubString($content, $fa['autoSplit']); $content_index = formatBlogContent($content_index, 0, $fa['id'], 1); if ($fa['logsediter'] == "ubb") { $content_index = nl2br($content_index); } $content_index .= "<p><a class=\"more\" href=\"{$gourl}" . $fa['id'] . $settingInfo['stype'] . "\">[{$strContentAll}]</a></p> \n"; } else { $content_index = htmlSubString($content, $fa['autoSplit']); $content_index = formatBlogContent($content_index, 0, $fa['id'], 1); if ($fa['logsediter'] == "ubb") { $content_index = nl2br($content_index); } } } } //生成阅读日志 $content = formatBlogContent($content, 0, $fa['id'], 1); if ($fa['logsediter'] == "ubb") { $content = nl2br($content); } //生成静态页面 if ($content_index != "") { writetohtml($html_path . "/" . $fa['id'] . "_index", $content_index);