rendered paste body<?php
/*======================================================================*\
|| #################################################################### ||
|| # vbPlaza Integrated Store System for vBulletin 3.5+ # ||
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ©2006 GSCCC, Inc. # ||
|| # http://www.cmgsccc.com # ||
|| #################################################################### ||
\*======================================================================*/
// check to make sure VB_AREA is defined
error_reporting(E_ALL);
if (defined('VB_AREA'))
{
// check if it's enabled first
if ($vbulletin->options['vbbux_enabled'] == 1)
{
// check if it should give the thread creator some points
if ($vbulletin->options['vbbux_perreply'] != 0 && $foruminfo['vbbux_perreply'] != 0)
{
// generate the number of points to add
$givepoints = $vbulletin->options['vbbux_perreply'] * $foruminfo['vbbux_perreply'];
{
// check if it should give any points
if (isset($givepoints) && ($givepoints != 0))
{
// send the query to give the points
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . $vbulletin->options['vbbux_pointstable'] . "
SET
`" . $vbulletin->options['vbbux_pointsfield'] . "` = `" . $vbulletin->options['vbbux_pointsfield'] . "` + " . $givepoints . "
WHERE userid = '" . $threadinfo['postuserid'] . "'
AND vbp_receivespoints = '1'
");
}
}
}
}
}
?>