Yep ..
Yep ..
Use symfony validation library
Naaa a simple validation will work
- - - Updated - - -
@Sphinx
try this
Code:if(!preg_match('/\A[\w .,]+\z/', $text)) { echo "Text contains unsupported characters."; }
But make it simple ;)
i have a question .. how can i connect this game with a phpbb forum? like i want to remove the register/login function on the browsergame, and everyone who is a member on my phpbb forum should be able to play the browsergame .. so he only needs his forum account, and the name etc from the forum will be the same in the browsergame.
how can i do that?
Its simple but U need to keep your login
..
Remove your register..
In your forums's register add the parts of user's table
Forum Closed?
- - - Updated - - -
Happy New YEar
Need help with the wild attack shit.
It's good that a player can't run away by browsing other pages but it is still possible to exit the battle by going to mydomain.com/
How can i fix this?
also my items are not working, if i want to use something (e.g. bike), i get "You have pokeball" and than error.
Well you could also hook a session to the user ip.. so when somebody does a hijack, it wont really work. as the ip would normally be different.
Or the user is on same network aka same ip, but normally only people that live in same building would have that, or somebody who lives close by and hijacked your wifi connection,
Meaning you need to secure your shit up, and its not a problem with the site itself.
But think more realistic, who wants to do that lot of work, to hijack a PHP Session in a Pokemon game? You should be a real no-lifer if you hack little children...
OT: I should use a session for that, because i don't really think people are in a battle more than 10 minuts. Making a DB check for only this thing will make your game much more slow.