<?php

defined('_SECURE_') or die('Forbidden');
unset($tpl);
$tpl = array('name' => 'page_forgot', 'var' => array('HTTP_PATH_BASE' => $http_path['base'], 'WEB_TITLE' => $web_title, 'ERROR' => $error_content, 'Username' => _('Username'), 'Email' => _('Email'), 'Login' => _('Login'), 'Forgot password' => _('Forgot password'), 'Recover password' => _('Recover password'), 'Register an account' => _('Register an account')), 'if' => array('enable_register' => $core_config['main']['cfg_enable_register']));
$content = tpl_apply($tpl);
echo themes_apply($content);
Esempio n. 2
0
$continue = TRUE;
if (function_exists('bindtextdomain')) {
    bindtextdomain('messages', _APPS_PATH_PLUG_ . '/language/');
    bind_textdomain_codeset('messages', 'UTF-8');
    textdomain('messages');
}
// load plugin
if ($continue && _INC_) {
    $p = explode('_', _INC_, 2);
    $plugin_category = $p[0];
    $plugin_name = $p[1];
    $plugin_dir = _APPS_PATH_PLUG_ . '/' . $plugin_category . '/' . $plugin_name;
    $file_name = _ROUTE_ ? _ROUTE_ . '.php' : $plugin_name . '.php';
    $plugin_file = $plugin_dir . '/' . $file_name;
    if (file_exists($plugin_file)) {
        if (function_exists('bindtextdomain')) {
            bindtextdomain('messages', $plugin_dir . '/language/');
            bind_textdomain_codeset('messages', 'UTF-8');
            textdomain('messages');
        }
        include_once $plugin_file;
    }
}
if (function_exists('bindtextdomain')) {
    bindtextdomain('messages', _APPS_PATH_THEMES_ . '/' . core_themes_get() . '/language/');
    bind_textdomain_codeset('messages', 'UTF-8');
    textdomain('messages');
}
$content = ob_get_clean();
_p(themes_apply($content));