forked from Bigjoos/U-232-V3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclear_announcement.php
28 lines (28 loc) · 996 Bytes
/
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
/**
* https://github.com/Bigjoos/
* Licence Info: GPL
* Copyright (C) 2010 U-232 v.3
* A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
* Project Leaders: Mindless, putyn.
*
*/
require_once (dirname(__FILE__).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);
$mc1->begin_transaction('user'.$CURUSER['id']);
$mc1->update_row(false, array(
'curr_ann_id' => 0,
'curr_ann_last_check' => 0
));
$mc1->commit_transaction($INSTALLER09['expires']['user_cache']);
$mc1->begin_transaction('MyUser_'.$CURUSER['id']);
$mc1->update_row(false, array(
'curr_ann_id' => 0,
'curr_ann_last_check' => 0
));
$mc1->commit_transaction($INSTALLER09['expires']['curuser']);
header("Location: {$INSTALLER09['baseurl']}/announcement.php");
?>