X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmanage.php;h=c0eedc2ba07ebcfecaa4b05cd44ab428c844ef5d;hb=41fe07e12821a25e3ad8279abc5344b8bbe011ab;hp=84dfa6917c3529c05293fcf39d83c06d692b1dfb;hpb=355c42cb309eb1313097411067ca999b699aa620;p=friendica.git
diff --git a/mod/manage.php b/mod/manage.php
index 84dfa6917c..c0eedc2ba0 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,32 @@ 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;