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

Go to the source code of this file.

Variables

 $shopRoot = dirname(__DIR__)
 $adminFile = dirname(__DIR__, 2) . '/dbxShop_admin/include/dbxShopAdmin.class.php'
 $admin = file_get_contents($adminFile)
 $fail
if(!is_string( $admin)) if(strpos($admin, "private const ACTION_TOKEN_SCOPE = 'dbxShop_admin.actions'")===false||strpos($admin, 'action_token(self::ACTION_TOKEN_SCOPE)')===false||strpos($admin, 'check_action_token(self::ACTION_TOKEN_SCOPE, $token)')===false) $protectedActions
foreach( $protectedActions as $action) if(strpos($admin, "'install_url' => \$this->actionUrl(")===false||strpos($admin, ' $treeMoveUrl=str_replace(\'&\', \'&amp;\', $this->actionUrl(')===false||strpos($admin, ' $invoicePdfUrl=$this->actionUrl(')===false||strpos($admin, "\$report->_action = \$this->actionUrl('?dbx_modul=dbxShop_admin&dbx_run1=products')")===false) if(strpos( $admin, 'private bool $maintenanceMode=false;')===false||strpos( $admin, 'private maintainShopAdminContent():void')===false||strpos( $admin, ' $this->maintainShopAdminContent();')===false||substr_count( $admin, 'if(! $this->maintenanceMode)')< 2 if )(substr_count($admin, ' $this->ensureCmsShopMediaFolder();') !==1||substr_count($admin, ' $this->syncShopMediaUsage();') !==3)

Variable Documentation

◆ $admin

$admin = file_get_contents($adminFile)

Definition at line 5 of file shop_admin_action_security_test.php.

◆ $adminFile

$adminFile = dirname(__DIR__, 2) . '/dbxShop_admin/include/dbxShopAdmin.class.php'

Definition at line 4 of file shop_admin_action_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 7 of file shop_admin_action_security_test.php.

◆ $protectedActions

if(!is_string($admin)) if (strpos( $admin, "private const ACTION_TOKEN_SCOPE = 'dbxShop_admin.actions'")===false||strpos( $admin, 'action_token(self::ACTION_TOKEN_SCOPE)')===false||strpos( $admin, 'check_action_token(self::ACTION_TOKEN_SCOPE, $token)')===false) $protectedActions
Initial value:
= array(
'assign_media',
'product_tree_move',
'install',
'remove_image',
'export_channel',
'product_report_action',
'delete_order',
'withdrawal_status',
'order_quick_action',
'send_status_mail',
'order_invoice_pdf',
)

Definition at line 22 of file shop_admin_action_security_test.php.

◆ $shopRoot

$shopRoot = dirname(__DIR__)

Definition at line 3 of file shop_admin_action_security_test.php.

◆ if

foreach($protectedActions as $action) if(strpos( $admin, "'install_url' => \$this->actionUrl(")===false||strpos( $admin, ' $treeMoveUrl=str_replace(\'&\', \'&amp;\', $this->actionUrl(')===false||strpos( $admin, ' $invoicePdfUrl=$this->actionUrl(')===false||strpos( $admin, "\$report->_action = \$this->actionUrl('?dbx_modul=dbxShop_admin&dbx_run1=products')")===false) if(strpos($admin, 'private bool $maintenanceMode=false;')===false||strpos($admin, 'private maintainShopAdminContent():void')===false||strpos($admin, ' $this->maintainShopAdminContent();')===false||substr_count($admin, 'if(! $this->maintenanceMode)')< 2 if) (substr_count( $admin, ' $this->ensureCmsShopMediaFolder();') !==1||substr_count( $admin, ' $this->syncShopMediaUsage();') !==3) ( substr_count($admin, ' $this->ensureCmsShopMediaFolder();') ! = = 1 || substr_count($admin, '$this->syncShopMediaUsage();') !== 3)

Definition at line 55 of file shop_admin_action_security_test.php.