git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clarify that we support two ways to embed pastes
[phorkie.git]
/
www
/
search.php
diff --git
a/www/search.php
b/www/search.php
index d7fb6696cd883d17d3dca0d0f7e0b68f6539bf40..82b40a7bad75ea36b332bad5e3d215dccc697196 100644
(file)
--- a/
www/search.php
+++ b/
www/search.php
@@
-3,11
+3,11
@@
namespace phorkie;
/**
* Search for a search term
*/
/**
* Search for a search term
*/
-$
securityLevel = '0'
;
+$
reqWritePermissions = false
;
require_once 'www-header.php';
if (!isset($_GET['q']) || $_GET['q'] == '') {
require_once 'www-header.php';
if (!isset($_GET['q']) || $_GET['q'] == '') {
- header('Location: ' . Tools::fullUrl('
/
list'));
+ header('Location: ' . Tools::fullUrl('list'));
exit();
}
$query = $_GET['q'];
exit();
}
$query = $_GET['q'];
@@
-20,7
+20,7
@@
if (isset($_GET['page'])) {
//PEAR Pager begins at 1
$page = (int)$_GET['page'] - 1;
}
//PEAR Pager begins at 1
$page = (int)$_GET['page'] - 1;
}
-$perPage =
10
;
+$perPage =
$GLOBALS['phorkie']['cfg']['perPage']
;
$db = new Database();
$search = $db->getSearch();
$db = new Database();
$search = $db->getSearch();