<?php /*======================================================================*\ || #################################################################### || || # kBank 2.1 || # Coded by mrpaint || # Contact: mrpaint@gmail.com || # I'm a Vietnamese! Thank you for using this script || # Last Updated: 21:54 16-09-2008 || #################################################################### || \*======================================================================*/ global $vbulletin; if (defined('VB_AREA') && $vbulletin->kbank['enabled']) { include_once DIR . '/kbank/functions.php'; if ($vbulletin->kbank['AutoRemovePointWhenDelete']) { $points = $vbulletin->db->query_first("\n\t\t\tSELECT kbank,\n\t\t\t\tuserid\n\t\t\tFROM " . TABLE_PREFIX . "post AS `post`\n\t\t\tWHERE post.postid = " . intval($postid)); giveMoney($points['userid'], $points['kbank'] * -1, 'post'); } }
<?php /*======================================================================*\ || #################################################################### || || # kBank 2.1 || # Coded by mrpaint || # Contact: mrpaint@gmail.com || # I'm a Vietnamese! Thank you for using this script || # Last Updated: 21:54 16-09-2008 || #################################################################### || \*======================================================================*/ if (defined('VB_AREA') && $vbulletin->kbank['enabled']) { include_once DIR . '/kbank/functions.php'; if ($vbulletin->kbank['RegPoint1time']) { giveMoney($vbulletin->userinfo['userid'], $vbulletin->kbank['RegPoint1time'], 'register'); } }
logkBankAction('admin_donate_all', $vbulletin->GPC['amount'], array('usergroup' => $vbulletin->GPC['usergroup'], 'amount' => $vbulletin->GPC['amount'])); define('CP_REDIRECT', 'kbankadmin.php?do=donate_to_all'); print_stop_message('kbank_donate_members', $count); } // ###################### Do Donate To Member ######################## if ($_POST['do'] == "do_donate_member") { $processed = true; $vbulletin->input->clean_array_gpc('p', array('amount2' => TYPE_INT, 'username' => TYPE_NOHTML, 'comment' => TYPE_NOHTML)); print_cp_header("Donate To Member"); if ($vbulletin->GPC['amount2'] == 0) { print_stop_message('kbank_sendmsomthing'); } if (!($user = $db->query_first("SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '******'username']) . "'"))) { print_stop_message('kbank_sendmtonoexist'); } giveMoney($user['userid'], $vbulletin->GPC['amount2'], 'admindonate', $vbulletin->GPC['comment']); define('CP_REDIRECT', 'kbankadmin.php?do=donate_to_all'); print_stop_message('kbank_donate_member', $vbulletin->GPC['username']); } // ###################### Bank Management ######################## if ($_GET['do'] == "bank_man") { $processed = true; print_cp_header("kBank Management"); //get kBank Statistics $money = getStatistics(); print_table_start(); print_table_header('<a href="kbankadmin.php?do=stat#system">' . $vbphrase['kbank_banklogs_stat'] . '</a> ' . construct_phrase($vbphrase['kbank_misc_top_updatetime'], vbdate($vbulletin->options['timeformat'] . ' ' . $vbulletin->options['dateformat'], $money['timeline']), '-')); print_label_row(construct_phrase($vbphrase['kbank_banklogs_money_instock'], vb_number_format($money['total'] - $money['member']), $vbulletin->kbank['name'], vb_number_format($money['total']))); print_label_row(construct_phrase($vbphrase['kbank_banklogs_money_in'], vb_number_format($money['in']), $vbulletin->kbank['name'])); print_label_row(construct_phrase($vbphrase['kbank_banklogs_money_out'], vb_number_format($money['out']), $vbulletin->kbank['name'])); print_label_row(construct_phrase($vbphrase['kbank_banklogs_money_post'], vb_number_format($money['post']), $vbulletin->kbank['name']));
<?php /*======================================================================*\ || #################################################################### || || # kBank 2.0 || # Coded by mrpaint || # Contact: mrpaint@gmail.com || # I'm a Vietnamese! Thank you for using this script || # Last Updated: 02 00 15-07-2008 || #################################################################### || \*======================================================================*/ if (defined('VB_AREA') and $vbulletin->kbank['enabled']) { if ($vbulletin->kbank['AutoRecalcPointWhenEdit']) { if (!empty($postinfo) and $givepoints and is_array($postinfo) and $postinfo['kbank'] != 0) { include_once DIR . '/kbank/functions.php'; giveMoney($postinfo['userid'], $givepoints, 'post'); } } }
<?php /*======================================================================*\ || #################################################################### || || # kBank 1.9.3 (Security Issue: Database Query) || # Coded by mrpaint || # Contact: mrpaint@gmail.com || # I'm a Vietnamese! Thank you for using this script || # Last Updated: 19:24 24-06-2008 || #################################################################### || \*======================================================================*/ if (defined('VB_AREA') && $vbulletin->kbank['enabled']) { include_once DIR . '/kbank/functions.php'; if ($vbulletin->kbank['AutoRemovePointWhenDelete']) { $ids = implode(',', array_keys($threadarray)); $points = $vbulletin->db->query_read("SELECT SUM(post.kbank) as inpost,\n\t\t\tpost.userid as userid\n\t\t\tFROM " . TABLE_PREFIX . "post AS post \n\t\t\tWHERE threadid IN ({$ids})\n\t\t\t\tAND visible = 1\n\t\t\tGROUP BY post.userid"); while ($point = $vbulletin->db->fetch_array($points)) { giveMoney($point['userid'], $point['inpost'], 'post'); } } }
<?php /*======================================================================*\ || #################################################################### || || # kBank 1.9.3 (Security Issue: Database Query) || # Coded by mrpaint || # Contact: mrpaint@gmail.com || # I'm a Vietnamese! Thank you for using this script || # Last Updated: 19:24 24-06-2008 || #################################################################### || \*======================================================================*/ global $vbulletin; if (defined('VB_AREA') && $vbulletin->kbank['enabled']) { include_once DIR . '/kbank/functions.php'; if ($vbulletin->kbank['AutoRemovePointWhenDelete']) { $posts = $vbulletin->db->query_read("\n\t\t\tSELECT SUM(post.kbank) as points,\n\t\t\tpost.userid as userid\n\t\t\tFROM " . TABLE_PREFIX . "post AS post \n\t\t\tWHERE threadid = " . intval($threadid) . "\n\t\t\t\tAND visible = 1\n\t\t\tGROUP BY post.userid\n\t\t"); while ($post = $vbulletin->db->fetch_array($posts)) { giveMoney($post['userid'], $post['points'] * -1, 'post'); } } }
<?php /*======================================================================*\ || #################################################################### || || # kBank 2.0 || # Coded by mrpaint || # Contact: mrpaint@gmail.com || # I'm a Vietnamese! Thank you for using this script || # Last Updated: 02 00 15-07-2008 || #################################################################### || \*======================================================================*/ if (defined('VB_AREA') && $vbulletin->kbank['enabled']) { include_once DIR . '/kbank/functions.php'; giveMoney($vbulletin->userinfo['userid'], $points); //referer if ($vbulletin->kbank['ReferPoint'] > 0 and $vbulletin->userinfo['referrerid'] and $vbulletin->userinfo['joindate'] > TIMENOW - 30 * 24 * 60 * 60) { giveMoney($vbulletin->userinfo['referrerid'], $vbulletin->kbank['ReferPoint'], 'referer'); } }