\n"; echo "\n"; echo "
\n"; //Arrows echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; //viewer_controls echo "
\n"; //cell echo "
\n"; echo "
\n"; echo "
\n"; if (strlen($r['title']) > 0){ echo "

$r[title]

\n"; } if (strlen($r['description']) > 0){ echo "$r[description]\n"; } echo "" . formatDate($r['uploaded'], $lang) . "\n"; if (strlen($r['username']) > 0){ echo "$lng[gallery_user]$r[username]\n"; } echo "
\n"; $q_comment = mysqli_query($con, "SELECT * FROM photo_comment WHERE photo = $r[id];"); $comment_count = mysqli_num_rows($q_comment); echo "
\n"; echo "
\n"; switch ($comment_count){ case 0: echo "

$lng[gallery_comment_count_0]

\n"; break; case 1: echo "

1 $lng[gallery_comment_count_1]

\n"; break; default: echo "

$comment_count $lng[gallery_comment_count_several]

\n"; } echo "
\n"; echo "
\n"; //WARNING: If changes are done here, do the same in comment.php while ($r_comment = mysqli_fetch_array($q_comment)){ echo "
\n"; //When official users are implementes, see if there is user or username echo "$r_comment[username]\n"; echo "" . formatDate($r_comment['dtime'], $lang) . "\n"; echo "

$r_comment[text]

"; echo "
\n"; echo "
\n"; } echo "
\n"; #Comment form echo "
\n"; echo "
\n"; echo "\n"; //echo "\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "
\n"; //New comment echo "
\n"; //Comments echo "
\n"; //Cell echo "
\n"; //Row echo "
\n"; //Table stats(-1, 0, "photo", "$r[id]"); } ?>