Changeset 16841
- Timestamp:
- 2007/11/29 00:59:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/html/upgrade/index.php
r16644 r16841 21 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 22 */ 23 //$_SERVER['REQUEST_METHOD'] = 'POST'; 24 //$_POST['mode'] = 'products_list'; 23 25 24 26 if ($_SERVER['REQUEST_METHOD'] !== 'POST') { … … 30 32 require_once '../require.php'; 31 33 require_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";35 34 36 35 // }}} 37 36 // {{{ generate page 38 37 39 $objPage = lfPageFactory(); 38 $mode = isset($_POST['mode']) ? $_POST['mode'] : ''; 39 $objPage = lfPageFactory($mode); 40 40 $objPage->init(); 41 41 register_shutdown_function(array($objPage, "destroy")); 42 $objPage->process( );42 $objPage->process($mode); 43 43 44 44 45 function lfPageFactory() { 46 $mode = isset($_POST['mode']) ? $_POST['mode'] : ''; 47 45 function lfPageFactory($mode) { 48 46 $prefix = 'LC_Page_Upgrade_'; 49 47 $file = CLASS_PATH . "pages/upgrade/${prefix}"; … … 51 49 52 50 switch ($mode) { 53 case 'echo_key':54 $file .= 'EchoKey.php';55 $class .= 'EchoKey';56 break;57 51 case 'products_list': 58 52 $file .= 'ProductsList.php';
Note: See TracChangeset
for help on using the changeset viewer.