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

Go to the source code of this file.

Functions

 seoFail (string $message, int $code)

Variables

 $_SERVER ['HTTPS'] = 'on'
 $_SERVER ['HTTP_HOST'] = 'localhost'
 $_SERVER ['SERVER_PORT'] = '443'
 $_SERVER ['SCRIPT_NAME'] = '/dbxapp/index.php'
 $_SERVER ['PHP_SELF'] = '/dbxapp/index.php'
 $_SERVER ['REQUEST_METHOD'] = 'GET'
 $_SERVER ['REQUEST_URI'] = '/dbxapp/'
 $base = 'https://localhost/dbxapp/'
 $web = dbx()->get_system_obj('dbxWebApp')
 $_GET = array()
 $_POST = array()
if($web->canonical_home_redirect_target() !==$base) $_SERVER ['REQUEST_METHOD'] = 'POST'
if($web->canonical_home_redirect_target() !=='') $_SERVER ['REQUEST_METHOD'] = 'GET'
if($web->content_permalink_redirect_target() !=='') $tpl = new dbxTPL()
 $robotsMethod = new ReflectionMethod(dbxTPL::class, 'effective_robots_meta')
if($robotsMethod->invoke($tpl) !=='index, follow') $renderer = new \dbx\dbxContent\dbxContentRenderer()
 $canonicalMethod = new ReflectionMethod($renderer, 'seoCanonicalUrl')
if( $canonicalMethod->invoke( $renderer, 'home', true) !==$base) if($canonicalMethod->invoke($renderer, 'produkte', false) !==$base . 'produkte') $root = dirname(__DIR__, 2)
 $sitemapSource
if(strpos($sitemapSource, 'collectUserMenuLinks') !==false||strpos($sitemapSource, 'dbxContentHome::masterCid')===false||strpos($sitemapSource, 'isNoindex')===false||strpos($sitemapSource, ' $lngs=array($masterLng)')===false) $htaccess = (string)file_get_contents(dirname($root) . '/.htaccess')
if(!preg_match('/RewriteRule \\^home\\/\\?\\$ https:\\/\\/dbxapp\\.de\\//', $htaccess)||strpos($htaccess, '%{HTTPS} !=on')===false $designDir ) = $root . '/design'
 $iterator
 foreach ( $iterator as $file)

Function Documentation

◆ seoFail()

seoFail ( string $message,
int $code )

Definition at line 18 of file dbxSeoCanonicalPolicy_test.php.

Variable Documentation

◆ $_GET

if ( $robotsMethod->invoke( $tpl) !=='noindex, follow') $_GET = array()

Definition at line 28 of file dbxSeoCanonicalPolicy_test.php.

◆ $_POST

$_POST = array()

Definition at line 29 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [1/9]

$_SERVER[ 'HTTP_HOST'] = 'localhost'

Definition at line 6 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [2/9]

$_SERVER[ 'HTTPS'] = 'on'

Definition at line 5 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [3/9]

$_SERVER[ 'PHP_SELF'] = '/dbxapp/index.php'

Definition at line 9 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [4/9]

if ( $web->canonical_home_redirect_target() !=='') $_SERVER[ 'REQUEST_METHOD'] = 'GET'

Definition at line 39 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [5/9]

if ( $web->canonical_home_redirect_target() !==$base) $_SERVER[ 'REQUEST_METHOD'] = 'POST'

Definition at line 34 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [6/9]

$_SERVER[ 'REQUEST_METHOD'] = 'GET'

Definition at line 10 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [7/9]

$_SERVER[ 'REQUEST_URI'] = '/dbxapp/'

Definition at line 11 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [8/9]

$_SERVER[ 'SCRIPT_NAME'] = '/dbxapp/index.php'

Definition at line 8 of file dbxSeoCanonicalPolicy_test.php.

◆ $_SERVER [9/9]

$_SERVER[ 'SERVER_PORT'] = '443'

Definition at line 7 of file dbxSeoCanonicalPolicy_test.php.

◆ $base

$base = 'https://localhost/dbxapp/'

Definition at line 23 of file dbxSeoCanonicalPolicy_test.php.

◆ $canonicalMethod

$canonicalMethod = new ReflectionMethod($renderer, 'seoCanonicalUrl')

Definition at line 99 of file dbxSeoCanonicalPolicy_test.php.

◆ $designDir

if (!preg_match('/RewriteRule \\^home\\/\\?\\$ https:\\/\\/dbxapp\\.de\\//', $htaccess)||strpos( $htaccess, '%{HTTPS} !=on')===false $designDir) = $root . '/design'

Definition at line 125 of file dbxSeoCanonicalPolicy_test.php.

◆ $htaccess

if (strpos( $sitemapSource, 'collectUserMenuLinks') !==false||strpos( $sitemapSource, 'dbxContentHome::masterCid')===false||strpos( $sitemapSource, 'isNoindex')===false||strpos( $sitemapSource, ' $lngs=array( $masterLng)')===false) $htaccess = (string)file_get_contents(dirname($root) . '/.htaccess')

Definition at line 119 of file dbxSeoCanonicalPolicy_test.php.

◆ $iterator

$iterator
Initial value:
= new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($designDir, FilesystemIterator::SKIP_DOTS)
)
if(!preg_match('/RewriteRule \\^home\\/\\?\\$ https:\\/\\/dbxapp\\.de\\//', $htaccess)||strpos($htaccess, '%{HTTPS} !=on')===false $designDir)

Definition at line 126 of file dbxSeoCanonicalPolicy_test.php.

◆ $renderer

if ( $robotsMethod->invoke( $tpl) !=='index, follow') $renderer = new \dbx\dbxContent\dbxContentRenderer()

Definition at line 98 of file dbxSeoCanonicalPolicy_test.php.

◆ $robotsMethod

$robotsMethod = new ReflectionMethod(dbxTPL::class, 'effective_robots_meta')

Definition at line 74 of file dbxSeoCanonicalPolicy_test.php.

◆ $root

if($canonicalMethod->invoke($renderer, 'home', true) !==$base) if ( $canonicalMethod->invoke( $renderer, 'produkte', false) !==$base . 'produkte') $root = dirname(__DIR__, 2)

Definition at line 108 of file dbxSeoCanonicalPolicy_test.php.

◆ $sitemapSource

$sitemapSource
Initial value:
= (string)file_get_contents(
$root . '/modules/dbxContent/include/dbxContentSitemap.class.php'
)

Definition at line 109 of file dbxSeoCanonicalPolicy_test.php.

◆ $tpl

◆ $web

$web = dbx()->get_system_obj('dbxWebApp')

Definition at line 25 of file dbxSeoCanonicalPolicy_test.php.

◆ foreach

foreach($iterator as $file) ( $iterator as)

Definition at line 129 of file dbxSeoCanonicalPolicy_test.php.