[BUGFIX] FE-Error "NO entry in the $TCA-array..."
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / ext_localconf.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
3
4 //replace old Login
5 $pluginContent = trim('
6 plugin.tx_felogin_pi1 = USER_INT
7 plugin.tx_felogin_pi1 {
8 includeLibs = EXT:felogin/pi1/class.tx_felogin_pi1.php
9 userFunc = tx_felogin_pi1->main
10 }
11 ');
12 t3lib_extMgm::addTypoScript($_EXTKEY,'setup','
13 # Setting '.$_EXTKEY.' plugin TypoScript
14 '.$pluginContent);
15
16 $addLine = '
17 tt_content.login = COA
18 tt_content.login {
19 10 = < lib.stdheader
20 20 >
21 20 = < plugin.tx_felogin_pi1
22 }
23 ';
24
25 t3lib_extMgm::addTypoScript($_EXTKEY,'setup','# Setting '.$_EXTKEY.' plugin TypoScript'.$addLine.'',43);
26
27 t3lib_extMgm::addPageTSConfig('
28 mod.wizards.newContentElement.wizardItems.forms {
29 elements {
30 login {
31 icon = gfx/c_wiz/login_form.gif
32 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_title
33 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_description
34 tt_content_defValues {
35 CType = login
36 }
37 }
38 }
39 show :=addToList(login)
40 }
41 ');
42
43 //activate support for kb_md5fepw
44 if (t3lib_extMgm::isLoaded('kb_md5fepw') && (TYPO3_MODE == 'FE')) {
45 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['loginFormOnSubmitFuncs'][] = 'tx_kbmd5fepw_newloginbox->loginFormOnSubmit';
46 require_once(t3lib_extMgm::extPath('kb_md5fepw').'pi1/class.tx_kbmd5fepw_newloginbox.php');
47 }
48
49 ?>