Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        admin
5
 * @package         login
6
 * @author          Ryan Djurovich, WebsiteBaker Project
7
 * @copyright       2009-2012, Website Baker Org. e.V.
8
 * @link			http://www.websitebaker2.org/
9
 * @license         http://www.gnu.org/licenses/gpl.html
10
 * @platform        WebsiteBaker 2.8.x
11
 * @requirements    PHP 5.2.2 and higher
12
 * @version         $Id: index.php 2125 2015-06-17 18:42:26Z darkviper $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/admin/login/index.php $
14
 * @lastmodified    $Date: 2015-06-17 20:42:26 +0200 (Wed, 17 Jun 2015) $
15
 *
16
 */
17

    
18
// Include the configuration file
19
$sStartFile = dirname(dirname(__DIR__)).'/framework/initialize.php';
20
if (!defined('SYSTEM_RUN')) {
21
    require($sStartFile);
22
}
23
$username_fieldname = 'username';
24
$password_fieldname = 'password';
25
if(isset($oReg->SmartLogin) && $oReg->SmartLogin == 'true') {
26
    $sTmp = '_'.substr(md5(microtime()), -8);
27
    $username_fieldname .= $sTmp;
28
    $password_fieldname .= $sTmp;
29
}
30

    
31
$admin = new frontend();
32
$WarnUrl = str_replace($oReg->AppPath, $oReg->AppUrl, $admin->correct_theme_source('warning.html'));
33
$LoginTpl = 'loginBox.htt';
34
$ThemePath = dirname($admin->correct_theme_source('loginBox.htt'));
35
$thisApp = new Login( array(
36
        'MAX_ATTEMPS'           => 3,
37
        'WARNING_URL'           => $WarnUrl,
38
        'INFO_URL'              => '##',
39
        'INFO_TEXT'             => 'News',
40
        'USERNAME_FIELDNAME'    => $username_fieldname,
41
        'PASSWORD_FIELDNAME'    => $password_fieldname,
42
        'REMEMBER_ME_OPTION'    => $oReg->SmartLogin,
43
        'MIN_USERNAME_LEN'      => 2,
44
        'MIN_PASSWORD_LEN'      => 3,
45
        'MAX_USERNAME_LEN'      => 100,
46
        'MAX_PASSWORD_LEN'      => 100,
47
        'LOGIN_URL'             => $oReg->AcpUrl."login/index.php",
48
        'DEFAULT_URL'           => $oReg->AcpUrl."start/index.php",
49
        'TEMPLATE_DIR'          => $ThemePath,
50
        'TEMPLATE_FILE'         => $LoginTpl,
51
        'FRONTEND'              => false,
52
        'FORGOTTEN_DETAILS_APP' => $oReg->AcpUrl."login/forgot/index.php",
53
        'USERS_TABLE'           => $oDb->TablePrefix."users",
54
        'GROUPS_TABLE'          => $oDb->TablePrefix."groups",
55
    )
56
);
    (1-1/1)