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

LWT Start screen and main menu. More...

Namespaces

 Lwt
 

Functions

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

Variables

 if (!file_exists( 'connect.inc.php'))
 

Detailed Description

LWT Start screen and main menu.

Call: index.php

PHP version 8.1

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
(false|float|string|string[])[] {0: string, 1: float, 2: string[], 3: string, 4: string, 5: string} Table prefix, database size, server software, apache version, PHP version, MySQL version
Deprecated:
Use get_server_data_table, will be removed in 3.0.0.

@psalm-return list{string, float, non-empty-list<string>, string, false|string, 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

@psalm-return list{''|'', string, ''|''}

◆ index_do_main_page()

index_do_main_page ( )

Display the main body of the page.

Returns
void

@global string $tbpref Database table prefix @global int $debug Debug mode enabled

◆ index_load_warnings()

index_load_warnings ( )

Load the content of warnings for visual display.

Returns
void

◆ no_connectinc_error_page()

no_connectinc_error_page ( )

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

Returns
void
Since
2.7.0-fork Now display a link to the connect.ing.php creation wizard, return void instead of dying.

◆ wordpress_logout_link()

wordpress_logout_link ( )

When on a WordPress server, make a logout button

Returns
void