File size: 792B
<?php
if (is_file('moduls/my_link/cgf.php'))
include('moduls/my_link/cgf.php');
elseif (is_file('cgf.php'))
include('cgf.php');
Defined('INDEX_S_S') or die ('Доступ запрещен!!!');
if (!is_file($link_base.$_SESSION['user_login'].'.txt') || filesize($link_base.$_SESSION['user_login'].'.txt') == 0)
{
echo '<div class="error">У вас нет активных закладок.</div>';
}
else
{
$link_file = $link_base.$_SESSION['user_login'].'.txt';
$link_arr = @file($link_file);
$link_id = 0;
$link_add_true = 1;
echo '<div class="mess2">';
while($link_id < count($link_arr))
{
$link_link = explode('|',$link_arr[$link_id]);
echo '<div>
<a href="'.$link_link[1].'">'.$link_link[0].'</a>
</div>';
$link_id+=1;}
echo '</div>';
}
?>