2.1  Important variables provided by initialize.php. Useful when using the SDK.

  1. $dbhw : Link to the forum master data basis.

  2. $dbhr : Link to the forum slave data basis (if any)

  3. $md_db_extension : Name extension of the forum data basis currently in process

    Should your forum be configured to use several data bases, the name extension of the forum data basis will be like forum_$md_db_extension

  4. Constante md_one_database : Indicates whether the forum uses one or several databases

  5. Constante md_modrewrite : Variable precising if the forum modrewriting is activated

  6. $md_forum_id : ID of the forum in process

  7. $md_forum_url : URL of the forum in process

  8. $md_cat_id : ID of the category in process

  9. $md_cat_url : URL of the category in process

  10. $md_subcat_id : ID of the sub category in process

  11. $md_subcat_url : URL of the sub category in process

  12. $md_topic_id : ID of the topic in process

  13. $md_post_id : ID of the post in process

  14. $md_user : Name of the user in process

  15. $md_user_id : ID of the user in process

  16. $md_user_ip : IP address of the machine

  17. $md_user_proxy_ip : IP behind the proxy server (if this is a transparent proxy)

  18. $md_password : password of the user in process (format md5)

  19. $md_topic_per_page : Default number of topics per page for the topic list of a category


2 Important variables and “simple” functions2.2 Essential Information