本文整理汇总了PHP中AEPlatform::get_host方法的典型用法代码示例。如果您正苦于以下问题:PHP AEPlatform::get_host方法的具体用法?PHP AEPlatform::get_host怎么用?PHP AEPlatform::get_host使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AEPlatform
的用法示例。
在下文中一共展示了AEPlatform::get_host方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createExtrainfo
private function createExtrainfo()
{
$abversion = AKEEBA_VERSION;
$host = AEPlatform::get_host();
$ret = <<<ENDINI
; Akeeba Backup $abversion - Extra information used during restoration
host=$host
ENDINI;
return $ret;
}
示例2: get_archive_name_variables
public static function get_archive_name_variables()
{
$variables = null;
$registry =& AEFactory::getConfiguration();
$serialized = $registry->get('volatile.core.archivenamevars', null);
if(!empty($serialized)) {
$variables = @unserialize($serialized);
}
if(empty($variables))
{
$host = AEPlatform::get_host();
$variables = array(
'[DATE]' => AEPlatform::get_local_timestamp("%Y%m%d"),
'[YEAR]' => AEPlatform::get_local_timestamp("%Y"),
'[MONTH]' => AEPlatform::get_local_timestamp("%m"),
'[DAY]' => AEPlatform::get_local_timestamp("%d"),
'[TIME]' => AEPlatform::get_local_timestamp("%H%M%S"),
'[WEEK]' => AEPlatform::get_local_timestamp("%U"),
'[WEEKDAY]' => AEPlatform::get_local_timestamp("%A"),
'[HOST]' => empty($host) ? 'unknown_host' : $host,
'[RANDOM]' => md5(microtime())
);
}
return $variables;
}