Go to the source code of this file.
Variables | |
| if(PHP_SAPI !=='cli') | $apply = in_array('--apply', $argv, true) |
| $base = dirname(__DIR__, 4) | |
| $_SERVER ['REQUEST_URI'] = '/dbxapp/' | |
| $_SERVER ['HTTP_HOST'] = 'localhost' | |
| $_SERVER ['HTTPS'] = 'on' | |
| $_SERVER ['SCRIPT_NAME'] = '/dbxapp/index.php' | |
| const | dbxSystem 'dbxWebApp' |
| const | dbxRunAsAdmin 1 |
| $contentDd = dbxContentLng::ddContent('de') | |
| $folderDd = dbxContentLng::ddFolder('de') | |
| $db = dbx()->get_system_obj('dbxDB') | |
| if(!is_object($db)||! $db->connect_db_server('dbx|dbxContent.db3')) | $trashId = 19 |
| $archiveIds | |
| $pages | |
| $home | |
| $basePage | |
| $folderChanges | |
| $result | |
| if(! $apply) | $dbFile = $base . '/dbx/modules/dbx/db/dbxContent.db3' |
| if(!is_file($dbFile)||(int) filesize($dbFile)<=0) | $backupDir = dirname($dbFile) . '/backup' |
| if(!is_dir($backupDir) &&!mkdir($backupDir, 0775, true) &&!is_dir($backupDir)) | $backupFile = $backupDir . '/dbxContent-before-marketing-de-' . date('Ymd-His') . '.db3' |
| if(!copy($dbFile, $backupFile)) | $result ['backup'] = $backupFile |
| if($db->begin($contentDd) !==1) | try |
| if(!is_array($trash)||(int)($trash['id'] ?? 0) !==$trashId) foreach( $folderChanges as $id=> $changes) foreach($archiveIds as $id) | $homeRow = $db->select1($contentDd, 1, 'id,lng_rev', 0) |
| if(!is_array($homeRow)||(int)($homeRow['id'] ?? 0) !==1) | $homeUpdate |
| if($db->update($contentDd, $homeUpdate, 1, 0) !==1) | $result ['updated'] |
| foreach($pages as $page) | $documentationRows |
| foreach(is_array( $documentationRows) ? $documentationRows :array() as $row) foreach(array(33=> array('title'=> 'DataDic Übersicht'), 41=> array('title'=> 'Sprachen &Übersetzung — Benutzerhandbuch'), 55=> array('addmenu'=> 0),) as $id=> $changes) if( $db->commit( $contentDd) !==1) catch(Throwable $e | $cacheStats ) = dbxContentPageCache::invalidateAll() |
| $result ['cache'] = $cacheStats | |
| $activeTargets = array('home') | |
| foreach($pages as $page) | $targetRows = array() |
| foreach($activeTargets as $permalink) | $result ['verified_targets'] = count($targetRows) |
| $result ['verified_total_de'] = (int)$db->count($contentDd, '1=1') | |
| $_SERVER[ 'HTTP_HOST'] = 'localhost' |
Definition at line 19 of file restructure_marketing_de.php.
| $_SERVER[ 'HTTPS'] = 'on' |
Definition at line 20 of file restructure_marketing_de.php.
| $_SERVER[ 'REQUEST_URI'] = '/dbxapp/' |
Definition at line 18 of file restructure_marketing_de.php.
| $_SERVER[ 'SCRIPT_NAME'] = '/dbxapp/index.php' |
Definition at line 21 of file restructure_marketing_de.php.
| $activeTargets = array('home') |
Definition at line 698 of file restructure_marketing_de.php.
| if (PHP_SAPI !=='cli') $apply = in_array('--apply', $argv, true) |
Definition at line 14 of file restructure_marketing_de.php.
| $archiveIds |
Definition at line 41 of file restructure_marketing_de.php.
| if (!is_file( $dbFile)||(int) filesize( $dbFile)<=0) $backupDir = dirname($dbFile) . '/backup' |
Definition at line 563 of file restructure_marketing_de.php.
| if (!is_dir( $backupDir) &&!mkdir( $backupDir, 0775, true) &&!is_dir( $backupDir)) $backupFile = $backupDir . '/dbxContent-before-marketing-de-' . date('Ymd-His') . '.db3' |
Definition at line 568 of file restructure_marketing_de.php.
| $base = dirname(__DIR__, 4) |
Definition at line 15 of file restructure_marketing_de.php.
| $basePage |
Definition at line 500 of file restructure_marketing_de.php.
| foreach(is_array($documentationRows) ? $documentationRows :array() as $row) foreach(array(33=> array( 'title'=> 'DataDic Übersicht'), 41=> array( 'title'=> 'Sprachen &Übersetzung — Benutzerhandbuch'), 55=> array( 'addmenu'=> 0),) as $id=> $changes) if($db->commit($contentDd) !==1) catch (Throwable $e $cacheStats) = dbxContentPageCache::invalidateAll() |
Definition at line 694 of file restructure_marketing_de.php.
| $contentDd = dbxContentLng::ddContent('de') |
Definition at line 32 of file restructure_marketing_de.php.
Definition at line 34 of file restructure_marketing_de.php.
Definition at line 558 of file restructure_marketing_de.php.
| foreach ( $pages as $page) $documentationRows |
Definition at line 649 of file restructure_marketing_de.php.
| $folderChanges |
Definition at line 530 of file restructure_marketing_de.php.
| $folderDd = dbxContentLng::ddFolder('de') |
Definition at line 33 of file restructure_marketing_de.php.
| $home |
Definition at line 459 of file restructure_marketing_de.php.
Referenced by dbxWebApp\check_perma().
| if(!is_array( $trash)||(int)( $trash[ 'id'] ?? 0) !==$trashId) foreach($folderChanges as $id=> $changes) foreach ( $archiveIds as $id) $homeRow = $db->select1($contentDd, 1, 'id,lng_rev', 0) |
Definition at line 610 of file restructure_marketing_de.php.
| if (!is_array( $homeRow)||(int)( $homeRow[ 'id'] ?? 0) !==1) $homeUpdate |
Definition at line 614 of file restructure_marketing_de.php.
| $pages |
Definition at line 47 of file restructure_marketing_de.php.
Definition at line 573 of file restructure_marketing_de.php.
| $result[ 'cache'] = $cacheStats |
Definition at line 696 of file restructure_marketing_de.php.
Definition at line 625 of file restructure_marketing_de.php.
Definition at line 717 of file restructure_marketing_de.php.
| $result[ 'verified_total_de'] = (int)$db->count($contentDd, '1=1') |
Definition at line 718 of file restructure_marketing_de.php.
Definition at line 540 of file restructure_marketing_de.php.
| foreach ( $pages as $page) $targetRows = array() |
Definition at line 702 of file restructure_marketing_de.php.
Referenced by dbxDD\build_schema_mapping().
Definition at line 40 of file restructure_marketing_de.php.
| const dbxRunAsAdmin 1 |
Definition at line 24 of file restructure_marketing_de.php.
| const dbxSystem 'dbxWebApp' |
Definition at line 23 of file restructure_marketing_de.php.
| if ( $db->begin( $contentDd) !==1) try |
Definition at line 580 of file restructure_marketing_de.php.