您当前的位置:首页 > 网站建设笔记 >

discuzX3.3 打印discuz_application类设置$this->var变量的值

0
//_init_env()方法执行完,$this->var变量的值
$this->var = Array
(
    [uid] => 0
    [username] => 
    [adminid] => 0
    [groupid] => 1
    [sid] => 
    [formhash] => 
    [connectguest] => 0
    [timestamp] => 1496968640
    [starttime] => 1496968640.9077
    [clientip] => 127.0.0.1
    [remoteport] => 50437
    [referer] => 
    [charset] => 
    [gzipcompress] =>
    [authkey] =>
    [timenow] => Array()

    [widthauto] => 0
    [disabledwidthauto] => 0
    [PHP_SELF] => /forum.php
    [siteurl] => http://www.pcool.com/
    [siteroot] => /
    [siteport] => 
    [pluginrunlist] => Array()
    [config] => Array()
    [setting] => Array()
    [member] => Array()
    [group] => Array()
    [cookie] => Array()
    [style] => Array()
    [cache] => Array()
    [session] => Array()
    [lang] => Array()
    [my_app] => Array()
    [my_userapp] => Array()

    [fid] => 0
    [tid] => 0
    [forum] => Array()
    [thread] => Array()
    [rssauth] => 
    [home] => Array()
    [space] => Array()
    [block] => Array()
    [article] => Array()
    [action] => Array(
      [action] => 2
      [fid] => 0
      [tid] => 0
    )
    [mobile] => 
    [notice_structure] => Array(
      [mypost] => Array(
        [0] => post
        [1] => pcomment
        [2] => activity
        [3] => reward
        [4] => goods
        [5] => at
      )
      [interactive] => Array(
        [0] => poke
        [1] => friend
        [2] => wall
        [3] => comment
        [4] => click
        [5] => sharenotice
      )
      [system] => Array(
        [0] => system
        [1] => myapp
        [2] => credit
        [3] => group
        [4] => verify
        [5] => magic
        [6] => task
        [7] => show
        [8] => group
        [9] => pusearticle
        [10] => mod_member
        [11] => blog
        [12] => article
      )
      [manage] => Array(
        [0] => mod_member
        [1] => report
        [2] => pmreport
      )
      [app] => Array()
    )
    [mobiletpl] => Array(
      [1] => mobile
      [2] => touch
      [3] => wml
      [yes] => mobile
    )

    [basescript] => forum
    [basefilename] => forum.php
    [isHTTPS] => 
    [scheme] => http
)


