break; case 'addtocart': case 'deletefromcart': case 'emptycart': case 'showcart': echo "<hr /><h1>Your shopping cart</h1>"; showCart($_SESSION['cart'], $mode); break; case 'image': showCategories($mode); echo "<h1>Large Product Image</h1>"; showImage($ASIN, $mode); break; case 'search': showCategories($mode); echo "<h1>Search Results For " . $search . "</h1>"; showSearch($search, $page, $mode); break; case 'browsenode': default: showCategories($mode); $category = getCategoryName($browseNode); if (!$category || $category == 'Best Selling Books') { echo "<h1>Current Best Sellers</h1>"; } else { echo "<h1>Current Best Sellers in " . $category . "</h1>"; } showBrowseNode($browseNode, $page, $mode); break; } require 'bottom.php';
if (isset($_POST["showPage"])) { $resultArray = explode(":|:|:|:", pageType($_POST["q"])); $pageType = $resultArray[0]; $match = $resultArray[1]; //---showProfile---// if ($pageType === "profile") { include "showProfile.php"; $result = showProfile($match); echo $pageType . ":|:|:|:" . $result; } elseif ($pageType === "project") { include "showProject.php"; $result = showProject($match); echo $pageType . ":|:|:|:" . $result; } elseif ($pageType === "search") { include "showSearch.php"; $result = showSearch($match); if ($result === "") { echo $pageType; } else { echo $pageType . ":|:|:|:" . $result; } } elseif ($pageType === "home") { echo "home"; } } elseif (isset($_POST["showList"])) { include "showList.php"; if (isset($_POST["q"])) { $q = $_POST["q"]; } else { $q = 0; }
if (!isset($_GET['nicksearch'])) { $_GET['nicksearch'] = ""; } if (!isset($_GET['hostsearch'])) { $_GET['hostsearch'] = ""; } if (!isset($_GET['usersearch'])) { $_GET['usersearch'] = ""; } if (!isset($_GET['action'])) { $_GET['action'] = ""; } switch ($_GET['action']) { default: case 'search': showSearch(); if ($_GET['nickvalue'] != '' || $_GET['uservalue'] != '' || $_GET['hostvalue'] != '') { $matches = $thispage->filterByName($_GET['nicksearch'], $_GET['usersearch'], $_GET['hostsearch'], $_GET['nickvalue'], $_GET['uservalue'], $_GET['hostvalue']); showResult($matches); } break; case 'searchSubmit': $ids = NULL; if (isset($_POST['ircuserid'])) { $posted = $_POST['ircuserid']; foreach ($posted as $id) { $ids .= $id . ","; } $len = strlen($ids); $ids = substr($ids, 0, $len - 1); }
<div id="mainUnits"> <?php if (isset($_GET['s'])) { require_once rootD . '/lib/showSearch.php'; $PAge = isset($_GET['p']) ? $_GET['p'] : 1; showSearch($_GET['s'], $PAge); } else { require_once rootD . '/lib/give/giveUnits.php'; $D = isset($_GET['d']) ? $_GET['d'] : "x"; $P = isset($_GET['p']) ? $_GET['p'] : 1; giveUnits($D, $P); } ?> <script> $(".pics").height($(".pics").width()/0.818); $("#sepage").css("margin-left",$("#sepage").width()/-2); $(".searchShops").css("height",$(".searchShops").width()); </script> </div>