Beispiel #1
0
function navigatepages($npr)
{
    global $page, $pages, $razdel;
    $result = '<div class="navigation-photo">' . __('Страницы') . ':&nbsp;&nbsp;';
    if ($page > 1) {
        $result .= '<a href="' . cc_link('/photo' . $razdel . '-' . ($page - 1) . '.html') . '"><b><<</b></a>&nbsp;&nbsp;';
    }
    $result .= pages($npr);
    if ($page < $pages) {
        $result .= '&nbsp;&nbsp;<a href="' . cc_link('/photo' . $razdel . '-' . ($page + 1) . '.html') . '"><b>>></b></a>';
    }
    $result .= '</div>';
    return $result;
}
Beispiel #2
0
				title="' . __('Постоянная ссылка на сообщение') . '">' . date('d-m-Y H:i:s', $currentcomment['id_comment']) . '</a></div>
				<b>' . __('Автор') . ':</b> ' . $currentcomment['name'] . '<br/>
				<b>E-mail:</b>  <a href="mailto:' . $currentcomment['email'] . '">' . $currentcomment['email'] . '</a><br/>
				' . $currentcomment['content'] . '</div>';
        }
    }
    echo '<br /><div id="navigation-comment">' . __('Страницы') . ':&nbsp;&nbsp;';
    if (count($arrcomments) == 0) {
        echo '&laquo;<b>1</b>&raquo;';
    } else {
        for ($i = 0; $i < count($arrcomments) / $commentsperpage_comments; $i++) {
            $j = $i + 1;
            if ($i == $commentpage) {
                echo '&laquo;' . $j . '&raquo;&nbsp;';
            } else {
                echo '<a href="' . cc_link('/news-' . $viewnews . '_' . $i . '.html') . '">' . $j . '</a>&nbsp;';
            }
        }
    }
    echo '</div>';
}
if ($enablecomment == 2) {
    echo '<script type="text/javascript">
	var error="";
	function Checkit(theform) {
		if(theform.yourname.value=="") {
			error+="' . __('Вы не ввели имя') . '\\n";
		}
		if(theform.msg.value=="") {
			error+="' . __('Вы не ввели сообщение') . '\\n";
		}
Beispiel #3
0
</h2>
			</div>
      			<?php 
echo $contentcenter;
?>
		</div>
	</div>
	<!-- end content -->
	<br style="clear: both;" />
</div>
<!-- end page -->
<!-- start footer -->
<div id="footer">
	<p class="links">
		<a href="<?php 
echo cc_link("/rss.html");
?>
" class="rss" title="Subscribe to entries web feed"  target="_blank">Entries (<abbr>RSS</abbr>)</a>
		   
		<a href="http://validator.w3.org/check/referer" class="xhtml" title="This page validates as XHTML">Valid <abbr>XHTML</abbr></a>
		   
		<a href="http://jigsaw.w3.org/css-validator/check/referer" class="css" title="This page validates as CSS">Valid <abbr>CSS</abbr></a>
	</p>
	<p class="legal">
        © 2010 <?php 
echo $sitename;
?>
. Powered by: <a href="http://www.kan-studio.ru">Kandidat <abbr>CMS</abbr> by it</a> <?php 
echo printbuildtime();
?>
. Webmaster <a href="http://forum.kan-studio.ru/profile.php?id=117" target="_blank">it aka porese</a><br/>
Beispiel #4
0
include_once CONF . 'newsconf.php';
$news_Glink = '/news' . ($news_cat == '1' ? '/' : '-');
$news_Gpage = '/news' . ($news_cat == '1' ? '/' : '.html');
$lastnew = "";
$data = array_reverse(file($newsdbfilename));
$allnews = count($data);
if ($allnews >= 1) {
    for ($i = 1; $i <= min($newsonmainpage, $allnews); $i++) {
        //$datas=unserialize(array_shift($data));
        $datas = unserialize($data[$i - 1]);
        $head = $datas['head'];
        $head = str_replace("&quot;", '"', $datas['head']);
        $mess = strip_tags($datas['mess']);
        $pubdate = $datas['pubdate'];
        $p = $allnews - $i + 1;
        if (fstrlen($head) > $lengthhead) {
            $head = fsubstr($head, 0, $lengthhead);
        }
        if (fstrlen($mess) > $lengthnews) {
            $mess = fsubstr($mess, 0, $lengthnews);
        }
        $head = close_dangling_tags($head);
        $mess = close_dangling_tags($mess);
        $mess .= '&nbsp;&nbsp;<a href="' . cc_link($news_Glink . $p . '.html') . '" class="more">...' . __('читать далее') . '</a>';
        $lastnew .= '<li><p class="title"><span class="news-date-time">' . $pubdate . '</span>, ' . $head . '</p><div class="entry">' . $mess . '</div></li>';
    }
    $lastnew .= '<li id="nobackground"><div class="links"><a href="' . cc_link($news_Gpage) . '" class="more">' . __('все новости') . '</a></div></li>';
    echo $lastnew;
} else {
    echo '<li><p class="title">' . __('Записей нет!') . '</p></li>';
}
Beispiel #5
0
                            echo '<div class="title"><h2><a href="' . cc_link($news_Glink . $newnum . '.html') . '">' . $head . '</a></h2></div><div class="entry">' . $startnews . '</div><br />';
                            echo '<p class="links">' . $pubdata_text . '<a href="' . cc_link($news_Glink . $newnum . '.html#comment_begin') . '"> | ' . __('Комментарии') . ': ' . getcountcomments($new['id'], $commentsdbfilename, $moder_comments) . '</a> | <a href="' . cc_link($news_Glink . $newnum . '.html') . '" class="comments">' . __('Читать полностью') . '</a></p><br /><br />';
                        }
                    } elseif (file_exists(ARTICLES . $data[2] . '.dat')) {
                        $artdata = file_get_contents(ARTICLES . $data[2] . '.dat');
                        $hs_text = articlesparam('title', $artdata);
                        $s_text = articlesparam('content', $artdata);
                        $pubdata_text = articlesparam('pubdate', $artdata);
                        if (!empty($pubdata_text)) {
                            $pubdata_text = date('d.m.Y', $pubdata_text) . ' | ';
                        }
                        $pos = strpos($s_text, ' ', min(strlen($s_text), $saftertitle));
                        if ($pos) {
                            $s_text = substr($s_text, 0, $pos);
                        }
                        $s_text .= '....';
                        $s_text = close_dangling_tags($s_text);
                        if (substr($data[2], -4) == 'main') {
                            $aname = fsubstr($data[2], 0, -4);
                        } else {
                            $aname = $data[2] . '.html';
                        }
                        echo '<div class="title"><h2>' . art_catalog($data[2], '->') . '<a href="' . cc_link($aname) . '" name="' . str_replace('/', '--', $aname) . '">' . $hs_text . '</a></h2></div><div class="entry">' . $s_text . '</div><br />';
                        echo '<p class="links">' . $pubdata_text . '<a href="' . cc_link('/' . $aname . '#comment_begin') . '">' . __('Комментарии') . ': ' . getcountcomments(0, ARTICLES . $data[2] . '.dat.comment', $moder_comments) . '</a> | <a href="' . cc_link('/' . $aname) . '" class="comments">' . __('Читать полностью') . '</a></p><br /><br />';
                    }
                    $arrclouds[$data[0]] = $arrclouds[$data[0]] + 1;
                }
            }
        }
    }
}
Beispiel #6
0
        $i = $j - $newsperpage;
        for ($p = $j + 1; $i < $j && $j >= 0; $p = $j--) {
            if (!is_array($new = unserialize($news[$j]))) {
                continue;
            }
            echo '<div class="title"><h2><a href="' . cc_link($news_Glink . $p . '.html') . '" class="more">' . $new['head'] . '</a></h2></div>
				<div class="entry"><p>' . $new['mess'] . '</p></div>
				<p class="links"><span class="news-date-time">' . $new['pubdate'] . '</span> | ' . $new['aname'] . ' | ' . __('Просмотров') . ': ' . get_newsread_count($new['id']) . ' | <a href="' . cc_link($news_Glink . $p . '.html#comment_begin') . '">' . __('Комментариев') . ': ' . getcountcomments($new['id'], $commentsdbfilename, $newsmoderator) . '</a> | ' . '<a href="' . cc_link($news_Glink . $p . '.html') . '" class="more">' . __('Читать далее') . '</a></p><br><br>';
        }
        echo '<div id="navigation-news"><b>' . __('Страницы') . ':</b>&nbsp;';
        $all = ceil($countallnews / $newsperpage);
        for ($i = 1; $i <= $all; $i++) {
            if ($_REQUEST['newspage'] == $i) {
                echo '&laquo;<b>' . $i . '</b>&raquo;&nbsp;';
            } else {
                echo '<a href="' . cc_link($news_Glink . 'page-' . $i . '.html') . '">' . $i . '</a>&nbsp;';
            }
        }
        echo '</div><div id="allcount-news">' . __('Всего&nbsp;новостей') . ':&nbsp;<b>' . $countallnews . '</b></div>';
    } else {
        if ($countallnews > $viewnews - 1) {
            $new = unserialize($news[$viewnews - 1]);
            inc_newsread_count($new['id']);
            $sitetitle .= ' - ' . $new['head'];
            $metadescription .= ',' . $new['description'];
            $metakeywords .= ',' . $new['keywords'];
            $countcomments = getcountcomments($new['id'], $commentsdbfilename, $newsmoderator);
            echo '<div class="title"><h2>' . $new['head'] . '</h2></div>
				<div class="entry"><p>' . $new['mess'] . '<br />' . $new['extra'] . '</p></div>
				<span class="news-date-time">' . $new['pubdate'] . '</span> | ' . $new['aname'] . ' | ' . __('Просмотров') . ': ' . get_newsread_count($new['id']) . ' | ' . __('Комментариев') . ': ' . getcountcomments($new['id'], $commentsdbfilename, $newsmoderator);
            //Для модуля новости
Beispiel #7
0
</form>
EOT;
$contentcenter .= '<br /><br /><br /><center><h3>Образец</h3><br />';
if (file_exists(ENGINE . 'cloudtagsdb.php')) {
    $cloud = file(ENGINE . 'cloudtagsdb.php');
    $sizeofcloud = sizeof($cloud);
    if ($sizeofcloud > 0) {
        $sdata = explode('%', $cloud[0]);
        for ($i = 1; $i < $sizeofcloud; $i++) {
            $data = explode('%%', $cloud[$i]);
            $arrclouds[$data[0]] = $arrclouds[$data[0]] + 1;
        }
        $tags = '<tags>';
        if (is_array($arrclouds)) {
            foreach ($arrclouds as $key => $val) {
                $tags .= '<a href="' . cc_link('/cloudtags-' . translit($key) . '.html') . '" style="font-size: ' . ($sdata[1] + $val - 1) . 'pt">' . $key . '</a>';
            }
        }
        $tags .= '</tags>';
    }
}
$contentcenter .= '<script type="text/javascript" src="' . $prefflp . '/js/swfobject.js"  charset="utf8"></script>
<div id="tags">
<p>' . str_replace('><', '><br /><', $tags) . '</p>
<p>Облако тегов требует для просмотра <noindex><a href="http://www.adobe.com/go/getflashplayer" target="_blank" rel="nofollow">Flash Player 9</a></noindex> или выше.</p>
<script type="text/javascript">
	var rnumber = Math.floor(Math.random()*9999999);
	var widget_so = new SWFObject("' . $prefflp . '/js/tagcloud.swf?r="+rnumber, "tagcloudflash", "' . $x . '", "' . $y . '", "9", "#' . $bgcolor . '");
	widget_so.addParam("allowScriptAccess", "always");
	widget_so.addParam("wmode", "transparent");
	widget_so.addVariable("tcolor", "0x' . $color . '");
Beispiel #8
0
                if ($saftertitle !== 0) {
                    $s_text = articlesparam('content', $data);
                    $pos = min(strlen($s_text), $saftertitle);
                    $pos = strpos($s_text, ' ', $pos);
                    if ($pos) {
                        $s_text = substr($s_text, 0, $pos);
                    }
                    $s_text .= '....';
                    $s_text = close_dangling_tags($s_text);
                    echo '<div class="entry">' . $s_text . '</div><br />';
                }
                $commentsfilename = ARTICLES . $fullcatpage . '/' . $aname . '.dat.comment';
                echo '<p class="links">' . $pubdata_text . '<a href="' . cc_link($fullcatpage . '/' . $aname . '.html#comment_begin') . '">' . __('Комментарии') . ': ' . getcountcomments(0, $commentsfilename, $moder_comments) . '</a> | ';
                echo '<a href="' . cc_link($fullcatpage . '/' . $aname . '.html') . '" class="comments">' . __('Читать полностью') . '</a></p><br />';
            }
        }
    }
    if ($countallstati > 0) {
        echo '<div id="navigation"><b>' . __('Страницы') . ':</b>&nbsp;';
        $sperpage = empty($sperpage) ? 20 : $sperpage;
        $all = ceil($countallstati / $sperpage);
        for ($i = 1; $i <= $all; $i++) {
            if ($_REQUEST['spage'] == $i) {
                echo '&laquo;<b>' . $i . '</b>&raquo;&nbsp;';
            } else {
                echo '<a href="' . cc_link($fullcatpage . '/spage-' . $i . '.html') . '">' . $i . '</a>&nbsp;';
            }
        }
        echo '</div>';
    }
}
Beispiel #9
0
function dirlist($arr)
{
    $dir = scandir($arr, 1);
    $arr2 = str_replace(ARTICLES, '', $arr);
    for ($i = 0; $i < count($dir) - 2; $i++) {
        $title = "";
        $submenu = "";
        if (preg_match('/\\.dat$/i', $dir[$i])) {
            if (preg_match('/(^main)|(^404)\\.dat/iu', $dir[$i])) {
                continue;
            }
            if (file_exists($arr . '/' . $dir[$i])) {
                $data = file_get_contents($arr . '/' . $dir[$i]);
                $head = articlesparam('title', $data);
                $descr = articlesparam('description', $data);
                $incl = articlesparam('myinclude', $data);
                $page = cc_link($arr2 . '/' . preg_replace('/\\.dat$/i', '.html', $dir[$i]));
                $fsize = convert_fsize(filesize($arr . '/' . $dir[$i]));
                if ($incl == 'photo') {
                    $tempdir = scandir(PICTURES, 1);
                    $temparr = array_filter($tempdir, 'onlycat');
                    $countdir = count($temparr);
                    $countdir = $countdir > 0 ? ': ' . $countdir . ' ' . __('каталога') : '';
                    $temparr = array_filter($tempdir, 'onlypic');
                    $countpic = count($temparr);
                    $countdir .= $countpic > 0 ? ' ' . $countpic . ' ' . __('картинок') : '';
                    echo '<li class="photo"><a href="' . $page . '" title="' . $descr . '">' . $head . '</a> (' . __('Каталог') . $countdir . ")\n";
                    echo "<ul>";
                    listpict(PICTURES);
                    echo '</ul></li>';
                } else {
                    echo '<li  class="file"><a href="' . $page . '" title="' . $descr . '">' . $head . '</a> (' . __('размер') . ': ' . $fsize . ")</li>\n";
                }
            }
        } else {
            if (preg_match('/(^\\.)|(\\.[a-z]*)/iu', $dir[$i])) {
                continue;
            }
            $submenu = "";
            if (file_exists($arr . '/' . $dir[$i] . '/main.dat')) {
                $fh = @fopen($arr . '/' . $dir[$i] . '/main.dat', 'r');
                $data = fread($fh, filesize($arr . '/' . $dir[$i] . '/main.dat'));
                fclose($fh);
                $head = str_replace("\n", '', articlesparam('title', $data));
                $descr = str_replace("\n", '', articlesparam('description', $data));
                $incl = str_replace("\n", '', articlesparam('myinclude', $data));
                $page = cc_link($arr2 . '/' . $dir[$i] . '/');
                $tempdir = scandir($arr . '/' . $dir[$i], 1);
                $tempdir = array_filter($tempdir, 'onlydat');
                $countindir = count($tempdir);
                $countindir = $countindir > 0 ? ': ' . $countindir . ' ' . __('файла/каталога') : '';
                echo '<li class="folder"><a href="' . $page . '" title="' . $descr . '">' . $head . '</a> (' . __('Каталог') . $countindir . ')';
                if ($countindir !== '') {
                    echo '<ul>';
                    dirlist($arr . '/' . $dir[$i]);
                    echo '</ul>';
                }
                echo '</li>';
            }
        }
    }
}
Beispiel #10
0
    for ($i = 0; $i < $count_files; $i++) {
        $dd = opendir(ARTICLES . $cat_st[$i]);
        while ($pfile = readdir($dd)) {
            $ext = getftype($pfile);
            if ($pfile != '.' && $pfile != '..' && $ext == 'dat' && $pfile != '404.dat' && !is_dir(ARTICLES . $pfile)) {
                $data = file_get_contents(ARTICLES . $cat_st[$i] . "/" . $pfile);
                $pubdate = articlesparam("pubdate", $data);
                if ($pubdate !== "") {
                    $s_text = articlesparam("content", $data);
                    $pos = @strpos($s_text, ' ', 1000);
                    if ($pos) {
                        $s_text = substr($s_text, 0, $pos);
                    }
                    $s_text .= "....";
                    $s_text = close_dangling_tags($s_text);
                    $return[] = array('datatime' => $pubdate, 'head' => articlesparam("title", $data), 'pubdate' => date("D, d M Y H:i:s O", $pubdate), 'mess' => $s_text, 'link' => $sitehost . cc_link('/' . $cat_st[$i] . '/' . substr($pfile, 0, -4) . '.html'));
                }
                $arfiles[$cat_st[$i] . "/" . $pfile] = articlesparam("pubdate", $data);
            }
        }
    }
}
reset($return);
usort($return, "compare_arr");
$now = date("D, d M Y H:i:s O");
$output = "<?xml version=\"1.0\" encoding=\"utf8\"?>\n<rss version=\"2.0\">\n                <!-- Generated Kandidat-CMS -->\n                <channel>\n                    <title><![CDATA[Последние новости " . $sitename . "]]></title>\n                    <link>" . $sitehost . "/rss.html</link>\n                    <description><![CDATA[Последние новости с сайта " . $sitehost . "]]></description>\n                    <lastBuildDate>" . $now . "</lastBuildDate>\n                    <docs>" . $sitehost . "</docs>\n                    <generator>Kadidat-CMS</generator>\n                    ";
foreach ($return as $line) {
    $output .= "<item>\n                        <title><![CDATA[" . strip_tags($line['head']) . "]]></title>\n                        <link>" . htmlentities(strip_tags($line['link']), ENT_COMPAT, cp1251) . "</link>\n                        <description><![CDATA[" . strip_tags($line['mess']) . "]]></description>\n                        <author><![CDATA[example@example.com (porese)]]></author>\n                        <pubDate>" . $line['pubdate'] . "</pubDate>\n                        <guid>" . htmlentities(strip_tags($line['link']), ENT_COMPAT, cp1251) . "</guid>\n                    </item>";
}
$output .= "\n                </channel>\n</rss>";
echo $output;
Beispiel #11
0
function makeupmenu($id_select_item = 'mmenuselect', $texttag = 'span')
{
    //$id_select_item='mmenuselect'; //id выделенного элемента меню
    global $catpage, $subcatpage, $whatpage;
    $menudb = ENGINE . '/menudb.php';
    $currlink = "/";
    if (!empty($catpage)) {
        $currlink .= $catpage . '/';
    }
    if (!empty($subcatpage)) {
        $currlink .= $subcatpage . '/';
    }
    if (!empty($whatpage)) {
        $currlink .= $whatpage . '.html';
    }
    if (file_exists($menudb)) {
        $datas = file($menudb);
        $allmenu = count($datas);
        if ($allmenu >= 1) {
            $root_item = 0;
            for ($i = 0; $i < $allmenu; $i++) {
                $data = unserialize($datas[$i]);
                if ($data == '') {
                    continue;
                }
                if (@$data['viewup'] !== '1') {
                    continue;
                }
                $page = $data['page'];
                $head = $data['head'];
                $title = $data['title'];
                $blank = $data['blank'];
                $submenu = $data['submenu'];
                $blank = $blank == 1 ? ' target="_blank" ' : '';
                if ($page == $currlink) {
                    $curclass = 'id="' . $id_select_item . '" ';
                } else {
                    $curclass = '';
                }
                $menu .= '<li ' . $curclass . '><a href="' . cc_link($page) . '" title="' . $title . '"' . $blank . '><' . $texttag . '>' . $head . '</' . $texttag . "></a></li>\n";
            }
            echo $menu;
        }
    }
}
Beispiel #12
0
                    array_splice($menu, $move - 1, 1);
                    savearray($myFile, $menu, 'w', '');
                }
                header('LOCATION:menueditor.php');
            } else {
                $menu_item = unserialize($menu[$move - 1]);
                $countmenu = count($menu);
                for ($i = 0; $i < $countmenu; $i++) {
                    if ($i + 1 !== $move) {
                        $curmenuitem = unserialize($menu[$i]);
                        @($contentmenu .= '<option value="' . ($i + 1) . '" >' . $curmenuitem['head'] . '</option>');
                    }
                }
                $contentcenter = '<h3>' . __('Редактирование меню') . '</h3>';
                $contentcenter .= '<form action="' . $url . '" method="post" name="my_form">
								' . __('Поместить данный пункт меню') . ' ' . $menu_item['head'] . ' ' . __('с адресом') . ' ' . cc_link($menu_item['page']) . '<br /><br />
								' . __('перед пунктом') . ': <select name="ltd">
									<option value="" selected="selected"> - ' . __('Выбрать') . ' - </option>
									' . @$contentmenu . '
						    		</select>
								<input id="submit" type="submit" value="' . __('Переместить') . '" name="go" />
								</form><br /><br />
								<center><a href=\'javascript:history.back(1)\'><B>' . __('Вернуться назад') . '</B></a></center>';
            }
        }
        //Вверх
    } elseif ($up > 0) {
        if ($up > 1) {
            if (count($menu) >= $up) {
                array_splice($menu, $up - 2, 0, $menu[$up - 1]);
                array_splice($menu, $up, 1);
Beispiel #13
0
            if (!empty($pubdata_text)) {
                $pubdata_text = date('d.m.Y', $pubdata_text) . ' | ';
            }
            $pos = @fstrpos($s_text, ' ', 1000);
            if ($pos) {
                $s_text = fsubstr($s_text, 0, $pos);
            }
            $s_text .= "....";
            $s_text = close_dangling_tags($s_text);
            $commentsfilename = ARTICLES . $aname . '.dat.comment';
            if (substr($aname, -4) == 'main') {
                $aname = fsubstr($aname, 0, fstrlen($aname) - 4);
            } else {
                $aname .= '.html';
            }
            echo '<div class="title"><h2>' . art_catalog($key, '->') . '<a href="' . cc_link('/' . $aname) . '" name="' . str_replace('/', '--', $aname) . '">' . $hs_text . '</a></h2></div><div class="entry">' . $s_text . '</div><br />';
            echo '<p class="links">' . $pubdata_text . '<a href="' . cc_link('/' . $aname . '#comment_begin') . '">' . __('Комментарии') . ': ' . getcountcomments(0, $commentsfilename, $moder_comments) . '</a> | <a href="' . cc_link('/' . $aname) . '" class="comments">' . __('Читать полностью') . '</a></p><br /><br />';
        }
    }
    $index_arr++;
}
echo '<div id="navigation"><b>' . __('Страницы') . ':</b>&nbsp;';
$all = ceil($countallstati / $sperpage);
for ($i = 1; $i <= $all; $i++) {
    if ($_REQUEST['page'] == $i) {
        echo '&laquo;<b>' . $i . '</b>&raquo;&nbsp;';
    } else {
        echo '<a href="' . cc_link('/' . $url . '-' . $i . '.html') . '">' . $i . '</a>&nbsp;';
    }
}
echo '</div>';
Beispiel #14
0
			        <div style="text-align: right">' . __('от') . ': ' . $date . '</div>
			        <div style="clear: left">' . $email . '&nbsp;' . $url . '</div>
			    </div>
		    	<div class="entry">
			        ' . $msg . '
			    </div>
		    	<div class="admin">
			        ' . $answer . '
			    </div>
				<br />';
        }
        echo '<div class="nav">';
        $count = min($count, $start + $pnumber);
        if ($start != 0) {
            echo ' <span class="prev"><a href="' . cc_link('/guestbook-start-' . ($start - $pnumber) . '.html') . '">' . __('Следующие') . '</a></span> || ';
        } else {
            echo ' <span class="next">' . __('Следующие') . '</span> || ';
        }
        if ($count1 > $start + $pnumber) {
            echo ' <span class="next"><a href="' . cc_link('/guestbook-start-' . ($start + $pnumber) . '.html') . '">' . __('Предыдущие') . '</a></span><br /><br />';
        } else {
            echo ' <span class="prev">' . __('Предыдущие') . '</span><br /><br />';
        }
        echo '</div>';
    }
    echo '<p class="back"><a href="' . cc_link('/guestbook-addrec-1.html') . '">' . __('Добавить запись') . '</a></p>';
    echo "</div>\n";
}
?>