Gazelle/sections/user/take_push.php

12 lines
316 B
PHP
Raw Normal View History

2014-01-20 08:01:21 +00:00
<?
authorize();
if (!check_perms('users_mod') && $_GET['userid'] != $LoggedUser['ID']) {
error(403);
}
$UserID = db_string($_GET['userid']);
NotificationsManager::send_push($UserID, 'Push!', 'You\'ve been pushed by ' . $LoggedUser['Username']);
header('Location: user.php?action=edit&userid=' . $UserID . "");
?>