Strona 1 z 1

W mojej modyfikacji :(

: 18 lutego 2007, 11:25
autor: Betrayal
Witam

Chciałem zrobić hack na potrzeby mojej modyfikacji, który blokuje wybrane słowa przy pisaniu postów. Ale kiedy piszę posta, mam następujący błąd:

Kod: Zaznacz cały

Warning: strpos() [function.strpos]: Empty delimiter. in /home/Yazzie/domains/danbb.rtu.pl/public_html/posting.php on line 713

Warning: Cannot modify header information - headers already sent by (output started at /home/Yazzie/domains/danbb.rtu.pl/public_html/posting.php:713) in /home/Yazzie/domains/danbb.rtu.pl/public_html/posting.php on line 771

Warning: Cannot modify header information - headers already sent by (output started at /home/Yazzie/domains/danbb.rtu.pl/public_html/posting.php:713) in /home/Yazzie/domains/danbb.rtu.pl/public_html/includes/page_header.php on line 369

Warning: Cannot modify header information - headers already sent by (output started at /home/Yazzie/domains/danbb.rtu.pl/public_html/posting.php:713) in /home/Yazzie/domains/danbb.rtu.pl/public_html/includes/page_header.php on line 371

Warning: Cannot modify header information - headers already sent by (output started at /home/Yazzie/domains/danbb.rtu.pl/public_html/posting.php:713) in /home/Yazzie/domains/danbb.rtu.pl/public_html/includes/page_header.php on line 372
Oto te linie z posting.php:

Kod: Zaznacz cały

if (strpos($message,"$BLOCK_1")!==FALSE) message_die('blad',"$BLOCK_2");
Proszę o pomoc :(

: 18 lutego 2007, 12:21
autor: href
lol

Kod: Zaznacz cały

if (@strpos($message,"$BLOCK_1")!==FALSE) message_die('blad',"$BLOCK_2");
aha, i zmiennych nie zapisuje sie w cudzyslowach.

: 18 lutego 2007, 13:00
autor: Betrayal
href pisze:zmiennych nie zapisuje sie w cudzyslowach.
A mi się zdaje, że tak :) Przynajmniej w funkcji echo, ponieważ jakbyś dał w apostrofach, to odczyta na stronie tobie nazwę zmiennej, a jak dasz w cudzysłowie, to odczyta ci wartość zmiennej :)

Co do kodu, to działa, plus dla ciebie :)