This is a discussion on FailPHP within the Habbo Development forums, part of the Habbo Hotel category; Originally Posted by joopie Haha, For some reasons I also forgot that button. And if I find out, Then I ...
I've noticed that some people have attempted to rob my index page, shame they failed to rip it properly.
Updated some security issues, messed about with some designs. I'll add some protection to the guestbook when I think about how I'm going to do it.
Demo- Fail
looks good
Please Like / Rep if you liked this post.
Goodnight :)
That's easy, record the time-stamp of each post and then before inserting a new post just compare the time stamp and the user id of the last post to the user id and the current time...
In the ModCMS guestbook, users can only post one entry every 60 seconds to any guestbook... it seems to be working pretty good. another good idea is to use a word filter on the entries.....
I think you should make the button rounded and make it orange. (enter hotel)
Did i help you? Say Thanks!
Search before Posting new Threads!
Read Before you fucking Flame!!
That's what I said, lol. Just go into thehabbos.org and find the hotel called, erm... Habplus?
Cool story bro.
It'll be something like if($time) > 60) then allow insert, to filter a word out you'll need to use preg_match ($string). Thanks for the idea, anyway.
I'm still working on it, give me time. ^^ (Oh and I liked the search idea).
Spoiler:
I've been messing around with the Guestbook. Deleted all the comments, so you might want to test it out.
My preferences (http://www.talan.x10.bz/change-info.php) will now save your "about" statements instead of you updating it every time you want to change something.
Added your own figures to your profile page, erm.
Been reconstructing housekeeping, looks pretty good.
So far I like the look & design of "Fail", don't forget to keep updating though, this looks like a good development.
i noticed that a question mark is missing from the allowed characters....
edit: also any other special characters like single quotes, comma's etc should be allowed..
also i was still able to spam my guestbook...
Edit:
I just realized that you might have misunderstood me when I said word filter... I was trying to say to use the same word filter as the emu .. Not special characters...
Posted via Mobile Device
Last edited by leenster; 24-11-11 at 03:27 AM.
Just added captcha to the guestbook...
http://www.talan.x10.bz/template/sty...es/captcha.php
Demo: http://www.talan.x10.bz/profile.php?user=Talan
Keep going :) Good work mate.
Simple, nice & clean design.
0xFFF
to use the emu's word filter u could do something like this...
This is how i used it in the PMS that i created for phoenixPHP a while back... I'm sure it can be done a little more efficient but this could give u an idea.....
PHP Code:
public function WordFilter($str = '')
{
$wordfilterq = mysql_query("SELECT * FROM wordfilter");
while($row = mysql_fetch_array($wordfilterq)){
$str=preg_replace("/".$row['word']."/i",$row['replacement'],$str);
}
Last edited by leenster; 26-11-11 at 06:43 PM.
Your javascript code for the support system is lacking. You should have it more dynamic instead of having all the information on the page but hidden
praise yeezus, the doctor (who)
I understand, but wouldn't lowercase, uppercase, space and numbers be the best option (saves them using Domain Names | Web Hosting | SSL Certificates - Name.com. Instead they'll have to do www NAME com.
That's so people using browsers which doesn't support jquery will be shown it (i.e: an old version of internet explorer will be shown everything).
Although if you have a better idea, please care to show me.