Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
reqpasswd.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * reqpasswd function for the reqpasswd layout
8  *
9  * @author Anakeen
10  * @version $Id: reqpasswd.php,v 1.2 2009/01/16 13:33:00 jerome Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 
18 {
19  $action->parent->AddCssRef('AUTHENT:loginform.css', true);
20  $action->parent->AddCssRef('AUTHENT:reqpasswd.css');
21  $action->parent->AddJsRef($action->GetParam("CORE_JSURL") . "/resizeimg.js");
22  $action->parent->AddJsRef($action->GetParam("CORE_JSURL") . "/geometry.js");
23  $action->parent->addJsRef("AUTHENT:loginform.js", true);
24  $lang = $action->getArgument("lang");
25 
26  $smtpfrom=$action->getParam("SMTP_FROM");
27  $smtpport=$action->getParam("SMTP_PORT");
28  $smtphost=$action->getParam("SMTP_HOST");
29  if (!$smtpfrom || !$smtpport || !$smtphost) {
30  $action->exitError(___("SMTP server not configured","authent"));
31  }
32 
33  $action->lay->eSet("lang", $lang);
35  return "";
36 }
global $action
if(!function_exists('pgettext')) ___($message, $context="")
Definition: Lib.Common.php:46
$lang
Definition: lang.php:18
exitError($texterr, $exit=true, $code="")
setLanguage($lang)
Definition: Lib.Common.php:886
reqpasswd(Action &$action)
Definition: reqpasswd.php:17
getParam($name, $def="")
static getArgument($k, $def= '')
← centre documentaire © anakeen