function hqth_get_value($userid) { global $vbulletin; $userinfo = fetch_userinfo($userid); $user_post_number = $userinfo['posts']; $user_num_buyed = hqth_get_num_buyed($userid); $user_oldmaster_fee = $vbulletin->options['hqthffs_fee_oldmaster']; $ffs_default_money = $vbulletin->options['hqthffs_default_money']; $user_page_fee = $vbulletin->options['hqthffs_fee_page']; $user_redeemer_fee = $vbulletin->options['hqthffs_fee_redeemer']; eval('$userprice = ' . $vbulletin->options['hqthffs_pet_cast'] . ';'); return $userprice; }
$checkoldprice = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "hqth_ffs_sale WHERE usertarget=" . $userbit[$k] . " AND status=1"); if (hqth_check_buyed($userbit[$k])) { if ($checkoldprice) { $hqthffs_pet_status = $vbphrase['hqthffs_old_price'] . " " . hqth_get_format_credits($checkoldprice['price']); } else { $hqthffs_pet_status = ""; } } else { $hqthffs_pet_status = $vbphrase['hqthffs_nonmaster']; } $hqthffs_pet_userid = $userbit[$k]; $hqthffs_pet_avatar = hqth_get_avatar($userbit[$k]); $hqthffs_pet_username = hqth_get_muusername($userbit[$k]); $hqthffs_pet_cash = hqth_get_format_credits(hqth_get_credits($userbit[$k])); $hqthffs_pet_pets_number = hqth_get_pet_buyed($userbit[$k]); $hqthffs_pet_buyed = hqth_get_num_buyed($userbit[$k]); if ($checkoldprice) { $hqthffs_pet_master = '<a href="ffs.php?do=view&userid=' . $checkoldprice['usersale'] . '">' . hqth_get_muusername($checkoldprice['usersale']) . '</a>'; } else { $hqthffs_pet_master = $vbphrase['hqthffs_nonmaster']; } $hqthffs_pet_value = hqth_get_format_credits(hqth_get_price($userbit[$k])); if (!hqth_check_ispet($userbit[$k]) && $vbulletin->userinfo['userid'] != $userbit[$k]) { $hqthffs_can_buy = 1; } else { $hqthffs_can_buy = 0; } eval('$hqthffs_list_mem_rank .= "' . fetch_template('hqth_ffs_pet_bit') . '";'); $j++; } $hqthffs_list_mem_rank .= "</tr>";