assign('notifys', $notify->notify_summary()); if(isset($_POST['task'])) { $task = $_POST['task']; } elseif(isset($_GET['task'])) { $task = $_GET['task']; } else { $task = "main"; } // SET RESULT VARIABLES $result = 0; $is_error = 0; // GET USER SETTINGS $user->user_settings(); // GET NOTIFICATIONS $notifytypes = Array(); $notifytype_query = $database->database_query("SELECT notifytype_id, notifytype_title, notifytype_name FROM se_notifytypes"); while( $notifytype_info = $database->database_fetch_assoc($notifytype_query) ) { // Ignore notify types that are missing a corresponding usersetting column $usersetting_notifytype = "usersetting_notify_".$notifytype_info['notifytype_name']; if( !array_key_exists($usersetting_notifytype, $user->usersetting_info) ) continue; SE_Language::_preload($notifytype_info['notifytype_title']); $notifytypes[] = $notifytype_info; } // GET PROFILE CATEGORIES $field = new se_field("profile"); $field->cat_list(0, 0, 0, "profilecat_signup='1' || profilecat_id='{$user->user_info['user_profilecat_id']}'", "profilecat_id='0'", ""); // ASSIGN VARIABLES AND INCLUDE FOOTER $smarty->assign('result', $result); $smarty->assign('site_autoplay', $user->usersetting_info['usersetting_music_site_autoplay']); $smarty->assign('is_error', $is_error); $smarty->assign('cats', $field->cats); $smarty->assign('notifytypes', $notifytypes); include "footer.php"; ?>