Global Constants

There are some global constants that are always available to you on every page of codoforum.

All these variables are stored in a variable named 'codo_defs'.

  codo_defs = {

     url //URL to the codoforum index
     duri //URL to the data directory i.e sites/default
     def_theme //URL to the 'default' theme NOT current theme
     logged_in //'yes' -> logged in; else -> 'no'
     token //token to be used with forms or AJAX requests for CSRF
     uid //userid of user. if guest it will be '0'
© CODOFORUM 2023. All Rights Reserved.