vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   The Hotel Hack (https://vborg.vbsupport.ru/showthread.php?t=39533)

itstd 06-06-2002 05:14 PM

and this error when I try to buy a room:

Database error in vBulletin 2.2.1:

Invalid SQL: SELECT roomnumber FROM hotel WHERE roomname = 'Test Room' AND roomkey = 'za14821ja37ko81'. To goto your room click <a href="room.php?action=enterroom&roomnumber=$roomnu mber&roomkey=$roomkey">here</a>
mysql error: You have an error in your SQL syntax near '. To goto your room click <a href="room.php?action=enterroom&roomnumber=$roomnu m' at line 1

mysql error number: 1064

Date: Thursday 06th of June 2002 06:10:47 PM

Dr Shark 06-06-2002 05:46 PM

itstd you might be getting them error's because its for 2.2.6 and your using a 2.2.1. :confused:

Dean C 06-06-2002 05:50 PM

this hack looks good... ill let a few ppl test this first then ill have a go at installing it :D

itstd 06-06-2002 06:17 PM

Me thinks your probabley right Doc. :(

Neo 06-06-2002 07:25 PM

DUDE this is really creative. :D

Neo 06-06-2002 08:01 PM

Big prob with the code you... and its this

PHP Code:

             $roomnumber=$DB_site->query_first("SELECT roomnumber FROM hotel WHERE roomname = '$roomname' AND roomkey = '$key'. To goto your room click <a href=".'"room.php?action=enterroom&roomnumber=$roomnumber&roomkey=$roomkey">here</a>'); 


now tell me why.. I bet you cant guess ;)

geniuscrew 06-06-2002 10:53 PM

Will admins still be able to view it? Imagine if you can't and they're planning to take your boards down!!

Eeeek!

CloakSim 06-06-2002 11:03 PM

Looks very nice :)

zajako 06-07-2002 01:12 AM

damn, ill update and fix that error, guys.

I accidentlay pasted the line for sending pms, in a query cause i had no sleep for 48 hours and all that junk...

GC, If you look in the database you can read them, afterall you can do the same for pm's

I also improved the emails and pm sends....

soory bout that and this update should fix that problem.

ULTIMATESSJ 06-07-2002 01:29 AM

i just tried installing and this came up

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: CREATE TABLE hotelposts (
roomactionid int(10) NOT NULL auto_increment,
roomnumber int(10) NOT NULL,
username varchar(50) NOT NULL,
userid int(10) NOT NULL DEFAULT '0',
roomaction mediumtext DEFAULT '0',
PRIMARY KEY (roomactionid)
);
mysql error: BLOB column 'roomaction' can't have a default value

mysql error number: 1101

Date: Thursday 06th of June 2002 10:26:11 PM
Script: http://www.animexplosion.com/forums/...dmin/query.php
Referer: http://www.animexplosion.com/forums/admin/query.php


All times are GMT. The time now is 12:49 AM.

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.01387 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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