X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fmanage.php;h=adcc3d787aac0d58563cbd5d38e82e50384498d2;hb=1f4f60a82d13e839ca5a60cd87d833f1e0a2f57f;hp=84dfa6917c3529c05293fcf39d83c06d692b1dfb;hpb=43d5876e8b35d53a0bef5248c5d63e5bc209dbbf;p=friendica.git
diff --git a/mod/manage.php b/mod/manage.php
index 84dfa6917c..adcc3d787a 100644
--- a/mod/manage.php
+++ b/mod/manage.php
@@ -1,5 +1,7 @@
get_baseurl(true) . '/profile/' . $a->user['nickname']);
+ $ret = array();
+ call_hooks('home_init',$ret);
+
+ goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );
// NOTREACHED
}
@@ -87,26 +97,51 @@ function manage_content(&$a) {
return;
}
- $o = '
' . t('Manage Identities and/or Pages') . '
';
+ if ($_GET['identity']) {
+ $_POST['identity'] = $_GET['identity'];
+ manage_post($a);
+ return;
+ }
-
- $o .= '' . t('Toggle between different identities or community/group pages which share your account details or which you have been granted "manage" permissions') . '
';
+ $identities = $a->identities;
- $o .= '' . t('Select an identity to manage: ') . '
';
+ //getting additinal information for each identity
+ foreach ($identities as $key=>$id) {
+ $thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = '%s' AND `self` = 1",
+ dbesc($id['uid'])
+ );
- $o .= '' . "\r\n";
+ $o = replace_macros(get_markup_template('manage.tpl'), array(
+ '$title' => t('Manage Identities and/or Pages'),
+ '$desc' => t('Toggle between different identities or community/group pages which share your account details or which you have been granted "manage" permissions'),
+ '$choose' => t('Select an identity to manage: '),
+ '$identities' => $identities,
+ '$submit' => t('Submit'),
+ ));
return $o;