本文整理汇总了PHP中isMobileConnect函数的典型用法代码示例。如果您正苦于以下问题:PHP isMobileConnect函数的具体用法?PHP isMobileConnect怎么用?PHP isMobileConnect使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了isMobileConnect函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDomain
" target="_blank" title="<?php
echo $R['referer'];
?>
"><?php
echo getDomain($R['referer']);
?>
</a></td>
<td class="agent">
<?php
if ($_browse == 'Mobile') {
?>
<img src="<?php
echo $g['img_core'];
?>
/_public/ico_mobile.gif" class="imgpos" alt="모바일" title="모바일(<?php
echo isMobileConnect($R['agent']);
?>
)접속" />
<?php
}
?>
<?php
echo strtoupper($_browse);
?>
</td>
<td><?php
echo getDateFormat($R['d_regis'], 'Y.m.d H:i');
?>
</td>
</tr>
示例2: count
<col width="80">
<col>
<col width="70">
<col width="50">
</colgroup>
<tbody>
<?php
$cnt = count($RCD);
?>
<?php
foreach ($RCD as $R) {
?>
<?php
$R['mobile'] = isMobileConnect($R['agent']);
?>
<tr class="dotline<?php
if ($cnt == ++$_ol) {
?>
none<?php
}
?>
">
<td class="name"><a href="javascript:;"<?php
if ($my['admin']) {
?>
onclick="getMemberLayer2('<?php
echo $R['mbruid'];
?>
',event)<?php
示例3: getLink
<?php
if (!defined('__KIMS__')) {
exit;
}
if ($d['admin']['ssl_type'] == 1) {
if ($_SERVER['HTTPS'] != 'on') {
getLink($g['ssl_root'] . '/?' . $_SERVER['QUERY_STRING'], '', '', '');
}
}
$DB_CONNECT = isConnectDb($DB);
$g['mobile'] = isMobileConnect($_SERVER['HTTP_USER_AGENT']);
$g['device'] = $g['mobile'] && $_SESSION['pcmode'] != 'Y';
$my = array();
$my['level'] = 0;
if ($_SESSION['mbr_uid']) {
$my = array_merge(getUidData($table['s_mbrid'], $_SESSION['mbr_uid']), getDbData($table['s_mbrdata'], "memberuid='" . $_SESSION['mbr_uid'] . "'", '*'));
if ($my['pw'] != $_SESSION['mbr_pw']) {
exit;
}
$g['mysns'] = explode('|', $my['sns']);
}
if ($r) {
$_HS = getDbData($table['s_site'], "id='" . $r . "'", '*');
$s = $_HS['uid'];
}
if (!$s) {
if ($g['mobile']) {
$_HH = getDbData($table['s_mobile'], '', '*');
if ($_HH['usemobile'] == 1) {
$_HS = getUidData($table['s_site'], $_HH['startsite']);
示例4: getCommentList
function getCommentList($theme, $parent, $_where, $recnum, $sort, $orderby1, $orderby2, $cp)
{
global $g, $table, $_HS, $m, $my;
include $theme . '_var.php';
// 설정파일 인클루드
$g['img_module_skin'] = $theme . 'image/';
$NCD = array();
$RCD = array();
$cp = $cp ? $cp : 1;
$sort = $sort ? $sort : 'uid';
$orderby1 = $orderby1 ? $orderby1 : $d['comment']['orderby1'];
$orderby2 = $orderby2 ? $orderby2 : $d['comment']['orderby2'];
$recnum = $recnum ? $recnum : $d['comment']['recnum'];
$cmentque = " and parent='" . str_replace('-', '', $parent) . "'";
if ($_where) {
$cmentque .= " and " . $_where;
}
$PCD = getDbArray($table['s_comment'], 'notice=1' . $cmentque, '*', $sort, $orderby1, 0, 0);
$TCD = getDbArray($table['s_comment'], 'notice=0' . $cmentque, '*', $sort, $orderby2, $recnum, $cp);
$NUM = getDbRows($table['s_comment'], 'notice=0' . $cmentque);
$TPG = getTotalPage($NUM, $recnum);
while ($_R = db_fetch_array($PCD)) {
$NCD[] = $_R;
}
while ($_R = db_fetch_array($TCD)) {
$RCD[] = $_R;
}
//echo $cmentque;
$RCD = $NCD + $RCD;
$i = 1;
$namegi = $NUM - $cp * $recnum;
if ($namegi > 0) {
$namegi_ment = '총 <span class="text-danger namegi">' . $namegi . '</span> 개의 댓글이 더 있습니다.';
$btn_more = 'btn-more';
$is_namegi = 1;
} else {
$namegi_ment = '더이상 댓글이 없습니다.';
$btn_more = 'disabled';
$is_namegi = 0;
}
foreach ($RCD as $C) {
$C['mobile'] = isMobileConnect($C['agent']);
if ($C['mbruid']) {
$M = getDbData($table['s_mbrdata'], 'memberuid=' . $C['mbruid'], '*');
$M1 = getUidData($table['s_mbrid'], $C['mbruid']);
}
$isSECRETCHECK = true;
$compare_time = $C['d_modify'] ? $C['d_modify'] : $C['d_regis'];
$JN_time = getJNTime($compare_time);
// 지난시간 얻기 함수 호출
// 아바타 사진 url 세팅
if ($M['photo']) {
$avatar_img = $g['url_root'] . '/_var/avatar/' . $M['photo'];
} else {
$avatar_img = $g['url_root'] . '/_var/avatar/0.gif';
}
echo '
<a name="one-write2-' . $C['uid'] . '"></a>
<li id="' . $C['uid'] . '-' . $C['score1'] . '-' . $C['oneline'] . '" class="list-group-item comment-list">
<div class="media" id="cuid-' . $C['uid'] . '">
<input type="hidden" name="is_namegi" value="' . $is_namegi . '"/>
<input type="hidden" name="TPG" value="' . $TPG . '"/>
<input type="hidden" name="theme" class="theme" value="' . $theme . '" />
<input type="hidden" name="parent" class="parent" value="' . $parent . '" />
<input type="hidden" name="c_content" class="c_content" value="' . htmlspecialchars(getContents($C['content'], $C['html'], $keyword)) . '" />
<div class="media-left">
<a target="_blank" title="프로필 보기" data-toggle="tooltip" href="' . $g['s'] . '/profile/' . $M1['id'] . '" class="pull-left hidden-xs rb-avatar">
<img src="' . $avatar_img . '" class="media-object img-rounded" alt="48x48" data-src="holder.js/48x48" style="width: 48px; height: 48px;">
</a>
</div>
<div class="media-body">
<h5 class="media-heading">
<a class="a-muted" href="' . $g['s'] . '/profile/' . $M1['id'] . '">' . ($C[$_HS['nametype']] ? $C[$_HS['nametype']] : $C['name']) . '</a>
<span class="text-muted small time-wrap"><time title="' . getDateFormat($compare_time, 'Y년 m월 d일 H시 i분') . '" data-toggle="tooltip" class="timeago live-tooltip">' . $JN_time . '</time></span>
<span></span>
<span class="pull-right top-tools">';
if ($my['admin'] || $C['mbruid'] == $my['uid']) {
echo '<span class="text-muted"><a href="#" id="delete-' . $C['uid'] . '" class="live-tooltip cmt-tools" title="삭제" ><i class="fa fa-trash-o"></i></a></span>';
echo '<span class="text-muted"><a href="#" id="edit-' . $C['uid'] . '" class="live-tooltip cmt-tools" title="수정" ><i class="fa fa-edit"></i></a></span>';
} else {
echo '<span class="text-muted"><a href="#" id="report-' . $C['uid'] . '" class="live-tooltip cmt-tools" title="신고" ><i class="fa fa-frown-o"></i></a></span>';
}
echo '</span>
</h5>
<hr class="cmt-hr">';
echo '<div class="panel-body nopd-left comment-content" id="comment-content-' . $C['uid'] . '" >';
if (!$C['hidden'] || $my['admin'] || $my['id'] && $my['id'] == $C['id'] || strstr($_SESSION['module_' . $m . '_view'], '[' . $C['uid'] . ']')) {
echo getContents($C['content'], $C['html'], $keyword);
} else {
$isSECRETCHECK = false;
echo '<i class="fa fa-lock-o"></i> <a href="' . $g['cment_modify'] . $C['uid'] . '" onclick="return cmentHidden(\'' . $C['id'] . '\',\'' . $C['uid'] . '\',event);">비공개 댓글입니다.</a>';
}
echo '</div>';
echo '<div class="clearfix">
<div class="pull-left" style="margin-top:4px;">
<a class="small live-tooltip" href="#comments-' . $C['uid'] . '-reply" data-parent="#comments-' . $C['uid'] . '" data-toggle="collapse">답글 <span id="one-num-' . $C['uid'] . '">' . $C['oneline'] . '</span> <i class="fa fa-sort-desc"></i></a>
<span class="thumb-wrap" style="margin-left:15px;">
<a class="live-tooltip cmt-tools" title="공감" data-toggle="tooltip" id="good-' . $C['uid'] . '"><i class="fa fa-thumbs-up fa-sm"></i> <span id="good-num-' . $C['uid'] . '">' . $C['score1'] . '</span></a>
<a class="live-tooltip cmt-tools" title="비공감" data-toggle="tooltip" id="bad-' . $C['uid'] . '" style="margin-left:7px;"><i class="fa fa-thumbs-down fa-sm"></i> <span id="bad-num-' . $C['uid'] . '">' . $C['score2'] . '</span></a>
</span>
//.........这里部分代码省略.........
示例5: while
<th scope="col">브라우져</th>
<th scope="col">키워드</th>
<th scope="col">접속시간</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<?php
$j = 0;
while ($R = db_fetch_array($RCD)) {
$j++;
$_engine = getSearchEngine($R['referer']);
$_outkey = getKeyword($R['referer']);
$_browse = getBrowzer($R['agent']);
$_domain = getDomain($R['referer']);
$_mobile = isMobileConnect($R['agent']);
?>
<tr class="rooptd<?php
echo ++$i % 2;
?>
">
<td class="check"><input type="checkbox" name="members[]" value="<?php
echo $R['uid'];
?>
" /></td>
<td class="number"><?php
echo $NUM - (($p - 1) * $recnum + $_recnum++);
?>
</td>
<td class="name"><a href="#." onclick="whoisSearch('<?php
示例6: getBrowzer
function getBrowzer($agent)
{
if (isMobileConnect($agent)) {
return 'Mobile';
}
$set = array('MSIE 9', 'MSIE 8', 'MSIE 7', 'MSIE 6', 'Firefox', 'Opera', 'Chrome', 'Safari');
foreach ($set as $val) {
if (strpos('_' . $agent, $val)) {
return $val;
}
}
return '';
}
示例7: _LANG
</th>
<th><?php
echo _LANG('ad035', 'admin');
?>
</th>
</tr>
</thead>
<tbody>
<?php
while ($R = db_fetch_array($RCD)) {
?>
<?php
$_browzer = getBrowzer($R['agent']);
?>
<?php
$_deviceKind = isMobileConnect($R['agent']);
?>
<?php
$_deviceType = getDeviceKind($R['agent'], $_deviceKind);
?>
<tr>
<td><?php
echo $NUM - (($p - 1) * $recnum + $_rec++);
?>
</td>
<td><?php
echo $R['ip'];
?>
</td>
<td class="rb-url"><a href="<?php
echo $R['referer'];