Knowledgebase



 Categories





 Dimofinf Mobile


Subscribe now to Dimofinf Mobile and enjoy a wide range of premium services. You will receive our SMS text messages wherever you are for a very low cost! More


 Currency Converter


  • Currency
  • US$ Amount

Matrices



  • $dimofinf->userinfo

This matrix includes the current user information after signing in and this information comes from the 'user' table and its main parts are:

      -  usergroupid: the user group ID.
      -  userid: the user ID registered in the database.
      -  username: the username used to log in.
      -  usertitle: the user title.
      -  email: the user email.
      -  permissions: the user's permissions according to his user group.
      -  styleid: the user's default style ID.
      -  displayname: the user's display name.
      -  gender: the user's gender; 0 for male and 1 for female.
      -  token: includes the user's secret security code used when the user sends forms to the website.

To get any additional information related to the user from the 'userprofile' table linked to the 'user' table, the following prefixes need to be defined at the beginning of the PHP file:

PHP :
{* php buffer start *} define('ADD_USER_AVATAR', 0x02);
define('ADD_USER_PROFILE', 0x04); 
{* php buffer end *}

   -  When the first prefix is identified, it gets information about the user's avatar, for example:

      -  avatarpath: the avatar path.
      -  title: the avatar title.

   -  The second prefix, when defined, gets information from the 'userprofile' table which includes optional user data and the most important parts of this table are:

      -  pusername: the public user name used in the profile URL (if assigned).
      -  country: the country code which the user comes from and it is a two letter code. For example, SA and EG.
      -  city: the user's city.
      -  verified: an option chosen by the administration and it indicates whether the user is trusted or not.
      -  privacy: determines the user's profile privacy when it is viewed.
      -  bio: a summary about the user
      -  views: the number of views for the user's profile.
      -  phone: the user's phone number.

  • $dimofinf->GPC

This is the matrix which includes inputs after cleansing through the object '$dimofinf->input' and the input value is called by using its name as in the following example:

PHP :
{* php buffer start *} $dimofinf->GPC['media'] 
{* php buffer end *}

  • $dimofinf->config

This matrix includes the variables of the file 'include/config.php' and to get a variable value from the config file, it is called as follows:

PHP :
{* php buffer start *} $dimofinf->config['Databasename'] 
{* php buffer end *}

  • $dimofinf->ugp_bf

This matrix includes the bitfield permissions for every user group as every group is stored with its ID index number and its value forms a matrix which includes the names and bitfield values related to the permissions of this group and this matrix can be got from the datastore.

  • $dimofinf->options

This matrix includes all the settings and values of it whether for Dimofinf or the plugins and it can be called as follows:

PHP :
{* php buffer start *} $dimofinf->options['pingbacksactive'] 
{* php buffer end *}

This matrix can be got from the datastore.

  • $dimofinf->languagecache

This matrix includes the activated languages in Dimofinf within the 'language' table in the database where every language has its data like the language code and encoding. This matrix can be got from the datastore.

  • $dimofinf->stylecache

This matrix includes the activated styles and their data in Dimofinf in the 'style' table in the database. The highlights of this data are the style size and title. This matrix can be got from the datastore.

  • $dimofinf->modulesections

This matrix includes all sections and their data from the different activated modules in Dimofinf. The highlights of this data for every section are the section name, its ID number and its permissions. This matrix can be got from the datastore.

  • $dimofinf->usergroupcache

This matrix includes the membership groups and their data; titles and permissions. This matrix can be got from the datastore.


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Objects (Views: 451)

These objects have already been defined in the system and you don't need to redefine them...



Online