コード例 #1
0
ファイル: functions_ffs.php プロジェクト: 0hyeah/yurivn
function hqth_get_price($userid)
{
    global $vbulletin;
    $checksaleoff = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "hqth_ffs_saleoff WHERE usertarget=" . $userid);
    if ($checksaleoff) {
        return hqth_get_value($userid) * $checksaleoff['price'];
    } else {
        return hqth_get_value($userid);
    }
}
コード例 #2
0
ファイル: ffs.php プロジェクト: 0hyeah/yurivn
                    $pm->set('title', $vbphrase['hqthffs_buypet_pm_title']);
                    $pm->set('message', $pmcontents);
                    $pm->set_recipients($hqthffs_username, $do);
                    $pm->set('dateline', TIMENOW);
                    $pm->save();
                    exec_header_redirect("ffs.php?do=view&userid=" . $userid);
                }
            }
            $hqthffs_pet_userid = $userid;
            $hqthffs_pet_avatar = hqth_get_avatar($userid);
            $hqthffs_pet_username = hqth_get_muusername($userid);
            $hqthffs_buy_price = hqth_get_format_credits(hqth_get_value($userid));
            $hqthffs_assets = hqth_get_format_credits(hqth_get_credits($vbulletin->userinfo['userid']));
            $hqthffs_fee_pet = hqth_get_format_credits($vbulletin->options['hqthffs_money_when_buyed']);
            $hqthffs_fee_pagers = hqth_get_format_credits($vbulletin->options['hqthffs_fee_page']);
            $hqthffs_old_price = hqth_get_format_credits(hqth_get_value($userid) - $vbulletin->options['hqthffs_money_when_buyed'] - $vbulletin->options['hqthffs_fee_page']);
            eval('$hqthffs_content = "' . fetch_template('hqth_ffs_muathu') . '";');
            break;
    }
    $navbits = array();
    $navbits[$parent] = $vbphrase['hqthffs'];
    $navbits = construct_navbits($navbits);
    eval('$navbar = "' . fetch_template('navbar') . '";');
    eval('$hqthffs_menutop = "' . fetch_template('hqth_ffs_menutop') . '";');
    eval('print_output("' . fetch_template('hqth_ffs_main') . '");');
} else {
    standard_error($vbulletin->options['hqthffs_message']);
}
/*======================================================================*\
|| ####################################################################
|| # CVS: $RCSfile: ffs.php,v $ - $Revision: 1.0.0 $