![]() |
Hi.... it is my first hack - phpProbe ;)
here is it... it was tested under vbb2x RC2 and phpMyChat 0.14.4 News: Updated on 19.07.01 - FAQ has been add Updated on 18.07.01 The hack is compatible with version 0.14.5 of phpMyChat - there is some javaScript code there, so the hack will not work with browsers without JS support (phpMyChat will not work with these browsers too ;) ) - the Exit link in chat works ok now Hack: Step 1: open /lib/index.lib.php3 in yours phpMyChat Derictory find: PHP Code:
PHP Code:
open /lib/index.lib.php3 in yours phpMyChat Derictory find: PHP Code:
PHP Code:
open /exit.php3 in yours phpMyChat Derictory find: PHP Code:
PHP Code:
FAQ: Q: I`m getting "no" every time. A: You need to upgrade a cookie option in your VB control panel. Write under: Options->Change Options->[HTTP Headers and output]->Cookie Domain your domainname ONLY (blabla.com). Q: I`m getting "you need to register" error. A: Enable chat using for not registered users in your phpMyChat config (/config/config.lib.php3). Q: I`m getting "wrong password" error. A: Make shure you have deleted all user accounts in your chat and have only administrative one. If you are logging is as administrator note that you have to enter your password EVERY time you are logging in. Questions or Bug reports? Post it here I`ll answer ASAP. |
Is there a demo of it? I would like to see it in action before installing it.
|
there was a local demo of it, i`m searching a demo forum... IT WORKS REALLY :)
|
Your hack works fine for me, but i have a quastion:
Ho are users able to open a private room? They are not listed in the phpmychat user database i guess, so they can "only" chat, right? Is there a chance to use the vbulletin database for all other actions (like open a private room)? Best wishes, polizist |
Is phpMyChat hard on a server? I'm running on a virtual account, and would love to have this hack, but I'd like to know whether the chat script would have my host howling for my blood (or shutting down my account;)) first :)
|
well, we have it on our own server with a gig of memory. just try what happens ;)
|
is there a php4 version of phpmychat because i cant use php3 on my site :(
|
I think there is no php4 version
|
Quote:
this things with other actions are not so easy to do...... i know theoretically how to do it, but i have no time and lust to do it :( bye... P.S. Nickname "Polizist" ist geil :) |
I installed this hack, but it dont work? It just keeps saying "invalid password" no matter who trys?
|
Hi
you have to allow the chat-use to unregistered useres (using setup.php3 or manually in config file) --OR/AND-- you have to delete all users from chat and leave only Admin-nick bye |
Will it work with version 2.0.1 and phpmychat version 14.2 if so where do I place it because fix security holes is not found in version 14.2
Thanks |
hi
try to enter this text BEFORE "require("./${ChatPath}config/config.lib.php3");" if not then try to upgrade your chat or post index.lib.php3 here BYE |
I am waiting to upgrade my chat until 15.0 comes up.
Here is the url http://chat.realwebhost.net Here is the link to my forums http://forums.realwebhost.net I have attached the zip file. I did try to place code where you stated and I tried this for the paths board path I tried http://forums.realwebhost.net and also tried http://www.realwebhost.net/forums I think it should be the first one because that is how I get to my forums. Niether worked gave a error saying bad path. Then I tried chat path the same way switching the word forums with chat and I got the samew errors. I have attached the file Joey |
enter a hack code before:
"require("./${ChatPath}config/config.lib.php3");" for the both path i will need a tree of your server. |
this is the error I get with the attached file. I have attached the file to this thread with the script change in it
Warning: ChDir: No such file or directory (errno 2) in /home/realweb/public_html/chat/chat/lib/index.lib.php3 on line 60 Warning: ChDir: No such file or directory (errno 2) in /home/realweb/public_html/chat/chat/lib/index.lib.php3 on line 62 no When I ftp in I have files and directories including public)html underneath this I have the forums directory which has forums/gobal.php and also the chat directory which is chat/chat/lib/index.lib.php |
your both path are not ok
try smth like this fist /home/realweb/public_html/forums/ second /home/realweb/public_html/chat/chat/ |
Here is the script I put in and below that is the error I get.
chdir("public_html/forums"); require("http://www.realwebhost.net/forums/global.php"); chdir("./${ChatPath}"); Warning: ChDir: No such file or directory (errno 2) in /home/realweb/public_html/chat/chat/lib/index.lib.php3 on line 60 no |
OK HERE is the script change you recommended and below that is the error I get
chdir("/home/realweb/public_html/forums/ "); require("/global.php"); chdir("/home/realweb/public_html/chat/chat/"); ========================================== Warning: ChDir: No such file or directory (errno 2) in /home/realweb/public_html/chat/chat/lib/index.lib.php3 on line 60 Fatal error: Failed opening required '/global.php' (include_path='') in /home/realweb/public_html/chat/chat/lib/index.lib.php3 on line 61 |
NOOOOOOO
here are the parts... i think they are ok look and replace //a VBB integration hack by Stasik - source parts were taken from other authors ;) chdir("/home/realweb/public_html/forums/"); require("./global.php"); chdir("/home/realweb/public_html/chat/chat/"); |
ok... write me a FULL PATH to your forum
|
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 |
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 ;) |
this is what I put in go to link and see result
print "/index.php3"; //Message if the user has no cookie exit; |
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 :( |
ok I changed go to link and see result
|
here is line 9 and 10 of my global.php file
// get rid of slashes in get / post / cookie data function stripslashesarray (&$arr) { |
ups ;)
i dont know php very good.. delete the line ;) replace "no" with HTML code |
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?
|
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 |
it had workt I had seen it.... it worked when there was "no"
|
Quote:
Click on a forum and read the red marked announcement. Into the annoucement click on "hier aufrufen" and enter the chat (or not, if you?re not registered) but it?s german ;) |
Thanks
It was a struggle, no good at German but I did manage to register on your board and go to the chat room. What version of vb and phpmycaht ar you using. Can you help me get mind working. I am using vb 2.0.1 and phpmychat version 14.2 Joey Great looking board which I could understand the German though. |
Well, i should be able to help you. What?s your problem?
We are using 2.0.0 with phpMyChat *14..5 What is the exact problem? Maybe you can post a link to your forum or chat and i?ll see what i can do. But i`m very busy, so please bepatience ;) polizist |
forum is here http://forums.realwebhost.net
chat is here http://chat.realwebhost.net I have a chat button on the top of the opening page in my forum Thanks you can read the previous posts and see what peoblems we were having. |
Hey webhost, it has worked by you, when there was written "no".
|
I never got it working.
|
ok... lets start it new
edit ur /usr/lib/index.lib.php3 plaste bbefore "require("./${ChatPath}config/config.lib.php3");" //a VBB integration hack by Stasik - source parts were taken from other authors ;) chdir("/home/realweb/public_html/forums/"); require("./global.php"); chdir("/home/realweb/public_html/chat/chat/"); if ($bbuserid == 0) { print "no"; //Message if the user has no cookie exit; } else { if ($bbusername == "" || (isset($bbusername))==0) { $getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid"); $username=$getusername[username]; $bbusername = $username; } else { $username = $bbusername; } } $U = $username; $pat = "[[:space:]]"; $repl = ""; $U = ereg_replace($pat,$repl,$U); $pat = ','; $U = ereg_replace($pat,$repl,$U); stripslashes($U); $N = 20; $D = 10; $Form_Send = 1; //Replace admin with your administration nick if($U != "Admin") { $PASSWORD="1"; } If you had a login problems (bad password), I have forgotten to say, that you have to DELETE all exisind accounts and leave only admin-account |
Sorry for the delay, got busy. Do you mean delete all users in my chat and just leave admin?
Joey |
yes, I mean it
P.S. The name must not be "Admin", but if you want it - you can do it ;) |
All times are GMT. The time now is 09:48 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|