35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('includes/auth/auth.php');
|
|
include('includes/functions.php');include('access.php');
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
?>
|
|
<?php
|
|
|
|
// Connect to mysqli database
|
|
$page = 1; // The current page
|
|
$sortname = 'item_name'; // Sort column
|
|
$sortorder = 'asc'; // Sort order
|
|
$qtype = ''; // Search column
|
|
$query = ''; // Search string
|
|
// Get posted data
|
|
if (isset($_REQUEST['page'])) {
|
|
$page = mysqli_real_escape_string($conn,$_REQUEST['page']);
|
|
}
|
|
if (isset($_REQUEST['sortname'])) {
|
|
$sortname = mysqli_real_escape_string($conn,$_REQUEST['sortname']);
|
|
}
|
|
if (isset($_REQUEST['sortorder'])) {
|
|
$sortorder = mysqli_real_escape_string($conn,$_REQUEST['sortorder']);
|
|
}
|
|
if (isset($_REQUEST['qtype'])) {
|
|
$qtype = mysqli_real_escape_string($conn,$_REQUEST['qtype']);
|
|
}
|
|
if (isset($_REQUEST['query'])) {
|
|
$query = mysqli_real_escape_string($conn,$_REQUEST['query']);
|
|
}
|
|
if (isset($_REQUEST['rp'])) {
|
|
$rp = mysqli_real_escape_string($conn,$_REQUEST['rp']);
|
|
}
|
|
|
|
?>
|