Added rudimentary transport support to get_threaded_children
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / del_mail_all.inc
CommitLineData
51ff3226 1<?php
2 /* INDEV / DO NOT TOUCH | del_mail_all button functionality in mailbox | maniax */
3
4 function del_mail_all($node_id) {
5 global $db, $error;
6
7 if (empty($_POST['del_mail_all_chk']) || $_POST['del_mail_all_chk'] != 'on') {
8 $error = 'You must check the checkbox near del_mail_all button, to perform this operation';
9 return (false);
10 }
11
12 $user_id = $_SESSION['user_id'];
13 $m_qs = sprintf('delete from mail where mail_user = %d', $user_id);
14 $db->query($m_qs);
15
16 $error = 'All your mail has been deleted.';
17 return (true);
18 }
19?>
20
21
This page took 0.144876 seconds and 4 git commands to generate.