Learning with Texts - Fork 2.4.0-fork
Learn foreign languages with texts
Namespaces | Functions | Variables
index.php File Reference

LWT Start Screen / Main Menu / Home. More...

Namespaces

namespace  Lwt
 

Functions

 no_connectinc_error_page ()
 
 get_span_groups ()
 
 do_current_text_info ($textid)
 
 do_language_selectable ($langid)
 
 wordpress_logout_link ()
 
 get_server_data ()
 

Variables

 if (!file_exists( 'connect.inc.php'))
 
 $currentlang = null
 
if(is_numeric(getSetting('currentlanguage'))) $currenttext = null
 
if(is_numeric(getSetting('currenttext'))) $langcnt = (int) get_first_value('SELECT COUNT(*) AS value FROM ' . $tbpref . 'languages')
 

Detailed Description

LWT Start Screen / Main Menu / Home.

Call: index.php

Function Documentation

◆ do_current_text_info()

do_current_text_info (   $textid)

Display the current text options.

Returns
void

@global string $tbpref Database table prefix

◆ do_language_selectable()

do_language_selectable (   $langid)

Echo a select element to switch between languages.

Returns
void

◆ get_server_data()

get_server_data ( )

Return a lot of different server state variables.

Returns
string[]

@global string $tbpref Database table prefix @global string $dbname Database name

◆ get_span_groups()

get_span_groups ( )

Prepare the different SPAN opening tags

Returns
string[] 3 different span levels

@global string $tbpref Database table prefix @global string $fixed_tbpref Fixed database table prefix

◆ no_connectinc_error_page()

no_connectinc_error_page ( )

Echo an error page if connect.inc.php was not found.

Returns
void

◆ wordpress_logout_link()

wordpress_logout_link ( )

When on a WordPress server, make a logout button

Returns
void