本文整理汇总了PHP中DUP_Util::GetCurrentUser方法的典型用法代码示例。如果您正苦于以下问题:PHP DUP_Util::GetCurrentUser方法的具体用法?PHP DUP_Util::GetCurrentUser怎么用?PHP DUP_Util::GetCurrentUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DUP_Util
的用法示例。
在下文中一共展示了DUP_Util::GetCurrentUser方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
</td>
</tr>
<tr>
<td>SAPI</td>
<td><?php
echo PHP_SAPI;
?>
</td>
</tr>
<tr>
<td><?php
_e("User", 'duplicator');
?>
</td>
<td><?php
echo DUP_Util::GetCurrentUser();
?>
</td>
</tr>
<tr>
<td><a href="http://php.net/manual/en/features.safe-mode.php" target="_blank"><?php
_e("Safe Mode", 'duplicator');
?>
</a></td>
<td>
<?php
echo strtolower(@ini_get('safe_mode')) == 'on' || strtolower(@ini_get('safe_mode')) == 'yes' || strtolower(@ini_get('safe_mode')) == 'true' || ini_get("safe_mode") == 1 ? __('On', 'duplicator') : __('Off', 'duplicator');
?>
</td>
</tr>
<tr>
示例2: _e
echo $dup_tests['SYS-100'];
?>
</div>
</div>
<div class="dup-sys-info dup-info-box">
<?php
echo "<b>";
_e("Required Paths", 'wpduplicator');
echo ":</b><br/>";
$test = is_writeable(DUPLICATOR_WPROOTPATH) ? 'Pass' : 'Fail';
printf("<b>%s</b> [%s] <br/>", $test, DUPLICATOR_WPROOTPATH);
$test = is_writeable(DUPLICATOR_SSDIR_PATH) ? 'Pass' : 'Fail';
printf("<b>%s</b> [%s] <br/>", $test, DUPLICATOR_SSDIR_PATH);
$test = is_writeable(DUPLICATOR_SSDIR_PATH_TMP) ? 'Pass' : 'Fail';
printf("<b>%s</b> [%s] <br/><br/>", $test, DUPLICATOR_SSDIR_PATH_TMP);
printf("<b>%s:</b> [%s] <br/><br/>", __('PHP Script Owner', 'wpduplicator'), DUP_Util::GetCurrentUser());
_e("The above paths should have permissions of 755 for directories and 644 for files. You can temporarily try 777 if you continue to have issues. Also be sure to check the owner/group settings. For more details contact your host or server administrator.", 'wpduplicator');
?>
<small><?php
_e('Status Code', 'wpduplicator');
?>
: SYS-100</small>
</div>
</div>
<!-- SYS-101 -->
<div class='dup-sys-req'>
<div class='dup-sys-title'>
<a><?php
_e('Reserved Files', 'wpduplicator');
?>