示例#1
0
文件: index.php 项目: kaz6120/P_BLOG
{$indexes}
</div>
<div class="section">
<h2 class="date-title">{$title_date}</h2>
EOD;
        do {
            // $tmp_date = substr($row['bindate'], 0, 10);
            format_date($row_name = 'bindate');
            $tmp_date = $formatted_date;
            if ($title_date != $tmp_date) {
                $title_date = $tmp_date;
                $contents .= '</div><!-- End .section -->' . "\n\n" . '<div class="section">' . "\n" . '<h2 class="date-title">' . $title_date . "</h2>\n";
            }
            $row = convert_to_utf8($row);
            $contents .= display_binary_box($row);
        } while ($row = mysql_fetch_array($res));
        $contents .= "</div><!-- End .section -->\n\n";
        $contents .= display_prev_logs_navi('files/search');
    } else {
        $contents = "\n" . '<div class="section">' . "\n" . '<h2>' . $lang['recent'] . '<strong>' . $rows . '</strong>' . $lang['files'] . "</h2>\n";
        while ($row = mysql_fetch_array($res)) {
            $row = convert_to_utf8($row);
            $contents .= display_binary_box($row);
        }
        $contents .= "</div><!-- End .section -->\n\n";
        $contents .= display_prev_logs_navi('files/search');
    }
} else {
    $contents = "\n" . '<div class="section">' . "\n" . '<h2>Welcome to ' . $cfg['blog_title'] . " !</h2>\n" . '<p>' . $lang['no_files'] . "</p>\n" . "</div>\n";
}
xhtml_output('file');
示例#2
0
文件: index.php 项目: kaz6120/P_BLOG
            $tmp_date = $formatted_date;
            if ($title_date != $tmp_date) {
                $title_date = $tmp_date;
                $section_content .= '</div><!-- End .section -->' . "\n\n" . '<div class="section">' . "\n" . '<h2 class="date-title">' . $title_date . "</h2>\n";
            }
            $row = convert_to_utf8($row);
            $section_content .= display_article_box($row);
        } while ($row = mysql_fetch_array($res));
    } else {
        $section_title = '<h2>' . $lang['recent'] . '<strong>' . $rows . '</strong>' . $lang['logs'] . '</h2>';
        while ($row = mysql_fetch_array($res)) {
            $row = convert_to_utf8($row);
            $section_content .= display_article_box($row);
        }
    }
    $section_content .= display_prev_logs_navi('search');
} else {
    if (file_exists('./SETUP/')) {
        @(include_once './SETUP/welcome.inc.php');
    } else {
        $section_title = '<h2>Welcome to ' . $cfg['blog_title'] . ' !</h2>';
        $section_content = '<p>' . $lang['no_posts'] . '</p>';
    }
}
// Presentation
$contents = <<<EOD
<div class="section">
{$section_title}
{$section_content}
</div><!-- End .section -->
EOD;