Various changes including contact messages in database, contact message notifications, notification emails, bugfixes and more
This commit is contained in:
@@ -49,6 +49,14 @@
|
||||
$this->NotificationModel->rankNotificationNewFeedback($userID != NULL ? $userID : -1, 9, $pageUrl);
|
||||
}
|
||||
|
||||
function addContactMessage($email, $userID, $message) {
|
||||
$this->db->query('INSERT INTO contact_messages (userID, userEmail, message) VALUES (?, ?, ?)', [$userID, $email, $message]);
|
||||
$this->db->cache_delete('admin', 'contact');
|
||||
|
||||
// Send notifications
|
||||
$this->NotificationModel->rankNotificationContactMessage($userID != NULL ? $userID : -1, 8, substr($message, 0, 30));
|
||||
}
|
||||
|
||||
function getRankName($rankID)
|
||||
{
|
||||
$ranks = [
|
||||
|
Reference in New Issue
Block a user