dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxApi_security_test.php File Reference

Go to the source code of this file.

Variables

 $fail
 $password = dbx()->new_password(96, '-_!')
if(strlen($password) !==96||preg_match('/^ $webAppFile [a-zA-Z0-9_!\-]+$/', $password) !==1) = dirname(__DIR__) . '/dbxWebApp.class.php'
 $webAppSource = file_get_contents($webAppFile)
if(!is_string($webAppSource)||preg_match('/\\blogin\\s *\\‍(\\s *2\\s *\\‍)/', $webAppSource)===1 $loadConfig )
 $baseFile = dirname(__DIR__, 2) . '/modules/dbx/cfg/config.php'
 $localFile = dirname(__DIR__, 2) . '/modules/dbx/cfg/config.local.php'
 $base = $loadConfig($baseFile)
 $local = is_file($localFile) ? $loadConfig($localFile) : array()
 $secretPaths
 $readPath
foreach( $secretPaths as $path) if ( $local)

Variable Documentation

◆ $base

$base = $loadConfig($baseFile)

Definition at line 29 of file dbxApi_security_test.php.

◆ $baseFile

$baseFile = dirname(__DIR__, 2) . '/modules/dbx/cfg/config.php'

Definition at line 27 of file dbxApi_security_test.php.

◆ $fail

$fail
Initial value:
= static function (string $message, int $code): void {
fwrite(STDERR, "FAIL: $message\n");
exit($code);
}
exit
Definition index.php:146

Definition at line 6 of file dbxApi_security_test.php.

◆ $loadConfig

if (!is_string( $webAppSource)||preg_match('/\\blogin\\s *\\‍(\\s *2\\s *\\‍)/', $webAppSource)===1 $loadConfig)
Initial value:
= static function (string $file): array {
$config = array();
require $file;
return is_array($config) ? $config : array();
}
if($resolved !==$expectedBase . 'files/test/') $config

Definition at line 22 of file dbxApi_security_test.php.

◆ $local

$local = is_file($localFile) ? $loadConfig($localFile) : array()

Definition at line 30 of file dbxApi_security_test.php.

◆ $localFile

$localFile = dirname(__DIR__, 2) . '/modules/dbx/cfg/config.local.php'

Definition at line 28 of file dbxApi_security_test.php.

◆ $password

◆ $readPath

$readPath
Initial value:
= static function (array $data, array $path) {
foreach ($path as $part) {
if (!is_array($data) || !array_key_exists($part, $data)) {
return null;
}
$data = $data[$part];
}
return $data;
}

Definition at line 38 of file dbxApi_security_test.php.

◆ $secretPaths

$secretPaths
Initial value:
= array(
array('db', 'dbxApp', 'pass'),
array('db', 'dbxTestCodex', 'pass'),
array('ftp', 'web', 'sftp_pass'),
array('mail', 'dbxApp', 'pass'),
)

Definition at line 32 of file dbxApi_security_test.php.

◆ $webAppFile

if (strlen( $password) !==96||preg_match('/^ $webAppFile[a-zA-Z0-9_!\-]+$/', $password) !==1) = dirname(__DIR__) . '/dbxWebApp.class.php'

Definition at line 16 of file dbxApi_security_test.php.

◆ $webAppSource

$webAppSource = file_get_contents($webAppFile)

Definition at line 17 of file dbxApi_security_test.php.

◆ if

foreach($secretPaths as $path) if($local) ( $local)

Definition at line 54 of file dbxApi_security_test.php.