Changeset 16841


Ignore:
Timestamp:
2007/11/29 00:59:36 (16 years ago)
Author:
adachi
Message:

ログ用修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/upgrade/index.php

    r16644 r16841  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
     23//$_SERVER['REQUEST_METHOD'] = 'POST'; 
     24//$_POST['mode'] = 'products_list'; 
    2325 
    2426if ($_SERVER['REQUEST_METHOD'] !== 'POST') { 
     
    3032require_once '../require.php'; 
    3133require_once '../admin/require.php'; 
    32 require_once DATA_PATH . 'module/Services/JSON.php'; 
    33 require_once DATA_PATH . 'module/Request.php'; 
    34 require_once DATA_PATH . "module/Tar.php"; 
    3534 
    3635// }}} 
    3736// {{{ generate page 
    3837 
    39 $objPage = lfPageFactory(); 
     38$mode = isset($_POST['mode']) ? $_POST['mode'] : ''; 
     39$objPage = lfPageFactory($mode); 
    4040$objPage->init(); 
    4141register_shutdown_function(array($objPage, "destroy")); 
    42 $objPage->process(); 
     42$objPage->process($mode); 
    4343 
    4444 
    45 function lfPageFactory() { 
    46     $mode = isset($_POST['mode']) ? $_POST['mode'] : ''; 
    47  
     45function lfPageFactory($mode) { 
    4846    $prefix = 'LC_Page_Upgrade_'; 
    4947    $file   = CLASS_PATH . "pages/upgrade/${prefix}"; 
     
    5149 
    5250    switch ($mode) { 
    53     case 'echo_key': 
    54         $file  .= 'EchoKey.php'; 
    55         $class .= 'EchoKey'; 
    56         break; 
    5751    case 'products_list': 
    5852        $file  .= 'ProductsList.php'; 
Note: See TracChangeset for help on using the changeset viewer.