<?php $savant->display('social/pubmenu.tmpl.php'); $savant->display('social/settings/settings_menu.tmpl.php'); if (isset($_REQUEST['n']) && $_REQUEST['n']=='account_settings'){ //TODO //Default to account settings //Page prints from here $savant->display('social/settings/account_settings.tmpl.php'); } elseif (isset($_REQUEST['n']) && $_REQUEST['n']=='application_settings'){ $app = new Application(); //handle application setting updates if (isset($_POST['submit'])){ //Updates $app->setHomeDisplaySettings($_POST['app']); //TODO print message/feedback $msg->addFeedback('SOCIAL_SETTINGS_SAVED'); $msg->printAll(); } //initialization $savant->assign('home_display', $app->getHomeDisplaySettings()); $savant->assign('my_apps', $list_of_my_apps = $app->listMyApplications()); $savant->display('social/settings/application_settings.tmpl.php'); } else { //handle privacy setting updates if (isset($_POST['submit'])){ //Updates $private_obj->setProfile($_POST['profile_prefs']); $private_obj->setSearch($_POST['search_prefs']);