-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.php
More file actions
27 lines (22 loc) · 697 Bytes
/
index.php
File metadata and controls
27 lines (22 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
*
* Following file is the base handler and view output.
*
* @author PatricNox <hello@PatricNox.info>
*/
$QueryFound = false;
include_once('dbSearcher/header.php');
// Check if there are inputs.
if (isset($_POST['dbs-database'], $_POST['dbs-search']))
{
$search = $_POST['dbs-search'];
$_SESSION['query'] = $_POST['dbs-search'];
$_SESSION['database'] = $database = $_POST['dbs-database'];
$strict = !empty($_POST['dbs-strict']) ? TRUE : FALSE;
$_SESSION['strict'] = $strict;
$QueryFound = $dbSearcher->dbs_search($search, $_POST['dbs-database'], $strict);
}
// Load view.
include_once('dbSearcher/template.php');
include_once('dbSearcher/footer.php');