本文整理汇总了PHP中Conf::originalurl方法的典型用法代码示例。如果您正苦于以下问题:PHP Conf::originalurl方法的具体用法?PHP Conf::originalurl怎么用?PHP Conf::originalurl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Conf
的用法示例。
在下文中一共展示了Conf::originalurl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
}
break;
}
}
// find yakcat from ofcat in the db
$cat = '';
$yakcatColl = $db->yakcat;
$res = $yakcatColl->find(array('ext_id.of' => (string) $GenreId));
foreach ($res as $acat) {
$cat .= "#" . $acat['_id'];
}
$datpar = $Date[3]['annee'] . "-" . $Date[3]['mois'] . "-" . $Date[3]['jour'];
$pubDate = DateTime::createFromFormat('Y-m-d', $datpar);
$thumb = '';
if (!empty($photo[0]) && $photo[0]['Path'] != '') {
$thumb = $conf->originalurl() . $photo[0]['Path'];
}
$itemArray = array('title' => $Titre, 'content' => $Corps_Debut . " " . $Corps_Descriptif . " " . $Corps_Fin, 'outGoingLink' => $url, 'thumb' => $thumb, 'yakCats' => $cat, 'freeTag' => '', 'pubDate' => $pubDate->format(DateTime::ISO8601), 'address' => $Nom . ", " . $Org_Commune . ", Bretagne, France", 'place' => $Nom . ", " . $Org_Commune, 'longitude' => $longitude, 'latitude' => $latitude, 'telephone' => '', 'mobile' => '', 'mail' => '', 'transportation' => '', 'web' => $Site_Internet, 'opening' => '', 'eventDate' => $eventDateTotal);
unset($Date_ev);
unset($Date);
unset($Commune);
$xml .= buildXMLItem($itemArray);
}
}
}
// echo or write the file according to env var
if (substr($conf->deploy, 0, 3) == 'dev') {
header("Content-Type: application/rss+xml; charset=utf-8");
echo $header . $xml . $footer;
} else {
$fh = fopen('/usr/share/nginx/html/DATA/' . $file, 'w') or die("error");