金沙国际娱城平台-欢迎莅临金沙国际娱城平台

<big id="te8ri"><strike id="te8ri"><tt id="te8ri"></tt></strike></big><track id="te8ri"><ruby id="te8ri"></ruby></track>
<pre id="te8ri"></pre>

  • <acronym id="te8ri"><label id="te8ri"><xmp id="te8ri"></xmp></label></acronym>

      <p id="te8ri"></p>
      <pre id="te8ri"></pre>
        Translations of this page: en bg cs de fi fr hu it ja pl ru tr zh

        PunBB 1.3 Global Variables

        There is a number of forum variables available on every forum page. These variables are used for the page generation. To use them one has to include the FORUM_ROOT.'include/common.php' file first.

        $forum_user

        This variable correlates an associative array with some information about a user (user id, group id, username, profile options, user permissions, etc.) For example:

        • $forum_user['id'] contains user's id;
        • $forum_user['language'] contains the language selected in user's profile;
        • $forum_user['g_post_topics'] shows whether the user can post topics or not.

        $forum_config

        This variable correlates an associative array with all configuration options (board title, sef scheme, etc.) For example:

        • $forum_config['o_default_lang'] contains the default language of the forum;
        • $forum_config['o_avatars_dir'] is the path to the directory, where avatars are saved.

        $forum_db

        This variable is an instance of the database layer. It is used to perform SQL queries. See the database helper description for details.


        Personal Tools
          金沙国际娱城平台