//_init_config()方法执行完,$this->var变量的值
$this->var = Array
(
    [uid] => 0
    [username] => 
    [adminid] => 0
    [groupid] => 1
    [sid] => 
    [formhash] => 
    [connectguest] => 0
    [timestamp] => 1496978660
    [starttime] => 1496978660.2588
    [clientip] => 127.0.0.1
    [remoteport] => 50436
    [referer] => 
    [charset] => 
    [gzipcompress] => 
    [authkey] => 
    [timenow] => Array()

    [widthauto] => 0
    [disabledwidthauto] => 0
    [PHP_SELF] => /forum.php
    [siteurl] => http://www.pcool.com/
    [siteroot] => /
    [siteport] => 
    [pluginrunlist] => Array()

    //_init_config()方法设置config单元的值
    [config] => Array(
      [db] => Array(
        [1] => Array(
          [dbhost] => localhost
          [dbuser] => root
          [dbpw] => root
          [dbcharset] => utf8
          [pconnect] => 0
          [dbname] => pinku
          [tablepre] => bbs_
        )
        [slave] =>
        [common] => Array(
          [slave_except_table] =>
        )
      )
      [memory] => Array(
        [prefix] => qUR9F2_
        [redis] => Array(
          [server] =>
          [port] => 6379
          [pconnect] => 1
          [timeout] => 0
          [requirepass] =>
          [serializer] => 1
        )
        [memcache] => Array(
          [server] =>
          [port] => 11211
          [pconnect] => 1
          [timeout] => 1
        )
        [apc] => 0
        [apcu] => 0
        [xcache] => 0
        [eaccelerator] => 0
        [wincache] => 0
        [yac] => 0
        [file] => Array(
          [server] => data/cache/filecache
        )
      )
      [server] => Array(
        [id] => 1
      )
      [download] => Array(
        [readmod] => 2
        [xsendfile] => Array(
          [type] => 0
          [dir] => /down/
        )
      )
      [output] => Array(
        [charset] => utf-8
        [forceheader] => 1
        [gzip] => 0
        [tplrefresh] => 1
        [language] => zh_cn
        [staticurl] => static/
        [ajaxvalidate] => 0
        [iecompatible] => 0
      )
      [cookie] => Array(
        [cookiepre] => hYFg_2132_
        [cookiedomain] =>
        [cookiepath] => /
      )
      [security] => Array(
        [authkey] => 2618faN3hpIEZoCr
        [urlxssdefend] => 1
        [attackevasive] => 0
        [querysafe] => Array(
          [status] => 1
          [dfunction] => Array(
            [0] => load_file
            [1] => hex
            [2] => substring
            [3] => if
            [4] => ord
            [5] => char
          )
          [daction] => Array(
            [0] => @
            [1] => intooutfile
            [2] => intodumpfile
            [3] => unionselect
            [4] => (select
            [5] => unionall
            [6] => uniondistinct
          )
          [dnote] => Array(
            [0] => '/*'
            [1] => '*/'
            [2] => '#'
            [3] => '--'
            [4] => '"'
          )
          [dlikehex] => 1
          [afullnote] => 0
        )
      )
      [admincp] => Array(
        [founder] => 1
        [forcesecques] => 0
        [checkip] => 1
        [runquery] => 0
        [dbimport] => 1
      )
      [remote] => Array(
        [on] => 0
        [dir] => remote
        [appkey] => 62cf0b3c3e6a4c9468e7216839721d8e
        [cron] => 0
      )
      [input] => Array(
        [compatible] => 1
      )
    )

    [setting] => Array()
    [member] => Array()
    [group] => Array()
    [cookie] => Array()
    [style] => Array()
    [cache] => Array()
    [session] => Array()
    [lang] => Array()
    [my_app] => Array()
    [my_userapp] => Array()

    [fid] => 0
    [tid] => 0
    [forum] => Array()
    [thread] => Array()
    [rssauth] =>
    [home] => Array()
    [space] => Array()
    [block] => Array()
    [article] => Array()
    [action] => Array(
      [action] => 2
      [fid] => 0
      [tid] => 0
    )
    [mobile] =>
    [notice_structure] => Array(
      [mypost] => Array(
        [0] => post
        [1] => pcomment
        [2] => activity
        [3] => reward
        [4] => goods
        [5] => at
      )
      [interactive] => Array(
        [0] => poke
        [1] => friend
        [2] => wall
        [3] => comment
        [4] => click
        [5] => sharenotice
      )
      [system] => Array(
        [0] => system
        [1] => myapp
        [2] => credit
        [3] => group
        [4] => verify
        [5] => magic
        [6] => task
        [7] => show
        [8] => group
        [9] => pusearticle
        [10] => mod_member
        [11] => blog
        [12] => article
      )
      [manage] => Array(
        [0] => mod_member
        [1] => report
        [2] => pmreport
      )
      [app] => Array()
    )
    [mobiletpl] => Array(
      [1] => mobile
      [2] => touch
      [3] => wml
      [yes] => mobile
    )
    [basescript] => forum
    [basefilename] => forum.php
    [isHTTPS] => 
    [scheme] => http

    //_init_config()方法给$this->var增加staticurl单元
    [staticurl] => static/
)

建站咨询

咨询热线

微信交流

返回顶部