X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmanage.php;h=c0eedc2ba07ebcfecaa4b05cd44ab428c844ef5d;hb=14dff6b0e0c5ff43df8b2cd8da440bdeaf2b3384;hp=84dfa6917c3529c05293fcf39d83c06d692b1dfb;hpb=ea4be0db89b5e95b50211e023e94aa008aadae46;p=friendica.git diff --git a/mod/manage.php b/mod/manage.php old mode 100755 new mode 100644 index 84dfa6917c..c0eedc2ba0 --- 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 .= '
' . "\r\n"; - $o .= '' . "\r\n"; - $o .= '
' . "\r\n"; - - $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;