\n";
if (isset($_SESSION["SessionStatus"])?($_SESSION["SessionStatus"]==(md5($GBadmin.$GBpassword))):false) {
echo "
",AddSearchBar(),"
";
echo "\n";
echo " ",$Titles["AdminHello"],", $GBadmin!\n";
}
}
function SingleEntry($Entry) {
global $Titles;
global $GBcityfield;
global $GBlinkfield;
global $GBsubjectfield;
global $GBcategoryfield;
echo "
",($Entry[10]),"
$Entry[0]
";
if ($GBcityfield) echo "
$Entry[1]
";
if ($GBlinkfield) echo "
$Entry[2]
";
if ($GBsubjectfield) echo "
$Entry[7]
";
if ($GBcategoryfield) echo "
$Entry[8]
";
echo "
$Entry[3]
",nl2br($Entry[4]),"
",nl2br($Entry[6]),"
",date("j.m.Y, H:i",$Entry[5]),"
\n";
}
function AdminEntriesView() {
global $Titles;
global $DataStatus;
global $GBadmin;
global $GBpassword;
global $AdminEntries;
global $GBpagination;
global $GBtextlenght;
global $GBcityfield;
global $GBlinkfield;
global $GBsubjectfield;
global $GBcategoryfield;
global $GBstickylocked;
global $GBfield1;
global $GBfield2;
global $GBfield3;
if (isset($_SESSION["SessionStatus"])?($_SESSION["SessionStatus"]==(md5($GBadmin.$GBpassword))):false) if ($DataStatus=="empty") echo $Titles["EmptyFile"],"\n";
else if (isset($_SESSION["DeleteStatus"])) {
if ($_SESSION["DeleteStatus"]=="deletion") {
echo " ",$Titles["AdminSureDel"]," ",count($_SESSION["DeleteEntries"])," ",$Titles["AdminSureDelMessages"],"?\n";
echo "\n";
}
} else if (isset($_SESSION["EditStatus"])) {
echo " ",$Titles["AdminMessage"]," ", ($_SESSION["EditStatus"]),", ",date("j.m.Y, H:i",$AdminEntries[($_SESSION["EditStatus"]-1)][5]),": \n";
echo "\n";
} else {
if(isset($_POST["search"])&&$_POST["serachq"]) {
$SearchResult=Search($_POST["serachq"]);
if ($SearchResult) {
$GBpagination=0;
Unset($AdminEntries);
foreach($SearchResult as $n=>$Entry) $AdminEntries[$n]=$Entry[1];
} else echo $Titles["NoResult"],": '",$_POST["serachq"],"'. \n";
}
if (($GBpagination>0)&&(count($AdminEntries)>$GBpagination)) {
$Entries=array_reverse($AdminEntries);
if (isset($_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;
echo "\n";
echo "