1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 08:06:38 +02:00

Code cleanup

This commit is contained in:
Cameron
2015-02-15 02:37:36 -08:00
parent 5be1cbe67f
commit 027a74f5b0
55 changed files with 211 additions and 174 deletions

29
fpw.php
View File

@@ -72,16 +72,34 @@ class fpw_shortcodes extends e_shortcode
function sc_fpw_captcha_hidden($parm='')
{
return; // no longer required - included in renderInput();
}
}
/**
* @param string $parm
* @return mixed|null|string
*/
function sc_fpw_captcha_img($parm='')
{
if(USE_IMAGECODE){ return $this->secImg->renderImage(); }
if(USE_IMAGECODE)
{
return $this->secImg->renderImage();
}
return null;
}
/**
* @param string $parm
* @return mixed|null|string
*/
function sc_fpw_captcha_input($parm='')
{
if(USE_IMAGECODE){ return $this->secImg->renderInput(); }
if(USE_IMAGECODE)
{
return $this->secImg->renderInput();
}
return null;
}
function sc_fpw_logo($parm='')
@@ -262,6 +280,7 @@ if (isset($_POST['pwsubmit']))
{
case USER_BANNED:
e107::getRedirect()->redirect(SITEURL);
break;
case USER_VALIDATED:
break;
default: