|
| getSessionGeneralHandlerType () |
| checkUploadScriptExecution () |
| checkUploadNegotiationEnabled () |
| isHtaccessOverrided () |
| checkPhpUserAndGroup ($minUid=self::MIN_UID, $minGid=self::MIN_GID) |
| isScriptExecutable ($pFileName, $pText, $pSearch) |
| checkCollectivePhpSession () |
| initializeParams (array $params=array()) |
| isRunOnWin () |
| getParam ($name, $defaultValue="") |
| isDebug () |
| getDetailErrors () |
| addDetailError ($title, $critical, $detail, $recommendation="", $additionalInfo="") |
| addUnformattedDetailError ($baseMessageKey, $critical, $additionalInfo="") |
Class CSecurityEnvironmentTest
- Начиная с
- 12.5.0
См. определение в файле environment.php строка 16
◆ __construct()
◆ 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
- Аргументы
-
- Возвращает
- 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()
Return current domain name (in puny code for cyrillic domain)
- Возвращает
- string
См. определение в файле environment.php строка 218
◆ getCurrentSiteUrl()
◆ getSessionGeneralHandlerType()
getSessionGeneralHandlerType |
( |
| ) |
|
|
protected |
◆ getSessionUniqID()
Return session unique ID
- Возвращает
- string
См. определение в файле environment.php строка 329
◆ getTmpDir()
getTmpDir |
( |
| $pPhpSettingKey = "upload_tmp_dir" | ) |
|
|
staticprotected |
Return php session or upload tmp dir
- Аргументы
-
- Возвращает
- string
См. определение в файле environment.php строка 307
◆ getTmpDirFromEnv()
Return php tmp dir from environment
- Возвращает
- string
См. определение в файле environment.php строка 282
◆ getUploadDir()
Return upload dir path for test usage
- Возвращает
- string
См. определение в файле environment.php строка 209
◆ isHtaccessOverrided()
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 |
◆ $tests
Инициализатор
"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)
См. определение в файле environment.php строка 23
◆ MIN_GID
◆ MIN_UID
Объявления и описания членов класса находятся в файле: