diff options
author | friendica <info@friendica.com> | 2013-12-04 00:19:29 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-04 00:19:29 -0800 |
commit | d8903f09f5a6d637b4258632eee16859373e1893 (patch) | |
tree | d00d8f6c5dd8032516a7577ac6b37ed6e1be22bc /mod/channel.php | |
parent | 7187c493e16abc98a8e1ed53d63a3d93e63db4af (diff) | |
download | volse-hubzilla-d8903f09f5a6d637b4258632eee16859373e1893.tar.gz volse-hubzilla-d8903f09f5a6d637b4258632eee16859373e1893.tar.bz2 volse-hubzilla-d8903f09f5a6d637b4258632eee16859373e1893.zip |
include re-organisation and more doco, post_to_red fix ampersands in categories
Diffstat (limited to 'mod/channel.php')
-rw-r--r-- | mod/channel.php | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/mod/channel.php b/mod/channel.php index f36636023..2014cd08b 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -1,5 +1,14 @@ <?php +require_once('include/contact_widgets.php'); +require_once('include/items.php'); +require_once("include/bbcode.php"); +require_once('include/security.php'); +require_once('include/conversation.php'); +require_once('include/acl_selectors.php'); +require_once('include/permissions.php'); + + function channel_init(&$a) { $which = null; @@ -37,8 +46,6 @@ function channel_init(&$a) { function channel_aside(&$a) { - require_once('include/contact_widgets.php'); - require_once('include/items.php'); if(! $a->profile['profile_uid']) return; @@ -64,16 +71,6 @@ 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)); - // } - // } - // } $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']) : ''); @@ -81,16 +78,6 @@ function channel_content(&$a, $update = 0, $load = false) { return login(); } - - - require_once("include/bbcode.php"); - require_once('include/security.php'); - require_once('include/conversation.php'); - require_once('include/acl_selectors.php'); - require_once('include/items.php'); - require_once('include/permissions.php'); - - $category = ((x($_REQUEST,'cat')) ? $_REQUEST['cat'] : ''); $groups = array(); |