aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-01 19:47:10 -0700
committerfriendica <info@friendica.com>2012-11-01 19:47:10 -0700
commit3bf5677797a6a40dacac2ddcbe9271aea508e421 (patch)
treefa7e37883391fa81af4bfe5601cfaeca15aac39e /include
parent1021a4d4763974c3c40f40a0ca9682f1fcc3f6ee (diff)
downloadvolse-hubzilla-3bf5677797a6a40dacac2ddcbe9271aea508e421.tar.gz
volse-hubzilla-3bf5677797a6a40dacac2ddcbe9271aea508e421.tar.bz2
volse-hubzilla-3bf5677797a6a40dacac2ddcbe9271aea508e421.zip
settings page channel permissions front-end (needs back-end still)
Diffstat (limited to 'include')
-rw-r--r--include/language.php2
-rw-r--r--include/permissions.php22
2 files changed, 23 insertions, 1 deletions
diff --git a/include/language.php b/include/language.php
index 899375dcf..56d5f1cf4 100644
--- a/include/language.php
+++ b/include/language.php
@@ -125,7 +125,7 @@ function load_translation_table($lang) {
if(! function_exists('t')) {
function t($s) {
- $a = get_app();
+ global $a;
if(x($a->strings,$s)) {
$t = $a->strings[$s];
diff --git a/include/permissions.php b/include/permissions.php
index 51e47007c..642d2fcc3 100644
--- a/include/permissions.php
+++ b/include/permissions.php
@@ -20,6 +20,28 @@
);
+
+function perms_text() {
+ $perms_text = array(
+ 'view_stream' => t('Who can view your channel stream and posts'),
+ 'view_profile' => t('Who can view your channel profile'),
+ 'view_photos' => t('Who can view your photo albums'),
+ 'view_contacts' => t('Who can view your address book'),
+
+ 'send_stream' => t('Who can send you their channel stream and posts'),
+ 'post_wall' => t('Who can post on your channel page'),
+ 'post_comments' => t('Who can comment on your posts'),
+ 'post_mail' => t('Who can send you private mail messages'),
+ 'post_photos' => t('Who can post photos to your photo albums'),
+ 'tag_deliver' => t('Who can forward to all your channel contacts via post tags'),
+ 'chat' => t('Who can chat with you (when available)')
+ );
+ return $perms_text;
+}
+
+
+
+
/**
* get_all_perms($uid,$observer)
*