</tr> <?php if (!empty($_GET['cat'])) { exec("{$sc} " . escapeshellarg("pbi list cages"), $pbiarray); $fulllist = explode(", ", $pbiarray[0]); $catsearch = $_GET['cat'] . "/"; $pbilist = array_filter($fulllist, function ($var) use($catsearch) { return preg_match("|^{$catsearch}|", $var); }); } else { exec("{$sc} " . escapeshellarg("pbi list cages"), $pbiarray); $pbilist = explode(", ", $pbiarray[0]); shuffle($pbilist); array_splice($pbilist, 16); } // Now loop through pbi origins $col = 1; foreach ($pbilist as $cageorigin) { if (parse_plugin_details($cageorigin, $col) == 0) { if ($col == $totalCols) { $col = 1; } else { $col++; } } } echo "</tr>"; echo "</table>"; ?>
<th style="width: 50%"></th> </tr> <?php $skipstop = $skip + 50; $totalCols = 2; // Now loop through pbi origins $col = 1; // Set the counter $curItem = 0; $atEnd = true; $pbilist = syscache_ins_plugin_list(); $parray = explode(", ", $pbilist); foreach ($parray as $pbiline) { if ($pbiline == " ") { continue; } $pbiarray = explode(" ", $pbiline); parse_plugin_details($pbiarray[0], $col, true, false); if ($col == $totalCols) { $col = 1; } else { $col++; } $curItem++; } echo "</tr>"; ?> </table> </div>