TYPO3 API  SVNRelease
Public Member Functions | Public Attributes | Protected Member Functions
SC_index Class Reference

List of all members.

Public Member Functions

 init ()
 main ()
 printContent ()
 makeLoginForm ()
 makeLogoutForm ()
 wrapLoginForm ($content)
 checkRedirect ()
 makeInterfaceSelectorBox ()
 makeCopyrightNotice ()
 makeLoginBoxImage ()
 makeLoginNews ()
 startForm ()
 getJScode ()

Public Attributes

 $redirect_url
 $GPinterface
 $u
 $p
 $L
 $loginRefresh
 $commandLI
 $redirectToURL
 $content
 $interfaceSelector
 $interfaceSelector_jump
 $interfaceSelector_hidden
 $addFields_hidden = ''
 $loginSecurityLevel = 'superchallenged'

Protected Member Functions

 getSystemNews ()
 mergeOldLoginLabels ()

Detailed Description

Definition at line 87 of file index.php.


Member Function Documentation

SC_index::checkRedirect ( )

Checking, if we should perform some sort of redirection OR closing of windows.

Returns:
void

Definition at line 357 of file index.php.

References $BE_USER, $formprotection, $redirectToURL, t3lib_formprotection_Factory\get(), and t3lib_utility_Http\redirect().

Referenced by main().

SC_index::getJScode ( )

Creates JavaScript for the login form

Returns:
string JavaScript code

Definition at line 693 of file index.php.

References $GLOBALS, and t3lib_div\callUserFunction().

Referenced by main().

SC_index::getSystemNews ( ) [protected]

Gets news from sys_news and converts them into a format suitable for showing them at the login screen.

Returns:
array An array of login news.

Definition at line 623 of file index.php.

References $GLOBALS, t3lib_BEfunc\BEenableFields(), and t3lib_BEfunc\deleteClause().

Referenced by makeLoginNews().

SC_index::init ( )

Initialize the login box. Will also react on a &L=OUT flag and exit.

Returns:
void

Definition at line 120 of file index.php.

References $GLOBALS, t3lib_div\_GP(), t3lib_div\getIndpEnv(), mergeOldLoginLabels(), t3lib_utility_Http\redirect(), and t3lib_div\sanitizeLocalUrl().

SC_index::main ( )

Main function - creating the login/logout form

Returns:
void

Definition at line 180 of file index.php.

References $BE_USER, $TYPO3_CONF_VARS, checkRedirect(), getJScode(), makeInterfaceSelectorBox(), makeLoginForm(), makeLogoutForm(), startForm(), and wrapLoginForm().

SC_index::makeCopyrightNotice ( )

COPYRIGHT notice

Warning: DO NOT prevent this notice from being shown in ANY WAY. According to the GPL license an interactive application must show such a notice on start-up ('If the program is interactive, make it output a short notice... ' - see GPL.txt) Therefore preventing this notice from being properly shown is a violation of the license, regardless of whether you remove it or use a stylesheet to obstruct the display.

Returns:
string Text/Image (HTML) for copyright notice.

Definition at line 481 of file index.php.

References $GLOBALS.

Referenced by wrapLoginForm().

SC_index::makeInterfaceSelectorBox ( )

Making interface selector:

Returns:
void

Definition at line 425 of file index.php.

References $GLOBALS, $TYPO3_CONF_VARS, t3lib_div\_GP(), and t3lib_div\trimExplode().

Referenced by main().

SC_index::makeLoginBoxImage ( )

Returns the login box image, whether the default or an image from the rotation folder.

Returns:
string HTML image tag.

Definition at line 515 of file index.php.

References $GLOBALS, t3lib_div\getFileAbsFileName(), t3lib_div\getFilesInDir(), and t3lib_div\resolveBackPath().

Referenced by wrapLoginForm().

SC_index::makeLoginForm ( )

Creates the login form This is drawn when NO login exists.

Returns:
string HTML output

Definition at line 243 of file index.php.

References $content, $GLOBALS, t3lib_parsehtml\getSubpart(), t3lib_parsehtml\substituteMarkerArray(), and t3lib_parsehtml\substituteSubpart().

Referenced by main().

SC_index::makeLoginNews ( )

Make login news - renders the HTML content for a list of news shown under the login form. News data is added through $TYPO3_CONF_VARS

Returns:
string HTML content Idea by Jan-Hendrik Heuing
Deprecated:
$GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'] is deprecated since 4.5. Use system news records instead.

Definition at line 564 of file index.php.

References $GLOBALS, t3lib_div\_GP(), t3lib_parsehtml\getSubpart(), getSystemNews(), t3lib_div\logDeprecatedFunction(), t3lib_div\makeInstance(), t3lib_parsehtml\substituteMarker(), t3lib_parsehtml\substituteMarkerArray(), and t3lib_parsehtml\substituteSubpart().

Referenced by wrapLoginForm().

SC_index::makeLogoutForm ( )

Creates the logout form This is drawn if a user login already exists.

Returns:
string HTML output

Definition at line 279 of file index.php.

References $content, $GLOBALS, t3lib_parsehtml\getSubpart(), t3lib_parsehtml\substituteMarkerArray(), and t3lib_parsehtml\substituteSubpart().

Referenced by main().

SC_index::mergeOldLoginLabels ( ) [protected]

Checks if labels from $GLOBALS['TYPO3_CONF_VARS']['BE']['loginLabels'] were changed, and merge them to $GLOBALS['LOCAL_LANG'] if needed

This method keeps backwards compatibility, if you modified your labels with the install tool, we recommend to transfer this labels to a locallang.xml file using the llxml extension

Returns:
void

Definition at line 787 of file index.php.

References $GLOBALS.

Referenced by init().

SC_index::printContent ( )

Outputting the accumulated content to screen

Returns:
void

Definition at line 227 of file index.php.

SC_index::startForm ( )

Returns the form tag

Returns:
string Opening form tag string

Definition at line 656 of file index.php.

References $GLOBALS, and t3lib_div\callUserFunction().

Referenced by main().

SC_index::wrapLoginForm ( content)

Wrapping the login form table in another set of tables etc:

Parameters:
stringHTML content for the login form
Returns:
string The HTML for the page.

Definition at line 305 of file index.php.

References $content, $GLOBALS, t3lib_parsehtml\getSubpart(), t3lib_extMgm\isLoaded(), makeCopyrightNotice(), makeLoginBoxImage(), makeLoginNews(), and t3lib_parsehtml\substituteMarkerArray().

Referenced by main().


Member Data Documentation

SC_index::$addFields_hidden = ''

Definition at line 107 of file index.php.

SC_index::$commandLI

Definition at line 96 of file index.php.

SC_index::$content

Definition at line 102 of file index.php.

Referenced by makeLoginForm(), makeLogoutForm(), and wrapLoginForm().

SC_index::$GPinterface

Definition at line 91 of file index.php.

SC_index::$interfaceSelector

Definition at line 104 of file index.php.

SC_index::$interfaceSelector_hidden

Definition at line 106 of file index.php.

SC_index::$interfaceSelector_jump

Definition at line 105 of file index.php.

SC_index::$L

Definition at line 94 of file index.php.

SC_index::$loginRefresh

Definition at line 95 of file index.php.

SC_index::$loginSecurityLevel = 'superchallenged'

Definition at line 110 of file index.php.

SC_index::$p

Definition at line 93 of file index.php.

SC_index::$redirect_url

Definition at line 90 of file index.php.

SC_index::$redirectToURL

Definition at line 99 of file index.php.

Referenced by checkRedirect().

SC_index::$u

Definition at line 92 of file index.php.


The documentation for this class was generated from the following file: