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())
$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');