block.user_cannot_override.php

来自「一个用PHP编写的」· PHP 代码 · 共 25 行

PHP
25
字号
<?php/** * Function used in the admin interface as a shorthand to check whether the user has the given permission * * @param key */function smarty_block_user_cannot_override($params, $content, &$smarty)	{		if( isset( $content )) {		// fetch the user		if( isset( $params["key"]))			$key = $params["key"];		else {			$smarty->trigger_error( "user_cannot_override: missing 'key' parameter!" );					}				if( GlobalPluginConfig::canOverride( $key ) == PLUGIN_SETTINGS_USER_CANNOT_OVERRIDE )			return( $content );		else			return "";	}}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?