XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
postcommon_post_register_moratorium.php
Go to the documentation of this file.
1
<?php
2
3
define(
'PROTECTOR_POSTCOMMON_POST_REGISTER_MORATORIUM'
, 60 ) ;
// minutes
4
5
class
protector_postcommon_post_register_moratorium
extends
ProtectorFilterAbstract
{
6
7
function
execute
()
8
{
9
global
$xoopsUser
;
10
11
if
( ! is_object( $xoopsUser ) ) {
12
return
true
;
13
}
14
15
$moratorium_result = intval( ( $xoopsUser->getVar(
'user_regdate'
) +
PROTECTOR_POSTCOMMON_POST_REGISTER_MORATORIUM
* 60 - time() ) / 60 ) ;
16
if
( $moratorium_result > 0 ) {
17
if
( preg_match(
'#(https?\:|\[\/url\]|www\.)#'
, serialize(
$_POST
) ) ) {
18
printf(
_MD_PROTECTOR_FMT_REGISTER_MORATORIUM
, $moratorium_result ) ;
19
exit
;
20
}
21
}
22
}
23
24
}
25
26
?>
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
filters_disabled
postcommon_post_register_moratorium.php
Generated on Fri May 10 2013 01:04:29 for XOOPS 2.5.6 by
1.8.3.1