IMHO.WS

IMHO.WS (https://www.imho.ws/index.php)
-   Веб-программирование (https://www.imho.ws/forumdisplay.php?f=29)
-   -   PHP Chat (https://www.imho.ws/showthread.php?t=5980)

08.06.2002 23:33

PHP Chat
 
Kto znajet horosij?

Ja nifiga neodnovo dostoinovo nenasol - vse stoit 200$, u kovo to mozet takoi Advanced jest uze skacann?

08.06.2002 23:53

Numerilogija
 
Kto mozet slomatj!

http://scriptsjoint.com/numerology.htm

Stasik 09.06.2002 00:22

http://phpmychat.sourceforge.net

09.06.2002 10:02

chat
 
etovo ja uze nasol, dumal jest sto to kruce, cevo nibud sto mozno bilo bi integrirovatj v vbulletin sredje ... vseravno stas, tu prosto зверь!


The fish in the sea is not thirsty/ Kabir/

Stasik 09.06.2002 17:27

я раньше занимался этим... ща хак поищу...

http://www.vbulletin.org/forum/showt...threadid=21329

это конечено только 1 возможный вариант на осонове кукисов....... да забросил я его

09.06.2002 21:17

Stas, menja tam nepuskajet, prisli pozalusta eto v faile!!!
 
Sorry, меня послали!


vBulletin Message
You do not have permission to access this page. This could be due to one of several reasons:
If you are a registered member and a vBulletin customer, please add your username to this form to be able to access certain resticted areas on this site!
[http://www.vbulletin.com/members/vbulletin.org.php]

If you are not yet a vBulletin owner, and wish to post a question prior to buying it, please post in this forum: http://www.vbulletin.org/forum/forum...?s=&forumid=26

You are not logged in. Fill in the form at the bottom of this page and try again.
You do not have permission to access the page that you were trying to. Are you trying to edit someone else's post or trying to access administrative features? Check that you are allowed to perform this action in the Forum Rules.
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logged in user: gmarik [logout]


The administrator may have required you to register before you can view this page. Forgotten your password?

All times are GMT +3 hours. The time now is 09:21 PM.

Stasik 09.06.2002 22:03

вот те копия моего поста

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 код:

// Fix some security holes 

replace it with

PHP код:

//a VBB integration hack by Stasik (stasik@t-online.de)
//v0.1
//(C)2001

$exiturl "http://www.blabla.com"// the url the user will be redirected exiting the chat

if($Ver == ""){print "
<HTML>
<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">
    <!--
    var NS4 = (document.layers) ? 1 : 0;
    var IE4 = ((document.all) && (parseInt(navigator.appVersion)>=4)) ? 1 : 0;
    var ver4 = (NS4 || IE4) ? \"H\" : \"L\";
function defineVerField()
    {
        if (document.images && ver4 == 'L')
            document.forms['Params'].elements['Ver'].value = 'M';    // js1.1 enabled browser
        else document.forms['Params'].elements['Ver'].value = ver4;
    }
 -->
</SCRIPT>
<FORM ACTION=\"index.php3\" METHOD=\"POST\" AUTOCOMPLETE=\"OFF\" NAME=\"Params\">
<INPUT TYPE=\"hidden\" NAME=\"Ver\" VALUE=\"L\">
</FORM>
<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">
defineVerField();
document.forms.Params.submit();
</SCRIPT>
</HTML>
"
; exit;}

chdir("/path/to/board/");
require(
"./global.php");
chdir("/path/to/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";
}

// Fix some security holes 





Step 2:
open /lib/index.lib.php3 in yours phpMyChat Derictory
find:

PHP код:

$DbLink->query("INSERT INTO ".C_MSG_TBL." VALUES ($EN, '$E', 'SYS exit', '', ".time().", '', 'sprintf(L_EXIT_ROM, \"".special_char($U,$Latin1)."\")')");
        }
    } 



replace it with:

PHP код:

$DbLink->query("INSERT INTO ".C_MSG_TBL." VALUES ($EN, '$E', 'SYS exit', '', ".time().", '', 'sprintf(L_EXIT_ROM, \"".special_char($U,$Latin1)."\")')");
        }
    }
if(
$exit == "1"){header ("Location: $exiturl"); exit;} 






Step 3:
open /exit.php3 in yours phpMyChat Derictory
find:


PHP код:

<A HREF="<?php echo("$From?Ver=$Ver&L=$L&U=".urlencode(stripslashes($U))."&E=".urlencode(stripslashes($R))."&EN=$T"); ?>" TARGET="_parent"><?php echo(L_EXIT); ?></A>


replace it with:

PHP код:

<A HREF="<?php echo("$From?exit=1&Ver=$Ver&L=$L&U=".urlencode(stripslashes($U))."&E=".urlencode(stripslashes($R))."&EN=$T"); ?>" TARGET="_parent"><?php echo(L_EXIT); ?></A>



ENJOY

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.

mdg 11.06.2002 11:14

http://chat.php.spb.ru/
Ты этот чат пробовал, незнаю, кому как, а мне он очень понравился! Ничего лишнего, все удобно и быстро.

11.06.2002 16:03

Цитата:

Как писал mdg
http://chat.php.spb.ru/

he was dead before I came,

sorry

mdg 11.06.2002 16:05

давай свою почту я тебе пошлю этот чат. 1,080 Mb весит

Techmonger 02.07.2002 16:04

heh
 
poprobui mirc clienti dlya saitov

Savage 11.07.2002 15:56

:help: Народ помогите плиз !!!!!
нужен чат с администрированием :help: :help:

Stasik 11.07.2002 16:00

читай выше
http://phpmychat.sourceforge.net

Savage 11.07.2002 22:43

Спасиб !!!!
:smile:
вот токо не пойму как его русифицировать:idontnow:

Stasik 11.07.2002 23:18

там помоему есть даже русский пак

Savage 12.07.2002 10:38

Спасиб нашел !!!!!:dance:

steelik 30.03.2003 23:04

Нужен чат на mysql и перле... причём phpmyChat не предлагать - полнейшый отстой

Goor 17.05.2003 11:44

Так тема и заглохла, может все таки кто посоветует быстрый чат(без разницы на чем написан) с администрированием, прив.сообщениями , возможностью добавления имеджей(фото) узверов желательно с mysql????

Digy 23.03.2007 17:20

Цитата:

Сообщение от Goor (Сообщение 197873)
Так тема и заглохла, может все таки кто посоветует быстрый чат(без разницы на чем написан) с администрированием, прив.сообщениями , возможностью добавления имеджей(фото) узверов желательно с mysql????

Blab попробуй.
http://hot-things.net/?q=blab


Часовой пояс GMT +4, время: 02:07.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.