if ($level == 'notice') { $level = eZDebug::LEVEL_NOTICE; } else { if ($level == 'timing') { $level = eZDebug::LEVEL_TIMING_POINT; } } } } } $allowedDebugLevels[] = $level; } } } else { if ($flag == 's') { changeSiteAccessSetting($siteaccess, $optionData); } } } } } } } } $script->setUseDebugOutput($debugOutput); $script->setAllowedDebugLevels($allowedDebugLevels); $script->setUseDebugAccumulators($useDebugAccumulators); $script->setUseDebugTimingPoints($useDebugTimingpoints); $script->setUseIncludeFiles($useIncludeFiles); $script->setIsQuiet($isQuiet); if ($webOutput) {
} else { if ($cronPart === false) { $readOptions = false; $cronPart = $arg; } } } $script->setUseDebugOutput($debugOutput); $script->setAllowedDebugLevels($allowedDebugLevels); $script->setUseDebugAccumulators($useDebugAccumulators); $script->setUseDebugTimingPoints($useDebugTimingpoints); $script->setUseIncludeFiles($useIncludeFiles); $script->setIsQuiet($isQuiet); $siteAccessChangeMessage = false; if ($siteAccessSet) { $siteAccessChangeMessage = changeSiteAccessSetting($siteaccess, $siteAccessSet); } if ($webOutput) { $useColors = true; } $cli->setUseStyles($useColors); $script->setDebugMessage("\n\n" . str_repeat('#', 36) . $cli->style('emphasize') . " DEBUG " . $cli->style('emphasize-end') . str_repeat('#', 36) . "\n"); $script->setUseSiteAccess($siteaccess); $script->initialize(); if (!$script->isInitialized()) { $cli->error('Error initializing script: ' . $script->initializationError() . '.'); $script->shutdown(0); } if ($siteAccessChangeMessage) { $cli->output($siteAccessChangeMessage); } else {
$cli->error( "Missing NAME value ( could be session, expired_session, preferences, browse, tipafriend, shop, forgotpassword, workflow,\n" . "collaboration, collectedinformation, notification, searchstats or all )" ); $script->shutdown( 1 ); } $dbUser = $options['db-user'] ? $options['db-user'] : false; $dbPassword = $options['db-password'] ? $options['db-password'] : false; $dbHost = $options['db-host'] ? $options['db-host'] : false; $dbName = $options['db-database'] ? $options['db-database'] : false; $dbImpl = $options['db-driver'] ? $options['db-driver'] : false; $showSQL = $options['sql'] ? true : false; $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false; if ( $siteAccess ) { changeSiteAccessSetting( $siteaccess, $siteAccess ); } $cleanAllItems = false; $clean = array( 'session' => false, 'expired_session' => false, 'preferences' => false, 'browse' => false, 'tipafriend' => false, 'shop' => false, 'forgotpassword' => false, 'workflow' => false, 'collaboration' => false, 'collectedinformation' => false, 'notification' => false, 'searchstats' => false );
if ($level == 'notice') { $level = eZDebug::LEVEL_NOTICE; } else { if ($level == 'timing') { $level = eZDebug::LEVEL_TIMING_POINT; } } } } } $allowedDebugLevels[] = $level; } } } else { if ($flag == 's') { changeSiteAccessSetting($optionData); } else { if ($flag == 'l') { $userLogin = $optionData; } else { if ($flag == 'p') { $userPassword = $optionData; } else { if ($flag == 'r') { $repositoryID = $optionData; } } } } } }