-
Notifications
You must be signed in to change notification settings - Fork 1
/
click.php
32 lines (29 loc) · 894 Bytes
/
click.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
29
30
31
32
<?php
# **************************************************************************#
# MolyX2
# ------------------------------------------------------
# @copyright (c) 2009-2010 MolyX Group..
# @official forum http://molyx.com
# @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 2.0
#
# $Id$
# **************************************************************************#
define('THIS_SCRIPT', 'cilck');
require_once('./global.php');
class cilck
{
function show()
{
global $forums, $DB, $_INPUT, $bboptions;
$_INPUT['id'] = intval($_INPUT['id']);
$forums->func->check_cache('ad');
if ($_INPUT['id'] AND $forums->cache['ad']['content'][$_INPUT['id']])
{
$DB->shutdown_query("UPDATE " . TABLE_PREFIX . "ad SET click = click + 1 WHERE id = {$_INPUT['id']}");
$forums->func->standard_redirect($_GET['url']);
}
}
}
$output = new cilck();
$output->show();
?>