本文整理匯總了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;
}