langargs = "&row=$row&catSearch=$catSearch"; $page->showHeader(); $limit = $rowsPerPage * $cardsPerRow; $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; $conn = &ADONewConnection('mysql'); if (!$conn->Connect($dbhost,$dbuser,$dbpass,$dbdatabase)) { echo "Error: Could not connect to database"; $page->showFooter(); exit; } if ($deleteDays != 0) { $deletePriorTime = time() - ($deleteDays * 24 * 60 * 60); $deleteCardsSQL = 'DELETE FROM '.$tablePrefix.'sentcards WHERE cardid<'.$deletePriorTime; $conn->Execute($deleteCardsSQL); } if ($stats_unique_index_hits_enabled == true) { if (!isset($_SESSION['stat_userhits'])) { $sql = "UPDATE ".$tablePrefix."statistics set statval=(statval +1) WHERE stat='userhits'"; $conn->Execute($sql); unset($sql); $_SESSION['stat_userhits'] = true; } } $rowsInTableSQL = "SELECT COUNT(*) from ".$tablePrefix."cardinfo"; if ($catSearch) $rowsInTableSQL .= " where Suchbegriffe LIKE '%$catSearch%'"; if ($orderPop == 'yes') $orderArg = "senttimes DESC,"; else $orderArg = " "; $sqlstmt = 'select * from '.$tablePrefix.'cardinfo'; $sqlstmt .= ($catSearch) ? " where Suchbegriffe LIKE '%$catSearch%' order by $orderArg imageid $order" : " order by $orderArg imageid $order"; $pager = new pager($conn, $row, $limit, $rowsInTableSQL); $recordSet = $pager->getrecords($conn, $sqlstmt); if (!$recordSet) print $conn->ErrorMsg(); ?>

Close(); $page->showFooter(); ?>