X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmanage.php;h=adcc3d787aac0d58563cbd5d38e82e50384498d2;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=1b8e2f1e2c32a997ca0a704c312c55b6ca6aefd1;hpb=2f3d118e772fce552edd840f4ccfae90cb27061d;p=friendica.git
diff --git a/mod/manage.php b/mod/manage.php
index 1b8e2f1e2c..adcc3d787a 100644
--- a/mod/manage.php
+++ b/mod/manage.php
@@ -1,5 +1,7 @@
' . 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;