XOOPS  2.6.0
login.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
23 {
25  if (!$xoops->isUser()) {
26  $block = array();
27  $block['lang_username'] = XoopsLocale::C_USERNAME;
28  $block['unamevalue'] = "";
29  $block['lang_password'] = XoopsLocale::C_PASSWORD;
30  $block['lang_login'] = XoopsLocale::A_LOGIN;
31  $block['lang_lostpass'] = XoopsLocale::Q_LOST_YOUR_PASSWORD;
32  $block['lang_registernow'] = XoopsLocale::REGISTER_NOW;
33  if ($xoops->getConfig('use_ssl') == 1 && $xoops->getConfig('sslloginlink') != '') {
34  $block['sslloginlink'] = "<a href=\"javascript:openWithSelfMain('" . $xoops->getConfig('sslloginlink') . "', 'ssllogin', 300, 200);\">" . SystemLocale::SECURE_LOGIN . "</a>";
35  } elseif ($xoops->getConfig('usercookie')) {
36  $block['lang_rememberme'] = XoopsLocale::REMEMBER_ME;
37  }
38  return $block;
39  }
40  return false;
41 }
const REGISTER_NOW
Definition: en_US.php:948
static getInstance()
Definition: Xoops.php:160
const A_LOGIN
Definition: en_US.php:102
b_system_login_show()
Definition: login.php:22
$xoops
Definition: admin.php:25
const C_USERNAME
Definition: en_US.php:194
const Q_LOST_YOUR_PASSWORD
Definition: en_US.php:932
const SECURE_LOGIN
Definition: en_US.php:372
const C_PASSWORD
Definition: en_US.php:188
const REMEMBER_ME
Definition: en_US.php:952