当前位置: 首页>>代码示例>>PHP>>正文


PHP Statistics::getBrowser方法代码示例

本文整理汇总了PHP中Statistics::getBrowser方法的典型用法代码示例。如果您正苦于以下问题:PHP Statistics::getBrowser方法的具体用法?PHP Statistics::getBrowser怎么用?PHP Statistics::getBrowser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Statistics的用法示例。


在下文中一共展示了Statistics::getBrowser方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: secureVar

 if (isset($actionId) && $postActionId == secureVar($res['id'], 'html')) {
     $urlActionPrefix = "index.php?a=posts&p=" . $pageNum . "&postid=" . secureVar($res['id'], 'html');
     if ($isTrash) {
         $urlActionPrefix .= "&t=trash";
     }
     if ($actionId == 'modify') {
         echo "<form action=\"" . $urlActionPrefix . "\" method=\"post\"><fieldset>\n\t\t\t\t \t\t\t\t\t<textarea name='modifyMessage' rows='5' cols='50' onfocus='this.select()'>" . htmlspecialchars_decode(secureVar($res['message'], 'html'), ENT_QUOTES) . "</textarea>\n\t\t\t\t \t\t\t\t\t<input type=\"hidden\" name=\"postid\" value=\"" . secureVar($res['id'], 'html') . "\" />\n\t\t\t\t \t\t\t\t\t<input type=\"submit\" name=\"submit\" value=\"" . $lang['modify'] . "\" />\n\t\t\t\t \t\t\t\t\t</fieldset></form>";
     } elseif ($actionId == 'reply') {
         echo $messageValue . "<hr />\n\t\t\t\t \t\t\t\t<form action=\"" . $urlActionPrefix . "\" method=\"post\"><fieldset>\n\t\t\t\t \t\t\t\t\t<textarea name='replyMessage' rows='5' cols='35'></textarea>\n\t\t\t\t \t\t\t\t\t<input type=\"hidden\" name=\"postid\" value=\"" . secureVar($res['id'], 'html') . "\" />\n\t\t\t\t \t\t\t\t\t<input type=\"submit\" name=\"submit\" value=\"" . $lang['modify'] . "\" />\n\t\t\t\t \t\t\t\t\t</fieldset></form>";
     } else {
         echo $messageValue;
     }
 } else {
     echo $messageValue;
 }
 echo "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr class=\"topInfos\">\n\t\t\t\t\t\t<td colspan=\"2\">" . $lang['lUserAgent'] . " : " . $userAgent->getUserAgent() . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr class=\"topInfos\">\n\t\t\t\t\t\t<td>" . $lang['pEmail'] . " : " . secureVar(base64_decode($res['email']), 'html') . "</td>\n\t\t\t\t\t\t<td><img src=\"../images/os/icon_" . $userAgent->getOS() . ".png\" alt=\"OS\" />\n\t\t\t\t\t\t<img src=\"../images/browsers/icon_" . $userAgent->getBrowser() . ".png\" alt=\"Browser\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr class=\"topInfos\">\n\t\t\t\t\t\t<td>" . $lang['pIP'] . " : " . secureVar($res['ip'], 'html') . "</td>\n\t\t\t\t\t\t<td><img src=\"../images/stars/" . secureVar($res['rating'], 'html') . ".gif\" alt=\"" . secureVar($res['rating'], 'html') . "\" /></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
 // Admin reply
 if ($res['rid'] != NULL) {
     $messageValue = Message::formatMessage(secureVar($res['rmessage'], 'html'), $censoredList);
     $messageValue = Message::formatSmilies($messageValue, "admin", $smiliesReplacement);
     echo "<table class=\"tableReply\">\n\t\t\t\t\t<tr class=\"topInfos\">\n\t\t\t\t\t\t<td align=\"left\">" . secureVar(base64_decode($res['rname']), 'html') . "</a>, " . date($config['dateFormat'], secureVar($res['rdate'], 'html'));
     echo "</td>\n\t\t\t\t\t\t<td align=\"right\">";
     $urlActionPrefix = "<a href=\"index.php?a=posts&p=" . $pageNum . "&postid=" . secureVar($res['rid'], 'html') . "&action=";
     echo $urlActionPrefix . "modifyReply\">" . $lang['pModify'] . "</a> - ";
     echo $urlActionPrefix . "deleteReply\">" . $lang['pDelete'] . "</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"message\" colspan=\"2\">";
     if ($actionId == 'modifyReply') {
         echo "<form action=\"index.php?a=posts&p=" . $pageNum . "&postid=" . secureVar($res['rid'], 'html') . "&action=modifiedReply\" method=\"post\"><fieldset>\n\t\t\t \t\t\t\t\t<textarea name='modifyReplyMessage' rows='5' cols='50' onfocus='this.select()'>" . htmlspecialchars_decode(secureVar($res['rmessage'], 'html'), ENT_QUOTES) . "</textarea>\n\t\t\t \t\t\t\t\t<input type=\"hidden\" name=\"postid\" value=\"" . secureVar($res['rid'], 'html') . "\" />\n\t\t\t \t\t\t\t\t<input type=\"submit\" name=\"submit\" value=\"" . $lang['modify'] . "\" />\n\t\t\t \t\t\t\t\t</fieldset></form>";
     } else {
         echo $messageValue;
     }
     echo "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
开发者ID:adelnoureddine,项目名称:angora-guestbook,代码行数:31,代码来源:posts.php

示例2: Countries

        $countryName = new Countries();
        $messageValue = Message::formatMessage(secureVar($res['message'], 'html'), $censoredList, $censoredLists);
        $messageValue = Message::formatSmilies($messageValue, null, $smiliesReplacement);
        $boxContent->assign("DATE", date($config['dateFormat'], secureVar($res['date'], 'html')));
        $boxContent->assign("POST_ID", secureVar($res['id'], 'html'));
        $boxContent->assign("COUNTRY", $countryName->getCountry($res['country']));
        $boxContent->assign("COUNTRY_ICON", "images/countries/" . secureVar($res['country'], 'html') . ".png");
        $boxContent->assign("NAME", secureVar($res['name'], 'html'));
        $boxContent->assign("LOCATION", secureVar($res['location'], 'html'));
        $boxContent->assign("MESSAGE", $messageValue);
        $boxContent->assign("USER_AGENT", secureVar($res['useragent'], 'html'));
        $boxContent->assign("RATING", secureVar($res['rating'], 'html'));
        $boxContent->assign("RATING_ICON", "images/stars/" . secureVar($res['rating'], 'html') . ".gif");
        $boxContent->assign("PAGE_ADDR", "index.php?id=" . secureVar($res['id'], 'html'));
        $boxContent->assign("COUNTRY_ADDR", "index.php?cc=" . secureVar($res['country'], 'html'));
        $boxContent->assign("BROWSER_ICON", "images/browsers/icon_" . $userAgent->getBrowser() . ".png");
        $boxContent->assign("OS_ICON", "images/os/icon_" . $userAgent->getOS() . ".png");
        // Admin reply
        if ($res['rid'] != NULL) {
            $messageValue = Message::formatMessage(secureVar($res['rmessage'], 'html'), $censoredList, $censoredLists);
            $messageValue = Message::formatSmilies($messageValue, null, $smiliesReplacement);
            $boxContent->assign("AD_NAME", secureVar(base64_decode($res['rname']), 'html'));
            $boxContent->assign("AD_DATE", date($config['dateFormat'], secureVar($res['rdate'], 'html')));
            $boxContent->assign("AD_MESSAGE", $messageValue);
            $boxContent->parse('posts.fetch_posts.fetch_adminReply');
        }
        $boxContent->parse('posts.fetch_posts');
    }
} else {
    $boxContent->assign("NO_MESSAGES", $lang['noPostsToYourQuery']);
    $boxContent->parse('posts.no_posts');
开发者ID:adelnoureddine,项目名称:angora-guestbook,代码行数:31,代码来源:posts.php


注:本文中的Statistics::getBrowser方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。