Пример #1
0
        echo layout_rightcol_start();
        $fp = fopen('./content/news.txt', 'r');
        if ($fp) {
            $text = "";
            $article_count = 0;
            while (!feof($fp)) {
                $buf = fgets($fp, 256);
                if (strpos($buf, '---') !== false) {
                    if ($article_count < 12) {
                        if ($text != "") {
                            echo layout_defaultblock($title, $link, $text, $stamp, $poster);
                        }
                    } else {
                        break;
                    }
                    $article_count++;
                    $text = "";
                    $title = trim(@fgets($fp, 256));
                    $link = trim(@fgets($fp, 256));
                    $stamp = @fgets($fp, 256);
                    $poster = @fgets($fp, 256);
                } else {
                    $text .= $buf;
                }
            }
            fclose($fp);
        }
        echo layout_rightcol_stop();
}
echo layout_footer();
Пример #2
0
?>
<div id="<?php 
echo $css_div_id;
?>
" class="<?php 
echo $css_class_id;
?>
">
<?php 
layout_message();
debug("including " . $g_i18n->filename("{$g_page}"));
include_once $g_i18n->filename("{$g_page}");
?>
</div>
<?php 
layout_footer();
layout_fixed();
?>
			</div>
			<?php 
layout_trace();
?>
		</div>
<?php 
if (isset($_SESSION['event_id'])) {
    ?>
		<script>
			var task_page = "<?php 
    echo HOST;
    ?>
/task.php";