0) { $items = $itemsPreview; } $perpage = 07; $start = ($_GET["start"]) ? $_GET["start"] : 1; foreach ($_GET as $key => $value) { if (substr($key,0,7) == "filter_") { $filters[substr($key,7)] = $value; $newitems = array(); $newitems[] = false; foreach ($items as $itemkey => $itemvalue) { if ($itemvalue[strtolower(substr($key,7))] == $value) { $newitems[] = $itemvalue; } } $items = $newitems; } } if (!$_GET["show"]) { foreach ($items as $key => $value) { if ($key >= $start && ($key < $start + $perpage || !$perpage)) { $arr1 = array(); $arr2 = array(); $value["READMORE"] = "index.php?show=".$key."&start=".$start; if (is_array($filters)) { foreach ($filters as $fk => $fv) { $value["READMORE"] .= "&filter_".$fk."=".$fv; } } foreach ($value as $k2 => $v2) { $arr1[] = "[[".strtoupper($k2)."]]"; $arr2[] = $v2; } echo str_replace($arr1, $arr2, base64_decode("PHRhYmxlIGNsYXNzPSJ0ZXh0IiB3aWR0aD0iOTAlIiBib3JkZXI9IjAiIGNlbGxzcGFjaW5nPSIwIiBjZWxscGFkZGluZz0iMCI+CiAgPHRyPgogICAgPHRkPjxzdHJvbmc+W1tUSVRFTF1dPC9zdHJvbmc+PC90ZD4KICA8L3RyPgogIDx0cj4KICAgIDx0ZD5bW0lOVFJPXV08YnIgLz4KPGEgaHJlZj0iW1tSRUFETU9SRV1dIj5MZWVzIHZlcmRlci4uPC9hPjwvdGQ+CiAgPC90cj4KPC90YWJsZT4KPGJyIC8+Cg==")); } } if ($perpage > 0) { echo ""; } } else { $value = $items[$_GET["show"]]; $arr1 = array(); $arr2 = array(); $value["BACK"] = "index.php?start=".$start; if (is_array($filters)) { foreach ($filters as $fk => $fv) { $value["BACK"] .= "&filter_".$fk."=".$fv; } } foreach ($value as $k2 => $v2) { $arr1[] = "[[".strtoupper($k2)."]]"; $arr2[] = $v2; } echo str_replace($arr1, $arr2, base64_decode("PHRhYmxlIGNsYXNzPSJ0ZXh0IiB3aWR0aD0iOTAlIiBib3JkZXI9IjAiIGNlbGxzcGFjaW5nPSIwIiBjZWxscGFkZGluZz0iMCI+CiAgPHRyPgogICAgPHRkPjxzdHJvbmc+W1tUSVRFTF1dPC9zdHJvbmc+PC90ZD4KICA8L3RyPgogIDx0cj4KICAgIDx0ZD5bW0lOVFJPXV08YnIgLz4KICAgIFtbRlVMTF1dPGJyIC8+Cgk8YSBocmVmPSJbW0JBQ0tdXSI+VGVydWcgbmFhciBuaWV1d3NvdmVyemljaHQ8L2E+PC90ZD4KICA8L3RyPgo8L3RhYmxlPgo8YnIgLz4K")); } ?>