[ Video Sharing CMS v4 ] user block - banned

Started by hexertem,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hexertemTopic starter

What code is necessary to prevent users .
e- mail based blocking. ( banned )
  •  

PHPVibe A.

Depends where, for example in com/com_register.php

after

if(_post('name') && _post('password') && _post('email')){

you could do something like this
$banned = array("x@x.com", "y@y.com");
if(in_array(_post('email'), $banned)) {
exit("Goodbye");
}

hexertemTopic starter

Quote from: Alexander on
Depends where, for example in com/com_register.php

after

if(_post('name') && _post('password') && _post('email')){

you could do something like this
$banned = array("x@x.com", "y@y.com");
if(in_array(_post('email'), $banned)) {
exit("Goodbye");
}

  •  

hexertemTopic starter

  •  

PHPVibe A.

I will add it in the next updates.

hexertemTopic starter

Quote from: Alexander on
I will add it in the next updates.

Thank you Alex.

Add a comment to this aspect of the component. That would be good.
  •  

hexertemTopic starter

Quote from: Alexander on
I will add it in the next updates.


When integrating Alex. I expect
  •  

hexertemTopic starter

  •  

hexertemTopic starter

Quote from: Alexander on
Depends where, for example in com/com_register.php

after

if(_post('name') && _post('password') && _post('email')){

you could do something like this
$banned = array("x@x.com", "y@y.com");
if(in_array(_post('email'), $banned)) {
exit("Goodbye");
}




com/com_login.php

/** Actual login **/
if(_post('password') && _post('email')){


after

$banned = array("x@x.com", "y@y.com");
if(in_array(_post('email'), $banned)) {
exit("Goodbye");
}




tahank you Alex
  •  

Similar topics (7)