本文整理汇总了PHP中changeSiteAccessSetting函数的典型用法代码示例。如果您正苦于以下问题:PHP changeSiteAccessSetting函数的具体用法?PHP changeSiteAccessSetting怎么用?PHP changeSiteAccessSetting使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了changeSiteAccessSetting函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: changeSiteAccessSetting
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) {
示例2: changeSiteAccessSetting
} 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 {
示例3: value
$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 );
示例4: changeSiteAccessSetting
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;
}
}
}
}
}
}