Documentation

index.php

\file \brief LWT Start screen and main menu

Call: index.php

PHP version 8.1

Tags
category

User_Interface

author

LWT Project lwt-project@hotmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/files/index.html
since
1.0.3

"Learning with Texts" (LWT) is free and unencumbered software released into the PUBLIC DOMAIN.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to [http://unlicense.org/].

Table of Contents

Functions

no_connectinc_error_page()  : void
Echo an error page if connect.inc.php was not found.
get_span_groups()  : array<string|int, string>
Prepare the different SPAN opening tags
do_current_text_info()  : void
Display the current text options.
do_language_selectable()  : void
Echo a select element to switch between languages.
wordpress_logout_link()  : void
When on a WordPress server, make a logout button
get_server_data()  : array<string|int, false|float|string|array<string|int, string>>
Return a lot of different server state variables.
index_load_warnings()  : void
Load the content of warnings for visual display.
index_do_main_page()  : void
Display the main body of the page.

Functions

no_connectinc_error_page()

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

no_connectinc_error_page() : void
Tags
since
2.7.0-fork

Now display a link to the connect.ing.php creation wizard, return void instead of dying.

get_span_groups()

Prepare the different SPAN opening tags

get_span_groups() : array<string|int, string>
Tags
global

string $tbpref Database table prefix

global

string $fixed_tbpref Fixed database table prefix

psalm-return

list{''|'', string, ''|''}

Return values
array<string|int, string>

3 different span levels

do_current_text_info()

Display the current text options.

do_current_text_info(mixed $textid) : void
Parameters
$textid : mixed
Tags
global

string $tbpref Database table prefix

do_language_selectable()

Echo a select element to switch between languages.

do_language_selectable(mixed $langid) : void
Parameters
$langid : mixed

When on a WordPress server, make a logout button

wordpress_logout_link() : void

get_server_data()

Return a lot of different server state variables.

get_server_data() : array<string|int, false|float|string|array<string|int, string>>
Tags
deprecated

Use get_server_data_table, will be removed in 3.0.0.

psalm-return

list{string, float, non-empty-list, string, false|string, string}

global

string $tbpref Database table prefix

global

string $dbname Database name

Return values
array<string|int, false|float|string|array<string|int, 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

index_load_warnings()

Load the content of warnings for visual display.

index_load_warnings() : void

index_do_main_page()

Display the main body of the page.

index_do_main_page() : void
Tags
global

string $tbpref Database table prefix

global

int $debug Debug mode enabled


        
On this page

Search results