vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBookie - vBulletin Betting Hack (https://vborg.vbsupport.ru/showthread.php?t=65844)

Koopa 08-12-2005 07:18 PM

I have a problem. When I update a Bet, it redirects me to a different bet afterwards. I'm running vB 3.0.7.

Thanks :)

sonic3d 08-13-2005 01:51 AM

maybe i am just slow but i still dont understand how the odds work.

use this as an example:
Favorite...........Open.....Today.....O/U....Underdog
at Cincinnati.....2 1/2.....2 1/2.......37.....New England

what are the odds for cincinnate and the odds for new england. once someone shows me how its done then i can do the rest.

thank you

later
sonic

Lionsault 08-13-2005 02:50 AM

OK... I fixed that Marco, but now that the vBookie tab is to the side, there are no options for me to edit it. :( Also, there is another tab, General Settings, which has no options when you expand it.

Lionsault 08-13-2005 10:45 PM

sorry bout the double post, but i fixed that problem above^

Now i got a new problem...

Everything works, I can get to the point of making the thread and then when i hit submit vBookie, this comes up:

Code:

Invalid SQL: SELECT  FROM  WHERE userid='4'
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM  WHERE userid='4'' at line 1

It appears to have something to do with my user ID settings perhaps, ID 4 on my forum is (COPPA) Users Awaiting Moderation which I do not use.

Help Please :)

Andreas 08-15-2005 08:42 AM

Security Warning
This Hack contained serious XSS and SQL injection vulnerbilities.
If you downloaded this Hack before 14.08.2005 19:10 CEST I strongly recommend to make the following changes immediately to keep your installation safe.
Security Warning

Code:

In vbookie.php (around line 226) find
--------------------------------------------------
if (!$_GET['type'])
        $_GET['type'] = 'OPEN';
--------------------------------------------------

BELOW that ADD
--------------------------------------------------
globalize($_GET, array('type' => STR_NOHTML));
--------------------------------------------------


FIND
--------------------------------------------------
$q = "INSERT INTO " . TABLE_PREFIX . "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($k, $item_id, $bbuserinfo[userid], $v, ".$odds1[$k].", ".$odds2[$k].", '$private')";
--------------------------------------------------

REPLACE that with
--------------------------------------------------
$q = "INSERT INTO " . TABLE_PREFIX . "vbookie_bets_placed (option_id, item_id, userid, bet_amount_placed, bet_odds_against, bet_odds_for, bet_private) VALUES ($k, $item_id, $bbuserinfo[userid], $v, ". intval($odds1[$k]).", ".intval($odds2[$k]).", '$private')";
--------------------------------------------------
               

In Template vbookie_main
FIND
--------------------------------------------------
$_GET[type]
--------------------------------------------------

REPLACE that with
--------------------------------------------------
$type
--------------------------------------------------

The ZIP File has been updated accordingly.

cuphongle 08-15-2005 05:03 PM

thanks, i just need help real quick

can someone please help me
i got everything installed...
i set up a bookie event and everything

but how do you bet?

foxy11 08-16-2005 10:54 AM

Thanks for the warning Kirby! :)

Ski-Whiz 08-17-2005 07:09 PM

Anyone know how to limit the odds?? I know you can limit the bet, but with odds at like 100, it still pays too high. I'ld like to limit the odds..

Sorry if I'm missing something. I jsut didn't see where.. Thanks ahead of time!

Koopa 08-18-2005 05:47 PM

Quote:

Originally Posted by Koopa
I have a problem. When I update a Bet, it redirects me to a different bet afterwards. I'm running vB 3.0.7.

Thanks :)

Has no one any idea whats wrong with mine then?

Celtic_Mad 08-21-2005 07:29 PM

I have had a problem with this hack for a while now. Every time someone creates a new bet, it adds two links in the vbookie.php page. Below is a link to a screenshot I took of the problem...

http://img.photobucket.com/albums/v5...d/ed982b8f.gif

One links to the actual betting thread and the other links to another totally random vbookie event...it's very confusing.

Anyone know how to solve this?


All times are GMT. The time now is 09:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01989 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete