<?php
/*
		[FuShow.cn] (C) 2013-2014 HXWY Inc.
		FuShow Friend V3.0				Id: magic_friendnum.php
		Email <service@fushow.cn>		http://fushow.cn/
*/

if(!defined('IN_FUSHOW')) {
	exit('Access Denied');
}

//好友增容卡
if(submitcheck("usesubmit")) {

	$addnum = $magic['custom']['addnum'] ? intval($magic['custom']['addnum']) : 10;
	$_SGLOBAL['db']->query('UPDATE '.tname('space')." SET addfriend = addfriend + $addnum WHERE uid = '$_SGLOBAL[supe_uid]'");

	magic_use($mid, array(), true);
	showmessage('magicuse_success', $_POST['refer'], 0);

}

?>