--- original_import_html.module	2006-09-14 02:05:42.000000000 -0700
+++ import_html.module	2006-10-12 23:33:20.000000000 -0700
@@ -659,6 +659,42 @@ function import_html_page() {
   );
 
 
+      // Taxonomy box:  added by L0rne
+    if ($taxonomy = module_invoke('taxonomy', 'form_all', 1)) {
+      $form['htmlsource']['import_html_import_category'] = array(
+        '#type' => 'select',
+        '#title' => t('Add imported nodes to the following category(s)'),
+		'#default_value' => variable_get('import_html_import_category', ""),
+        '#prefix' => '<div class="criterion">',
+        '#size' => 10,
+        '#suffix' => '</div>',
+        '#options' => $taxonomy,
+        '#multiple' => TRUE,
+      );
+    }
+	
+	// Status selection:  added by L0rne
+  $form['htmlsource']['import_html_import_status'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Imported nodes are Published?'),
+    '#default_value' => variable_get('import_html_import_status', ""),
+    '#description' => t("
+      Sets the node status.  Check to have nodes published. 
+    "),
+  );
+  
+	// promote selection:  added by L0rne
+  $form['htmlsource']['import_html_import_promote'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Imported Nodes are Promoted to front page?'),
+    '#default_value' => variable_get('import_html_import_promote', ""),
+    '#description' => t("
+      Sets whether or not imported nodes are promoted to the front page.
+    "),
+  );
+	
+
+
   $form["htmlsource"][] = array (
     '#type' => 'submit',
     '#value' => t('Next'
@@ -757,6 +793,22 @@ function import_html_list_filesystem_cal
     variable_set('import_html_import_site_prefix', $_POST['edit']['import_html_import_site_prefix']);
   }
 
+  // L0rne // set variable for category taxonomy term
+   if($_POST['edit']['import_html_import_category']){
+    variable_set('import_html_import_category', $_POST['edit']['import_html_import_category']);
+  }
+  
+  // L0rne // set variable for status of imported nodes
+   if($_POST['edit']['import_html_import_status']){
+    variable_set('import_html_import_status', $_POST['edit']['import_html_import_status']);
+  }
+  
+    // L0rne // set variable for promotion of imported nodes
+   if($_POST['edit']['import_html_import_promote']){
+    variable_set('import_html_import_promote', $_POST['edit']['import_html_import_promote']);
+  }
+
+
   $current_subsection = ensure_trailing_slash($_POST['edit']['import_html_current_subsection']);
   $current_subsection = preg_replace('|^/|', '', $current_subsection);
   variable_set('import_html_current_subsection', $current_subsection);
@@ -1217,6 +1269,20 @@ function import_html_import_files()
             drupal_set_message(t("Inserting New Node." . l($node->path, $node->path)));
             node_submit($node); // Submit doesn't actually save, it just fills in extra fields
           }
+		  
+			  // added by L0rne  
+			  // add publishing options and taxonomy to new node
+
+		  $node_status = variable_get('import_html_import_status', "");
+		  $node->status = $node_status;
+		  
+		  $node_promote = variable_get('import_html_import_promote', "");
+		  $node->promote = $node_promote;
+	
+		  $cat = variable_get('import_html_import_category', "");
+		  $node->taxonomy[] = $cat;
+		  
+		  
           node_save($node);
           // Had to wait until I had an ID to do this
           import_html_add_node_navigation($node);
