本文整理汇总了PHP中Version::signature方法的典型用法代码示例。如果您正苦于以下问题:PHP Version::signature方法的具体用法?PHP Version::signature怎么用?PHP Version::signature使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Version
的用法示例。
在下文中一共展示了Version::signature方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: endBody
protected function endBody($attribution = true)
{
$l12n = $this->l12n();
print "<address>";
Html::out(Version::signature());
if (isset($_SERVER["REQUEST_TIME_FLOAT"])) {
$elapsed = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
Html::out(sprintf($l12n->t(" - %f s"), $elapsed));
}
print "</address>";
if ($attribution) {
print "<address class=\"attribution\">";
print "<a href=\"http://phplogmon.carne.de\">phpLogMon</a> sources are Copyright (c) 2012-2014 Holger de Carne and contributors und subject to the GPL version 3 or later.<br/>";
print "The accompanied image resources are subject to different copyrights by: ";
print "<a href=\"http://vathanx.deviantart.com/art/World-Flag-Icons-PNG-108083900\">Vathanx</a> from <a href=\"http://vathanx.deviantart.com\">vathanx.deviantart.com</a> | ";
print "<a href=\"http://www.oxygen-icons.org\">Oxygen Team</a> from <a href=\"http://www.oxygen-icons.org\">www.oxygen-icons.org</a> | ";
print "<a href=\"http://www.flaticon.com/packs/batch\">Adam Whitcroft</a> from <a href=\"http://www.flaticon.com\">www.flaticon.com</a> | ";
print "<a href=\"http://www.mouserunner.com/Spheres_ColoCons1_Free_Icons.html\">Ken Saunders</a> from <a href=\"http://www.mouserunner.com\">www.mouserunner.com</a></br>";
print "See <a href=\"?cmd=viewabout\">License</a> for full details.";
print "</address>";
}
print "</body>";
}
示例2: reportExceptionAndExit
public static function reportExceptionAndExit($e)
{
print "<!DOCTYPE HTML>\n";
print "<html>\n";
print "<head>\n";
print "<title>Error</title>\n";
print "</head>\n";
print "<body>\n";
print "<h1>";
print htmlentities("An exception occured");
print "</h1>\n";
print htmlentities($e->getMessage());
print "\n<h1>";
print htmlentities("Exception details:");
print "</h1>\n";
print "<pre>\n";
print htmlentities($e);
print "\n</pre>\n";
print "<hr>\n";
print "<address>";
print htmlentities(Version::signature());
print "</address>\n";
print "</body>\n";
print "</html>\n";
flush();
exit;
}