Beispiel #1
0
 //check for a setup file
 $ok = file_exists(W2P_BASE_DIR . '/modules/' . $row['mod_directory'] . '/setup.php');
 if ($ok) {
     include W2P_BASE_DIR . '/modules/' . $row['mod_directory'] . '/setup.php';
     // check for upgrades
     if (version_compare($config['mod_version'], $row['mod_version']) == 1 && $canEdit) {
         $s .= ' | <a href="' . $query_string . '&cmd=upgrade" onclick="return window.confirm(' . "'" . $AppUI->_('Are you sure?') . "'" . ');" >' . $AppUI->_('upgrade') . '</a>';
     }
     // check for configuration
     if (isset($config['mod_config']) && $config['mod_config'] == true && $canEdit) {
         $s .= ' | <a href="' . $query_string . '&cmd=configure">' . $AppUI->_('configure') . '</a>';
     }
 }
 $s .= '</td>';
 $s .= '<td>';
 $views = $module->getCustomizableViews($row['mod_directory']);
 if (count($views)) {
     // TODO: Should we have a 'reset to default' for each of these?
     foreach ($views as $view) {
         $s .= '<a href="?m=system&u=modules&a=addedit&mod_id=' . $row['mod_id'] . '&v=' . $view . '">';
         $s .= $view;
         $s .= '</a><br />';
     }
 }
 $s .= '</td>';
 $s .= $htmlHelper->createCell('na', $row['mod_type']);
 $s .= $htmlHelper->createCell('na', $row['mod_version']);
 $s .= $htmlHelper->createCell('na', $row['mod_ui_name']);
 $s .= $htmlHelper->createCell('mod_ui_icon', $row['mod_ui_icon']);
 $s .= '<td class="data _status">';
 $s .= '<img src="' . w2PfindImage('/obj/' . ($row['mod_ui_active'] ? 'dotgreen.gif' : 'dotredanim.gif')) . '" alt="" />&nbsp;';