Index: /branches/feature-module-update/html/upgrade/index.php
===================================================================
--- /branches/feature-module-update/html/upgrade/index.php	(revision 16644)
+++ /branches/feature-module-update/html/upgrade/index.php	(revision 16841)
@@ -21,4 +21,6 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
+//$_SERVER['REQUEST_METHOD'] = 'POST';
+//$_POST['mode'] = 'products_list';
 
 if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
@@ -30,20 +32,16 @@
 require_once '../require.php';
 require_once '../admin/require.php';
-require_once DATA_PATH . 'module/Services/JSON.php';
-require_once DATA_PATH . 'module/Request.php';
-require_once DATA_PATH . "module/Tar.php";
 
 // }}}
 // {{{ generate page
 
-$objPage = lfPageFactory();
+$mode = isset($_POST['mode']) ? $_POST['mode'] : '';
+$objPage = lfPageFactory($mode);
 $objPage->init();
 register_shutdown_function(array($objPage, "destroy"));
-$objPage->process();
+$objPage->process($mode);
 
 
-function lfPageFactory() {
-    $mode = isset($_POST['mode']) ? $_POST['mode'] : '';
-
+function lfPageFactory($mode) {
     $prefix = 'LC_Page_Upgrade_';
     $file   = CLASS_PATH . "pages/upgrade/${prefix}";
@@ -51,8 +49,4 @@
 
     switch ($mode) {
-    case 'echo_key':
-        $file  .= 'EchoKey.php';
-        $class .= 'EchoKey';
-        break;
     case 'products_list':
         $file  .= 'ProductsList.php';
