<?php

if(!defined("IN_MYBB"))
	die("This file cannot be accessed directly.");

$plugins->add_hook('postbit', 'bankinpostbit_run');

function bankinpostbit_info()
{
	return array(
		'name'			=> 'Bank in Postbit',
		'description'	=> 'Show the amount in the user\'s bank in the postbit.',
		'website'		=> 'http://mybbhacks.zingaburga.com/',
		'author'		=> 'ZiNgA BuRgA',
		'authorsite'	=> 'http://zingaburga.com/',
		'version'		=> '1.0',
	);
}

function bankinpostbit_run(&$p)
{
	if(!function_exists('bank_update_values'))
	{
		include MYBB_ROOT.'inc/plugins/myplaza/bank.php';
	}
	$p['bankmoney'] = my_format_money(bank_update_values(false, $p));
}
?>