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)

Marco van Herwaarden 04-10-2005 05:51 PM

Just remove the "DEFAULT '1'". An Auto Increment column can not have a default value.

The Realist 04-10-2005 10:52 PM

You lost me now M8, explain a bit more please?

Marco van Herwaarden 04-11-2005 03:52 AM

in your vbookie_install.php script, find:
PHP Code:

            group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY

and replace by:
PHP Code:

            group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY


The Realist 04-11-2005 06:13 AM

Thanks M8, did the below but I received this error:

Database error in vBulletin 3.0.7:

Invalid SQL:
CREATE TABLE vbookie_items (
item_id MEDIUMINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY,
group_id SMALLINT UNSIGNED,
threadid INT(10) UNSIGNED DEFAULT '0',
item_title VARCHAR(255) NOT NULL,
item_min_bet BIGINT UNSIGNED DEFAULT '0',
item_max_bet BIGINT UNSIGNED DEFAULT '0',
item_timezoneoffset VARCHAR(6) DEFAULT '0',
item_created INT(13) NOT NULL,
item_open_until INT(13) NOT NULL,
item_pay_after INT(13) NOT NULL,
item_status ENUM('OPEN', 'CLOSED', 'SETTLED', 'ABANDONED') DEFAULT 'OPEN',
item_allow_multiple_bets ENUM('Y', 'N') DEFAULT 'Y',
item_n_bets_placed MEDIUMINT UNSIGNED DEFAULT '0',
item_amount_staked BIGINT UNSIGNED DEFAULT '0',
item_amount_won BIGINT UNSIGNED DEFAULT '0'
) TYPE=MyISAM

mysql error: Invalid default value for 'item_id'

mysql error number: 1067


Quote:

Originally Posted by MarcoH64
in your vbookie_install.php script, find:
PHP Code:

            group_id SMALLINT UNSIGNED DEFAULT '1' AUTO_INCREMENT NOT NULL PRIMARY KEY

and replace by:
PHP Code:

            group_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY



Marco van Herwaarden 04-11-2005 07:11 AM

Search the install file for all instances of:
PHP Code:

DEFAULT '1' AUTO_INCREMENT 

and replace them with:
PHP Code:

 AUTO_INCREMENT 


The Realist 04-11-2005 09:09 AM

Thanks M8 that worked a treat :)

Continuing with the install.

Laters

Quote:

Originally Posted by MarcoH64
Search the install file for all instances of:
PHP Code:

DEFAULT '1' AUTO_INCREMENT 

and replace them with:
PHP Code:

 AUTO_INCREMENT 



The Realist 04-11-2005 10:33 AM

Installed and working fine :)

The Realist 04-11-2005 05:00 PM

Just found I have an error on the CMPS front page:

Fatal error: Unknown function: getrowcolor() in /home/xxxxxxx/public_html/forums/modules/vbookie_vbadvanced.php on line 35

Anyone have any clues?

djwins 04-11-2005 05:08 PM

Quote:

Originally Posted by Ock
I've discovered a huge flaw in the way vBookie events work that allow someone to vote on any events at odds of his own choosing.

The way to do this, which i discovered by chance, is trivial: make a copy of the form - and edit it to change the odds, which are written in the webpage and not checked after submission.

I thought you should know, because someone wanting to exploit it could do so incredibly easily.

Is there any thoughts as to how to fix this??? Much thanks.


Quote:

Originally Posted by cashpath
Yes this flaw has already been pointed out the fix for it has already been pointed out also

Where is the fix?

mclark2112 04-12-2005 12:31 PM

Yea, where is the fix?

And, has anyone modified gimme.php to work with vBookie, or does it need to be modified.


All times are GMT. The time now is 07:41 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.02206 seconds
  • Memory Usage 1,749KB
  • 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
  • (8)bbcode_php_printable
  • (4)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