Index: contrib/drush_terminal/drush_terminal.terminal.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/terminal/contrib/drush_terminal/Attic/drush_terminal.terminal.inc,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 drush_terminal.terminal.inc
--- contrib/drush_terminal/drush_terminal.terminal.inc	12 Jan 2010 09:47:27 -0000	1.1.2.1
+++ contrib/drush_terminal/drush_terminal.terminal.inc	16 Feb 2010 03:26:55 -0000
@@ -22,6 +22,7 @@
   $php = variable_get('drush_terminal_php', NULL);
   $drush = variable_get('drush_terminal_drush', NULL);
   $root = variable_get('drush_terminal_root', NULL);
+  $phpargs = variable_get('drush_terminal_phpargs', '-d safe_mode=off');
   if (!isset($php, $drush, $root)) {
     echo t('You must visit admin/settings/drush_terminal and configure the module.');
     exit;
@@ -30,7 +31,7 @@
   // Invoke Drush.
   $args = implode(' ', $args);
   $output = array();
-  exec("$php $drush -r '$root' " . $args, $output);
+  exec("$php $phpargs $drush -r '$root' " . $args, $output);
   $output = implode("\n", $output);
   echo $output;
 }
Index: contrib/drush_terminal/drush_terminal.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/terminal/contrib/drush_terminal/Attic/drush_terminal.module,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 drush_terminal.module
--- contrib/drush_terminal/drush_terminal.module	12 Jan 2010 09:47:27 -0000	1.1.2.1
+++ contrib/drush_terminal/drush_terminal.module	16 Feb 2010 03:26:55 -0000
@@ -40,5 +40,11 @@
     '#default_value' => variable_get('drush_terminal_root', dirname(realpath('index.php'))),
     '#required' => TRUE,
   );
+  $form['drush_terminal_phpargs'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Additional PHP arguments'),
+    '#description' => t('An optional list of additional PHP arguments to be injected right after the PHP tag call. With "-d safe_mode=off", we disable the PHP safe mode, which is one of the requirement in order for Drush to run.'),
+    '#default_value' => variable_get('drush_terminal_phpargs', '-d safe_mode=off'),
+  );
   return system_settings_form($form);
 }
Index: contrib/drush_terminal/drush_terminal.install
===================================================================
RCS file: contrib/drush_terminal/drush_terminal.install
diff -N contrib/drush_terminal/drush_terminal.install
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ contrib/drush_terminal/drush_terminal.install	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,16 @@
+// $Id$
+
+/**
+ * @file
+ * Provides the uninstall hook for the Drush Terminal.
+ */
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function drush_terminal_uninstall() {
+  variable_del('drush_terminal_php');
+  variable_del('drush_terminal_drush');
+  variable_del('drush_terminal_root');
+  variable_del('drush_terminal_phpargs');
+}
