\n";
if ($PageStatus=="emptyname") echo "$Titles[EmptyName] \n";
if ($PageStatus=="emptytext") echo "$Titles[EmptyText] \n";
if ($PageStatus=="wrongcaptcha") echo "$Titles[WrongCaptcha] \n";
}
}
function EntriesView() {
global $Titles;
global $DataStatus;
global $Entries;
global $GBpagination;
if ($DataStatus=="empty") echo "$Titles[EmptyFile]";
else if (($GBpagination>0)&&(count($Entries)>$GBpagination)) {
$Entries=array_reverse($Entries);
if ($_GET['page']) switch ($_GET['page']) {
case $Titles[First]:
$CurrentPage=0;
break;
case $Titles[Last]:
$CurrentPage=intdiv(count($Entries),$GBpagination);
break;
case "$Titles[Previous]":
$CurrentPage=$_SESSION['currentpage']-1;
break;
case "$Titles[Next]":
$CurrentPage=$_SESSION['currentpage']+1;
break;
default:
$CurrentPage=$_GET['page']-1;
}
else $CurrentPage=0;
for ($e = ($GBpagination*$CurrentPage); $e < ($GBpagination*($CurrentPage+1)); $e++) {
if ($e>=count($Entries)) break;
echo "
",$Entries[$e][7],". ";
if ($Entries[$e][2]) echo "";
echo "",$Entry[0],"";
if ($Entries[$e][2]) echo "";
if ($Entries[$e][1]) echo " ",$Titles[From]," ",$Entries[$e][1],"";
echo ", ",date("j.m.Y, H:i",$Entries[$e][5]),", ",$Titles[Wrote],":
\n";
echo " ",nl2br($Entries[$e][4])," \n";
if ($Entries[$e][6]) echo " $Titles[Response]: \n";
if ($Entries[$e][6]) echo nl2br($Entries[$e][6])," \n";
echo "