-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresults.php
33 lines (31 loc) · 988 Bytes
/
results.php
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
28
29
30
31
32
33
<?
/* functions for searching */
require_once('includes/search.php');
$searchDirectory = dirname(__FILE__) . '/../';
// $_SERVER['DOCUMENT_ROOT'] . '/irc/logs'; // Directory to be searched
$searchFileTypes = array("log"); // Type of files to be searched?
?>
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>IRC Log Search</title>
<link rel="stylesheet" type="text/css" href="search.css" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="results.js"></script>
</head>
<body>
<div id="container">
<header><h1>MaxMahem - IRC Log Files</h1></header>
<div class="search">
<fieldset>
<legend>Search Text</legend>
<?php searchForm() ?>
</fieldset>
</div>
<div class="results">
<? searchDirectory($searchDirectory, $searchFileTypes); ?>
</div>
</div>
</body>
</html>