# Made simple that does not indicate clearly and obviously in its admin
# section that the site was built with CMS Made simple.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Or read it online: http://www.gnu.org/licenses/licenses.html#GPL
#
#-------------------------------------------------------------------------
#END_LICENSE
global $gCms;
if (!feu_utils::using_std_consumer()) {
    $consumer = feu_utils::get_auth_consumer();
    if ($consumer->has_capability(feu_auth_consumer::CAPABILITY_LOGIN)) {
        // the consumer provides the login capabilities
        echo $consumer->get_login_display($id, $returnid, $params);
        return;
    } else {
        return;
    }
}
// the remainer is the builtin authentication consumer.
$smarty =& $gCms->GetSmarty();
// build the form
$captcha =& $this->GetModuleInstance('Captcha');
if (is_object($captcha) && !isset($params['nocaptcha'])) {
    $smarty->assign('captcha_title', $this->Lang('captcha_title'));