public function _initializeModule()
 {
     $this->getModuleConfig();
     $moduleinfo = new Clansuite_ModuleInfoController();
     $modules_info_array = $moduleinfo->getModuleInformations('Forum');
     array_pop($modules_info_array);
     foreach ($modules_info_array as $modules_info) {
         $infokey = strtolower($modules_info['name'] . '_info');
         $packagekey = strtolower($modules_info['name'] . '_package');
         self::$moduleInfos = array('Modul' => ucfirst($modules_info['name']), 'Author' => utf8_encode($modules_info['info'][$infokey]['author']), 'Version' => $modules_info['info'][$packagekey]['version']);
     }
 }
 /**
  * Show all templates for a certain module
  */
 public function action_admin_showmoduletemplates()
 {
     // Set Pagetitle and Breadcrumbs
     Clansuite_Breadcrumb::add(_('Editor'), '/templatemanager/admin/showmoduletemplates');
     // Incomming Variables
     $modulename = $this->request->getParameter('modulename', 'GET');
     $modulename = strtolower(stripslashes($modulename));
     $view = $this->getView();
     $view->assign('templateeditor_modulename', $modulename);
     $view->assign('templates', Clansuite_ModuleInfoController::getTemplatesOfModule($modulename));
     $this->display();
 }
 public function action_admin_modulemenueditor()
 {
     $modulenames = Clansuite_ModuleInfoController::getModuleNames(false, true);
     // create a new form
     $form = new Clansuite_Form('module_select_dropdown_form', 'post', '/menu/admin/modulemenu_edit');
     // select dropdown for modules
     $form->addElement('select')->setName('menu_select_form[modulename]')->setLabel(_('Module'))->setOptions($modulenames);
     // add the buttonbar
     $form->addElement('buttonbar')->getButton('cancelbutton')->setCancelURL('index.php?mod=menu&sub=admin');
     // assign the html of the form to the view
     $this->getView()->assign('module_select_dropdown_form', $form->render());
     $this->display();
 }
 public function action_admin_firsttimeinstall()
 {
     // Set Pagetitle and Breadcrumbs
     Clansuite_Breadcrumb::add(_('Show'), '/modulemanager/admin/firsttimeinstall');
     // Set Layout Template
     $this->getView()->setLayoutTemplate('index.tpl');
     $actions = array();
     $lastModuleID = 0;
     if ($this->request->getParameter('xinst') == 1) {
         $tables = array('cs_acl_actions', 'cs_acl_rules', 'cs_modules');
         // tables truncate
         Clansuite_DoctrineTools::truncateTables($tables);
         $moduleinfo = new Clansuite_ModuleInfoController();
         $modules_info_array = $moduleinfo->getModuleInformations();
         array_pop($modules_info_array);
         #Clansuite_Debug::printR( $modules_info_array );
         foreach ($modules_info_array as $modules_info) {
             $lastModuleID = self::createModulFirstTime($modules_info);
             #Clansuite_Debug::printR( $lastModuleID );
             self::createModulAclFirstTime($modules_info, $lastModuleID);
         }
     }
     // Prepare the Output
     $this->display();
 }
 public function action_admin_list()
 {
     // get themes
     $themes = Clansuite_Theme::getThemeDirectories();
     // get modules
     #$modules = Clansuite_ModuleInfoController::getModuleNames(true);
     $modules = Clansuite_ModuleInfoController::loadModuleInformations();
     // pop the counter off the end
     array_pop($modules);
     $view = $this->getView();
     $view->assign('themes', $themes);
     $view->assign('modules', $modules);
     $view->assign('cores', array());
     // @todo fetch core language items
     $this->display();
 }