XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier login.php

Variables

 $path = '/path/to/xoops/directory'
 
 if (!defined( 'XOOPS_ROOT_PATH')) = MyTextSanitizer::getInstance()
 
 $op = (isset($_POST['op']) && $_POST['op'] === 'dologin') ? 'dologin' : 'login'
 
 $username = isset($_POST['username']) ? trim($_POST['username']) : ''
 
 $password = isset($_POST['userpass']) ? trim($_POST['userpass']) : ''
 
 $style = xoops_getcss($xoopsConfig['theme_set'])
 

Documentation des variables

◆ $op

$op = (isset($_POST['op']) && $_POST['op'] === 'dologin') ? 'dologin' : 'login'

◆ $password

$password = isset($_POST['userpass']) ? trim($_POST['userpass']) : ''

◆ $path

$path = '/path/to/xoops/directory'

◆ $style

$style = xoops_getcss($xoopsConfig['theme_set'])

◆ $username

$username = isset($_POST['username']) ? trim($_POST['username']) : ''

◆ if

Random_* Compatibility Library for using the new PHP 7 random_* API in PHP 5 projects

The MIT License (MIT)

Copyright (c) 2015 - 2018 Paragon Initiative Enterprises

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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 OR COPYRIGHT HOLDERS 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.

Start of Error Reportings.

strlen() implementation that isn't brittle to mbstring.func_overload

This version uses mb_strlen() in '8bit' mode to treat strings as raw binary rather than UTF-8, ISO-8859-1, etc

Paramètres
string$binary_string
Exceptions
TypeError
Renvoie
int

strlen() implementation that isn't brittle to mbstring.func_overload

This version just used the default strlen()

Paramètres
string$binary_string
Exceptions
TypeError
Renvoie
int

substr() implementation that isn't brittle to mbstring.func_overload

This version uses mb_substr() in '8bit' mode to treat strings as raw binary rather than UTF-8, ISO-8859-1, etc

Paramètres
string$binary_string
int$start
int | null$length(optional)
Exceptions
TypeError
Renvoie
string

mb_substr($str, 0, NULL, '8bit') returns an empty string on PHP 5.3, so we have to find the length ourselves.

substr() implementation that isn't brittle to mbstring.func_overload

This version just uses the default substr()

Paramètres
string$binary_string
int$start
int | null$length(optional)
Exceptions
TypeError
Renvoie
string