fix register loophole
This commit is contained in:
parent
c2106cb9df
commit
a6cde63fd8
|
@ -176,7 +176,8 @@ function contacts_content(&$a) {
|
||||||
'$photo' => $r[0]['photo'],
|
'$photo' => $r[0]['photo'],
|
||||||
'$name' => $r[0]['name'],
|
'$name' => $r[0]['name'],
|
||||||
'$dir_icon' => $dir_icon,
|
'$dir_icon' => $dir_icon,
|
||||||
'$alt_text' => $alt_text
|
'$alt_text' => $alt_text,
|
||||||
|
'$url' => (($direction != DIRECTION_IN) ? "redir/{$r[0]['id']}" : $r[0]['url'] )
|
||||||
|
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -175,6 +175,11 @@ function register_post(&$a) {
|
||||||
if(! function_exists('register_content')) {
|
if(! function_exists('register_content')) {
|
||||||
function register_content(&$a) {
|
function register_content(&$a) {
|
||||||
|
|
||||||
|
if($a->config['register_policy'] == REGISTER_CLOSED) {
|
||||||
|
notice("Permission denied." . EOL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$o = file_get_contents("view/register.tpl");
|
$o = file_get_contents("view/register.tpl");
|
||||||
$o = replace_macros($o, array('$registertext' =>((x($a->config,'register_text'))? $a->config['register_text'] : "" )));
|
$o = replace_macros($o, array('$registertext' =>((x($a->config,'register_text'))? $a->config['register_text'] : "" )));
|
||||||
return $o;
|
return $o;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user