-
Notifications
You must be signed in to change notification settings - Fork 10
/
clear_announcement.php
28 lines (28 loc) · 1.14 KB
/
clear_announcement.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* ------- U-232 Codename Trinity ----------*
* ---------------------------------------------*
* -------- @authors U-232 Team --------------*
* ---------------------------------------------*
* ----- @site https://u-232.duckdns.org/ ----*
* ---------------------------------------------*
* ----- @copyright 2020 U-232 Team ----------*
* ---------------------------------------------*
* ------------ @version V6 ------------------*
*/
require_once(__DIR__.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
dbconn(false);
loggedinorreturn();
$query1 = sprintf('UPDATE users SET curr_ann_id = 0, curr_ann_last_check = \'0\' WHERE id = %s AND curr_ann_id != 0', sqlesc($CURUSER['id']));
sql_query($query1) || sqlerr(__FILE__, __LINE__);
$cache->update_row($cache_keys['user'].$CURUSER['id'], [
'curr_ann_id' => 0,
'curr_ann_last_check' => 0,
], $TRINITY20['expires']['user_cache']);
$cache->update_row($cache_keys['my_userid'].$CURUSER['id'], [
'curr_ann_id' => 0,
'curr_ann_last_check' => 0,
], $TRINITY20['expires']['curuser']);
//$status = 2;
header("Location: {$TRINITY20['baseurl']}/index.php");
?>