X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile.php;h=0e9bb6ff61ef33d56d9de0eb01aadfc05cfe1173;hb=83dc89d8594e5de56f7bdc173048e93a5c73d488;hp=94e86e151dfe0ec4d92d530f541f497765fbb79b;hpb=deaff556ff03d9f54d8834909a949bbab6d547ce;p=friendica.git diff --git a/mod/profile.php b/mod/profile.php index 94e86e151d..0e9bb6ff61 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -98,7 +98,16 @@ function profile_content(&$a) { require_once("include/bbcode.php"); require_once('include/security.php'); -// $tpl = file_get_contents('view/profile_tabs.tpl'); + $tab = 'posts'; + + if(x($_GET,'tab')) + $tab = notags(trim($_GET['tab'])); + + $tpl = file_get_contents('view/profile_tabs.tpl'); + + $o .= replace_macros($tpl,array( + '$url' => $a->get_baseurl() . '/' . $a->cmd + )); if(remote_user()) @@ -111,7 +120,12 @@ function profile_content(&$a) { $contact_id = $r[0]['id']; } + if($tab == 'profile') { + + require_once('view/profile_advanced.php'); + return $o; + } if(can_write_wall($a,$a->profile['profile_uid'])) { $tpl = file_get_contents('view/jot-header.tpl');