home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / dotproject / modules / forums / setup.php < prev    next >
Encoding:
PHP Script  |  2003-12-21  |  826 b   |  38 lines

  1. <?php
  2. /*
  3.  * Name:      Forums
  4.  * Directory: forums
  5.  * Version:   1.0.0
  6.  * Class:     core
  7.  * UI Name:   Forums
  8.  * UI Icon:   communicate.gif
  9.  */
  10.  
  11. // MODULE CONFIGURATION DEFINITION
  12. $config = array();
  13. $config['mod_name'] = 'Forums';
  14. $config['mod_version'] = '1.0.0';
  15. $config['mod_directory'] = 'forums';
  16. $config['mod_setup_class'] = 'CSetupForums';
  17. $config['mod_type'] = 'core';
  18. $config['mod_ui_name'] = 'Forums';
  19. $config['mod_ui_icon'] = 'communicate.gif';
  20. $config['mod_description'] = '';
  21. $config['mod_config'] = true;            // show 'configure' link in viewmods
  22.  
  23. if (@$a == 'setup') {
  24.     echo dPshowModuleConfig( $config );
  25. }
  26.  
  27. class CSetupForums {
  28.  
  29.     function configure() {        // configure this module
  30.     global $AppUI;
  31.         $AppUI->redirect( 'm=forums&a=configure' );    // load module specific configuration page
  32.           return true;
  33.     }
  34.  
  35. }
  36.  
  37. ?>
  38.