diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/community.php | 2 | ||||
-rw-r--r-- | mod/network.php | 10 | ||||
-rw-r--r-- | mod/profile.php | 2 | ||||
-rw-r--r-- | mod/receive.php | 1 | ||||
-rw-r--r-- | mod/salmon.php | 2 |
5 files changed, 8 insertions, 9 deletions
diff --git a/mod/community.php b/mod/community.php index 73feaabc6..cf43598b5 100644 --- a/mod/community.php +++ b/mod/community.php @@ -27,7 +27,7 @@ function community_content(&$a, $update = 0) { if(! $update) { $o .= '<script> $(document).ready(function() { $(\'#nav-community-link\').addClass(\'nav-selected\'); });</script>'; $o .= '<div id="live-community"></div>' . "\r\n"; - $o .= "<script> var profile_uid = -1; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; + $o .= "<script> var profile_uid = -1; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; } if(x($a->data,'search')) diff --git a/mod/network.php b/mod/network.php index 28e540283..7bdd3f3f1 100644 --- a/mod/network.php +++ b/mod/network.php @@ -125,10 +125,11 @@ function network_content(&$a, $update = 0) { $o .= '<div id="live-network"></div>' . "\r\n"; $o .= "<script> var profile_uid = " . $_SESSION['uid'] - . "; var netargs = '" . substr($a->cmd,8) - . ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : '') - . ((x($_GET,'search')) ? '?search=' . $_GET['search'] : '') - . ((x($_GET,'star')) ? '?star=' . $_GET['star'] : '') + . "; var netargs = '" . substr($a->cmd,8) + . '?f=' + . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '') + . ((x($_GET,'search')) ? '&search=' . $_GET['search'] : '') + . ((x($_GET,'star')) ? '&star=' . $_GET['star'] : '') . "'; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; } @@ -208,7 +209,6 @@ function network_content(&$a, $update = 0) { $sql_extra .= " AND `item`.`body` REGEXP '" . dbesc(escape_tags($_GET['search'])) . "' "; - $r = q("SELECT COUNT(*) AS `total` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0 diff --git a/mod/profile.php b/mod/profile.php index e9b144ffd..f4b6bfaf1 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -160,7 +160,7 @@ function profile_content(&$a, $update = 0) { if($tab === 'posts') { $o .= '<div id="live-profile"></div>' . "\r\n"; $o .= "<script> var profile_uid = " . $a->profile['profile_uid'] - . "; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; + . "; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; } } diff --git a/mod/receive.php b/mod/receive.php index 6e36109b3..6fb68e154 100644 --- a/mod/receive.php +++ b/mod/receive.php @@ -5,7 +5,6 @@ */ - require_once('include/salmon.php'); require_once('library/simplepie/simplepie.inc'); diff --git a/mod/salmon.php b/mod/salmon.php index 721eae437..56ac071b0 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -130,7 +130,7 @@ function salmon_post(&$a) { // Setup RSA stuff to verify the signature - set_include_path(get_include_path() . PATH_SEPARATOR . 'library' . PATH_SEPARATOR . 'phpsec'); + set_include_path(get_include_path() . PATH_SEPARATOR . 'library/phpsec'); require_once('library/phpsec/Crypt/RSA.php'); |