thomascube
2008-08-29 48aff91f7edf261aa45c567f10ee69daea539ae0
Moved code block to a more appropriate position + codestyle

1 files modified
16 ■■■■■ changed files
index.php 16 ●●●●● patch | view | raw | blame | history
index.php
@@ -2,7 +2,7 @@
/*
 +-------------------------------------------------------------------------+
 | RoundCube Webmail IMAP Client                                           |
 | Version 0.2-20080620                                                    |
 | Version 0.2-20080829                                                    |
 |                                                                         |
 | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland                   |
 |                                                                         |
@@ -170,6 +170,12 @@
  $OUTPUT->reset();
  $OUTPUT->send();
}
// save preference value
else if ($RCMAIL->action == 'save-pref') {
  $RCMAIL->user->save_prefs(array(get_input_value('_name', RCUBE_INPUT_POST) => get_input_value('_value', RCUBE_INPUT_POST)));
  $OUTPUT->reset();
  $OUTPUT->send();
}
// map task/action to a certain include file
@@ -200,14 +206,6 @@
    'add-identity'  => 'edit_identity.inc',
  )
);
// save preference value
if ($RCMAIL->action=='save-pref')
  {
  $USER->save_prefs(array(get_input_value('_name', RCUBE_INPUT_POST) => get_input_value('_value', RCUBE_INPUT_POST)));
  $OUTPUT->reset();
  $OUTPUT->send();
  }
// include task specific functions
include_once 'program/steps/'.$RCMAIL->task.'/func.inc';