static function check_filters() { if (!self::check_filter(self::$uri_filter, $_SERVER['REQUEST_URI'])) { return false; } if (!self::check_filter(self::$host_filter, $_SERVER['HTTP_HOST'])) { return false; } if (!self::check_filter(self::$ip_filter, CMS::ip())) { return false; } return true; }
public static function getRowIp($refer, $ip) { if ($refer != "unknown") { return CMS::ip($refer, 1, 2); } // if ($ip != "") // return "<br><a target=_blank href=\"?item=ip&qs=" . $ip . "\">через proxy</a>"; /* $content = ''; if ($refer != "unknown") $content .= "<a target=_blank href=\"?item=ip&qs=" . $refer . "\">" . $refer . "</a>"; else $content .= "<font color=grey>неизвестно</font>"; if ($ip != "") $content .= "<br><a target=_blank href=\"?item=ip&qs=" . $ip . "\">через proxy</a>"; return $content;*/ }
?> <div class="panel panel-default"> <div class="panel-heading"> <h4><?php echo $this->title; ?> </h4> </div> <div class="panel-body panel-body-static"> <ul class="list-unstyled"> <li>Тарифный план: <span class="label label-default"><?php echo $package->value->shop[0]->plan; ?> </span></li> <li><i class="flaticon-email"></i> <?php echo Yii::app()->user->getName() . ' ' . CMS::ip($ip); ?> </li> <li><i class="<?php echo $browserIcon; ?> "></i> <?php echo $browser->getBrowser(); ?> (<?php echo $browser->getVersion(); ?> )</li> <li><i class="<?php echo $platformIcon; ?>
<li> <?php $ip = CMS::ip($data->ip_address); $userName = !is_null($data->user) ? $data->user->login : Yii::t('core', 'CHECKUSER', 0); ?> <a href="javascript:void(0)" class="exp subClosed"> <img width="36" src="<?php echo $data->user_avatar; ?> " alt="<?php echo $userName; ?> " /> <span class="contactName"> <strong><?php echo $userName; ?> </strong> <i><?php echo Yii::t('core', 'CHECKUSER', (int) $data->user_type); ?> </i> </span> <span class="flag"><?php if ($ip) { echo $ip; } else { echo '<span class="icon-question" title="' . $data->ip_address . '"></span>'; }