IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Api
  • ApiCode
  • Attach
  • Cache
  • Cloud
  • Convert
  • Credit
  • Database
  • DateTime
  • Env
  • File
  • Ftp
  • IBOS
  • Image
  • Mail
  • Module
  • Org
  • Page
  • PHPExcel
  • String
  • System
  • Upgrade
  • Url
  • WebSite
  • Xml
  • XMLParse

Class Env

Namespace: application\core\utils
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/utils/Env.php

Methods summary

public static string
# getClientIp( )

获取当前用户的IP

获取当前用户的IP

Returns

string
public static boolean
# ipBanned( string $onlineip )

ip限制访问

ip限制访问

Parameters

$onlineip
$ip 要检查的ip地址

Returns

boolean
返回结果
public static boolean
# checkInMobile( )

检查是否以手机进入

检查是否以手机进入

Returns

boolean
是否以手机进入
public static boolean
# checkInApp( )

检查是否以手机APP进入

检查是否以手机APP进入

Returns

boolean
是否以手机APP进入
public static boolean
# checkInDashboard( )

检查当前路由是否在后台

检查当前路由是否在后台

Returns

boolean
当前路由是否在后台

Author

gzwwb
public static 处理后的重定向
# referer( string $default = '' )

刷新重定向

刷新重定向

Parameters

$default
默认返回值

Returns

处理后的重定向
public static mixed
# getRequest( string $key, string $type = 'GP', $defaultValue = null )

取出 get, post, cookie 当中的某个变量

取出 get, post, cookie 当中的某个变量

Parameters

$key
$k key 值
$type
类型 默认是GP 即为 GET/POST
$defaultValue

Returns

mixed
public static string
# formHash( string $specialadd,… )

获取用户加密的8位身份标识字符串

获取用户加密的8位身份标识字符串

Parameters

$specialadd,…

Returns

string
public static mixed
# submitCheck( string $var, integer $allowGet = 0 )

检查提交来路

检查提交来路

Parameters

$var
提交的变量
$allowGet
允许$_GET方式 默认为0

Returns

mixed

返回true变量正确提交,返回false没有这个变量,不是提交状态,错误提示 即提交来源非法

public static array
# getSystemInfo( )

系统信息获取

系统信息获取

Returns

array
public static mixed
# getSocketOpen( string $hostName, string & $errno, string & $errstr, integer $port = 80, integer $timeout = 15 )

打开一个socket连接,返回该对象以供后续处理

打开一个socket连接,返回该对象以供后续处理

Parameters

$hostName
主机名
$errno
错误编号
$errstr
错误描述字符串
$port
端口
$timeout
超时连接

Returns

mixed
打开的对象
public static string
# getVisitorClient( )

获取当前访问者的客户端类型

获取当前访问者的客户端类型

Returns

string
public static
# getFromClient( $type = 0, $module = 'weibo' )
public static
# iExit( string $msg = 0 )

格式化header输出退出信息

格式化header输出退出信息

Parameters

$msg
public static boolean
# isHttps( )

是否https链接

是否https链接

Returns

boolean
public static string
# getSiteUrl( boolean $isHttps = false, string $sitePath = '' )

获取站点url

获取站点url

Parameters

$isHttps
$sitePath

Returns

string
public static string
# getScriptUrl( )

获取当前脚本url

获取当前脚本url

Returns

string

Throws

CException
IBOS open source API documentation generated by ApiGen