1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CSecurityEnvironmentTest
Граф наследования:CSecurityEnvironmentTest:
CSecurityBaseTest

Открытые члены

 __construct ()
Открытые члены унаследованные от CSecurityBaseTest
 getName ()
 checkRequirements ($params=array())
 check (array $params=array())
 getInternalName ()

Поля данных

const MIN_UID = 10
const MIN_GID = 10
Поля данных унаследованные от CSecurityBaseTest
const STATUS_FAILED = "failed"
const STATUS_PASSED = "passed"

Защищенные члены

 getSessionGeneralHandlerType ()
 checkUploadScriptExecution ()
 checkUploadNegotiationEnabled ()
 isHtaccessOverrided ()
 checkPhpUserAndGroup ($minUid=self::MIN_UID, $minGid=self::MIN_GID)
 isScriptExecutable ($pFileName, $pText, $pSearch)
 checkCollectivePhpSession ()
Защищенные члены унаследованные от CSecurityBaseTest
 initializeParams (array $params=array())
 isRunOnWin ()
 getParam ($name, $defaultValue="")
 isDebug ()
 getDetailErrors ()
 addDetailError ($title, $critical, $detail, $recommendation="", $additionalInfo="")
 addUnformattedDetailError ($baseMessageKey, $critical, $additionalInfo="")

Защищенные статические члены

static getUploadDir ()
static getCurrentHost ()
static getCurrentSiteUrl ()
static doRequestToLocalhost ($pPath)
static getTmpDirFromEnv ()
static getTmpDir ($pPhpSettingKey="upload_tmp_dir")
static getSessionUniqID ()
Защищенные статические члены унаследованные от CSecurityBaseTest
static getFilePerm ($path)
static isWorldWritable ($path)
static isWorldReadable ($path)
static isWorldAccessible ($path)
static getDetailText ($baseMessageKey, array $placeholders=array())
static getRecommendationText ($baseMessageKey, array $placeholders=array())
static getTitleText ($baseMessageKey, array $placeholders=array())
static formatDetailError ($baseMessageKey, $critical, $additionalInfo="")
static removeDocumentRoot ($path)

Защищенные данные

 $internalName = "EnvironmentTest"
 $tests
Защищенные данные унаследованные от CSecurityBaseTest
 $internalName = "BaseTest"
 $isDebug = false
 $params = array()
 $tests = array()
 $detailErrors = array()

Подробное описание

Class CSecurityEnvironmentTest

Начиная с
12.5.0

См. определение в файле environment.php строка 16

Конструктор(ы)

◆ __construct()

__construct ( )

См. определение в файле environment.php строка 45

Методы

◆ checkCollectivePhpSession()

checkCollectivePhpSession ( )
protected

Check session files collective usage, e.g. several owners in the same session directory

Возвращает
bool

См. определение в файле environment.php строка 338

◆ checkPhpUserAndGroup()

checkPhpUserAndGroup ( $minUid = self::MIN_UID,
$minGid = self::MIN_GID )
protected

Check minimal UID and GID

Аргументы
int$minUid
int$minGid
Возвращает
bool

См. определение в файле environment.php строка 174

◆ checkUploadNegotiationEnabled()

checkUploadNegotiationEnabled ( )
protected

Check if Apache Content Negotiation enabled in /upload dir and push those information to detail error

Возвращает
bool

См. определение в файле environment.php строка 106

◆ checkUploadScriptExecution()

checkUploadScriptExecution ( )
protected

Check if any server-side script executed in /upload dir and push those information to detail error

Возвращает
bool

См. определение в файле environment.php строка 62

◆ doRequestToLocalhost()

doRequestToLocalhost ( $pPath)
staticprotected

Make request to current site and return result

Аргументы
string$pPath- url path, e.g. /upload/tmp/test.php
Возвращает
bool|string

См. определение в файле environment.php строка 242

◆ getCurrentHost()

getCurrentHost ( )
staticprotected

Return current domain name (in puny code for cyrillic domain)

Возвращает
string

См. определение в файле environment.php строка 218

◆ getCurrentSiteUrl()

getCurrentSiteUrl ( )
staticprotected

Return current site url, e.g. http://localhost:8990

Возвращает
string

См. определение в файле environment.php строка 229

◆ getSessionGeneralHandlerType()

getSessionGeneralHandlerType ( )
protected

См. определение в файле environment.php строка 50

◆ getSessionUniqID()

getSessionUniqID ( )
staticprotected

Return session unique ID

Возвращает
string

См. определение в файле environment.php строка 329

◆ getTmpDir()

getTmpDir ( $pPhpSettingKey = "upload_tmp_dir")
staticprotected

Return php session or upload tmp dir

Аргументы
string$pPhpSettingKey
Возвращает
string

См. определение в файле environment.php строка 307

◆ getTmpDirFromEnv()

getTmpDirFromEnv ( )
staticprotected

Return php tmp dir from environment

Возвращает
string

См. определение в файле environment.php строка 282

◆ getUploadDir()

getUploadDir ( )
staticprotected

Return upload dir path for test usage

Возвращает
string

См. определение в файле environment.php строка 209

◆ isHtaccessOverrided()

isHtaccessOverrided ( )
protected

Check apache AllowOverride

Возвращает
bool

См. определение в файле environment.php строка 131

◆ isScriptExecutable()

isScriptExecutable ( $pFileName,
$pText,
$pSearch )
protected
Аргументы
string$pFileName- testing file name. e.g. test.php
string$pText- script entry
string$pSearch- text for searching after script execute
Возвращает
bool

См. определение в файле environment.php строка 256

Поля

◆ $internalName

$internalName = "EnvironmentTest"
protected

См. определение в файле environment.php строка 22

◆ $tests

$tests
protected
Инициализатор
"sessionDir" => array(
"method" => "checkPhpSessionDir"
),
"collectivePhpSession" => array(
"method" => "checkCollectivePhpSession"
),
"uploadScriptExecution" => array(
"method" => "checkUploadScriptExecution"
),
"uploadNegotiationEnabled" => array(
"method" => "checkUploadNegotiationEnabled"
),
"privilegedPhpUserOrGroup" => array(
"method" => "checkPhpUserAndGroup"
),
"bitrixTempPath" => array(
"method" => "checkBitrixTempPath"
)
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804

См. определение в файле environment.php строка 23

◆ MIN_GID

const MIN_GID = 10

См. определение в файле environment.php строка 20

◆ MIN_UID

const MIN_UID = 10

См. определение в файле environment.php строка 19


Объявления и описания членов класса находятся в файле: