aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-30 14:02:58 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-30 14:02:58 +0200
commit9fcb3bf2e8fab84f9144eecceaf984b2026e6d08 (patch)
tree3f2cf1dff4624af24fc5b7884c0094f2e4db1dd4 /include/text.php
parent7d088c8d565e0ac88f6640b69518a1aba323b20f (diff)
downloadvolse-hubzilla-9fcb3bf2e8fab84f9144eecceaf984b2026e6d08.tar.gz
volse-hubzilla-9fcb3bf2e8fab84f9144eecceaf984b2026e6d08.tar.bz2
volse-hubzilla-9fcb3bf2e8fab84f9144eecceaf984b2026e6d08.zip
first cut on restructuring the previously called network tabs
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 34063cdd7..319de67a8 100644
--- a/include/text.php
+++ b/include/text.php
@@ -3333,4 +3333,24 @@ function unique_multidim_array($array, $key) {
$i++;
}
return $temp_array;
-}
+}
+
+function network_qstring($req) {
+
+ $ret = '?f=';
+
+ if(x($req, 'cid'))
+ $ret .= '&cid=' . $req['cid'];
+
+ if(x($req, 'gid'))
+ $ret .= '&gid=' . $req['gid'];
+
+ if(x($req, 'star'))
+ $ret .= '&star=' . $req['star'];
+
+ if(x($req, 'conv'))
+ $ret .= '&conv=' . $req['conv'];
+
+ return $ret;
+
+}