Files
Testing/notifications.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

41 lines
1.5 KiB
PHP

<?php
/* $Id: profile.php 42 2009-01-29 04:55:14Z john $ */
$page = "notifications";
include "header.php";
$smarty->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";
?>