aboutsummaryrefslogtreecommitdiffstats
path: root/mod/channel.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2013-09-15 03:18:18 +0200
committerChristian Vogeley <christian.vogeley@hotmail.de>2013-09-15 03:18:18 +0200
commit496f869157ab76139d14a3c67fd8276ee6557517 (patch)
tree1c225d3709e120e3479d27bb9a1581738e21ad37 /mod/channel.php
parente92233e39e73e8a70b0b024641fd5214a288388b (diff)
downloadvolse-hubzilla-496f869157ab76139d14a3c67fd8276ee6557517.tar.gz
volse-hubzilla-496f869157ab76139d14a3c67fd8276ee6557517.tar.bz2
volse-hubzilla-496f869157ab76139d14a3c67fd8276ee6557517.zip
Search by date
Search by date (archive) works a bit now
Diffstat (limited to 'mod/channel.php')
-rw-r--r--mod/channel.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 5d3855269..2544018f8 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -64,17 +64,18 @@ function channel_content(&$a, $update = 0, $load = false) {
$category = $datequery = $datequery2 = '';
- if(argc() > 2) {
- for($x = 2; $x < argc(); $x ++) {
- if(is_a_date_arg(argv($x))) {
- if($datequery)
- $datequery2 = escape_tags(argv($x));
- else
- $datequery = escape_tags(argv($x));
- }
- }
- }
-
+ // if(argc() > 2) {
+ // for($x = 2; $x < argc(); $x ++) {
+ // if(is_a_date_arg(argv($x))) {
+ // if($datequery)
+ // $datequery2 = escape_tags(argv($x));
+ // else
+ // $datequery = escape_tags(argv($x));
+ // }
+ // }
+ // }
+ $datequery = ((x($_GET,'dend') && is_a_date_arg($_GET['dend'])) ? notags($_GET['dend']) : '');
+ $datequery2 = ((x($_GET,'dbegin') && is_a_date_arg($_GET['dbegin'])) ? notags($_GET['dbegin']) : '');
if(get_config('system','block_public') && (! get_account_id()) && (! remote_user())) {
return login();