Help reg

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

3 replies · 349 views · started 16 years ago · 1 min read

4 participants
bOrN2pwn Developer · 230 posts #2

Set the blocked words or names in the $blockwords variable by inputting words between the " ", each word should be in lowercase letters, and each word should be separated by a comma , example $blockwords="casino,badword"; If a block word value appears in a form field form processing will be stopped.

To use this code adjust the $blockwords value to the words you want to block, copy and paste all the script code (including the php start and end tags) to the very top of your Form1 form processing code above all other code.

[HIDE-THANKS]

$blockwords="casino,badword";

if(!empty($blockwords)&&!empty($_POST))
{$useBlocks=explode(",",$blockwords);foreach($useBlocks as $blockWord)
{foreach($_POST as $Name=>$Value){$Value=trim($Value);$Value=strtolower($Value);
if(!empty($Value)&&strpos($Value,$blockWord)!==false){exit();}}}}?>

[/HIDE-THANKS]

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

metulj Super moderator Principal · 1,726 posts #3

//////// adedd on 05.01.2010 //////// huh lol i just noticed that i've posted code in wrong thread😳 actually code would be usefull to

makvanpor2000 wrote: ...prevent the use of s**A**me names in registering...

and would not

makvanpor2000 wrote: ...prevent the use of some names in registering... as requested lol😳

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

wap_king Developer · 126 posts #4

$exists = mysql_num_row(mysql_query("SELECT * FROM table WHERE user='".$user."'"));

if($exists>0) {

echo "Username is already taken please try another!";

exit; }

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close