вот код страницы
<?php
/*
////////////////////////////////////////////////////////////////////////////////
// JohnCMS Mobile Content Management System //
// Project site: http://johncms.com //
// Support site: http://gazenwagen.com //
////////////////////////////////////////////////////////////////////////////////
// Lead Developer: Oleg Kasyanov (AlkatraZ) alkatraz@gazenwagen.com //
// Development Team: Eugene Ryabinin (john77) john77@gazenwagen.com //
// Dmitry Liseenko (FlySelf) flyself@johncms.com //
////////////////////////////////////////////////////////////////////////////////
*/
defined('_IN_JOHNCMS') or die('Error: restricted access');
/*
-----------------------------------------------------------------
Файлы Юзера
-----------------------------------------------------------------
*/
$textl = htmlspecialchars($user['name']) . ': Файлы Юзера';
require('../incfiles/head.php');
echo '<div class="phdr"><a href="profile.php?user=' . $user['id'] . '"><b>' . $lng['profile'] . '</b></a> | Файлы Юзера</div>';
echo '<div class="user"><p>' . functions::display_user($user, array ('iphide' => 1,)) . '</p></div>';
$UserFail = mysql_query("SELECT * FROM `downfiles` WHERE `login` = '". $user['name'] . "' AND `type` = '0'");
$total = mysql_num_rows($UserFail);
$UserFail = mysql_query("SELECT * FROM `downfiles` WHERE `login` = '". $user['name'] . "' AND `type` = '0' ORDER BY `id` DESC LIMIT $start, $kmess ");
$namee = explode('||||', $fail['name']);
while ($fail = mysql_fetch_array($UserFail))
{
echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
printf("Файл: <a href="/download/file_'.$fail['id'].'.html">'.$namee[0].'</a>;
echo '</div>';
++$i;
}
$r = mysql_result(mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `user_id` = '".$user['id']."' "), 0);
if ($r < 0) {
echo '<div class="menu">Нет файлов</div>';
}
if ($total > $kmess) {
echo '<p>' . functions::display_pagination('profile.php?act=fail_users',$start, $total, $kmess) . '</p>';
echo '<p><form action="profile.php?act=fail_users" method="post"><input type="text" name="page" size="2"/><input type="submit" value="К странице >>"/></form></p>';
}
echo '<div class="topmenu">Всего: ' . $total . '</div>';
echo '<div class="phdr"><a href="profile.php?user=' . $user['id'] . '">' . $lng['back'] . '</a></div>';
?>