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)
-   -   A phpMyChat integration Hack (https://vborg.vbsupport.ru/showthread.php?t=21329)

Stasik 07-15-2001 06:08 PM

ok... write me a FULL PATH to your forum

webhost 07-15-2001 06:12 PM

I put this in

chdir("/home/realweb/public_html/forums/");
require("./global.php");
chdir("/home/realwhttp://www.vbulletin.com/forum/newreply.php?action=newreply&threadid=21329eb/public_html/chat/chat/");

Now go here and see what we get
http://chat.realwebhost.net

Stasik 07-15-2001 06:18 PM

u has a small tipp mistake there

but as i have seen in link it works... replace "no" wiht page that means "chat is only for forum registered members... please login yourself or register" or so that ;)

webhost 07-15-2001 06:25 PM

this is what I put in go to link and see result

print "/index.php3"; //Message if the user has no cookie
exit;

Stasik 07-15-2001 06:28 PM

you should write
require("./index.php3");


BUT IT WOULD NOT WORK!

you can foget the standart login page with this hack... :(

users without forum-accout can not use it :(

webhost 07-15-2001 06:30 PM

ok I changed go to link and see result

webhost 07-15-2001 06:38 PM

here is line 9 and 10 of my global.php file

// get rid of slashes in get / post / cookie data
function stripslashesarray (&$arr) {

Stasik 07-15-2001 06:38 PM

ups ;)

i dont know php very good.. delete the line ;)

replace "no" with HTML code

webhost 07-15-2001 07:05 PM

we tired I think the way you put require ./index.php3 in is correct problem somewhere else. I f you have it working could you direct to the url where I could see it in action?

Stasik 07-15-2001 07:16 PM

i`ll show you original php-code

~~
if ($bbuserid == 0)
{
print "<html>
Please register you or login you by our forum.
</html>
";
exit;
}
else
{
if ($bbusername == "" || (isset($bbusername))==0)
~~

somthing like this


All times are GMT. The time now is 09:47 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.04065 seconds
  • Memory Usage 1,730KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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