$sel) { // Now you can never deselect the admin module, bah!!! ;-) if (($sel == 'Y') || ($mod == 'admin')) { // Add module to queue array_push($MODs, $mod); } // END - if } // END - foreach // Implode array to string and remove posted mod array setPostRequestElement('rewrite_skip', implode(':', $MODs)); unsetPostRequestElement('mod'); // Save settings adminSaveSettingsFromPostData(); } else { // Explode all modules $MODs = explode(':', getConfig('rewrite_skip')); // Load existing modules and generate TR rows for the template $result = sqlQuery("SELECT `module`, `title` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `module` ASC", __FILE__, __LINE__); $OUT = ''; while ($content = sqlFetchArray($result)) { // Already registered module? if (in_array($content['module'], $MODs)) { // Found $y = ' checked="checked"'; $n = ''; } else { // Not found $y = ''; $n = ' checked="checked"'; } // Remember data in array for the dynamic row template $content['y_default'] = $y; $content['n_default'] = $n; // Load template and switch colors $OUT .= loadTemplate('admin_config_rewrite_rows', TRUE, $content); } // END - while // Free memory sqlFreeResult($result); // Load main template loadTemplate('admin_config_rewrite', FALSE, $OUT); } // [EOF] ?>