\n"; } //check that there aren't strange chacacters in action string...' $action = $params['action']; //el action puede traer parametros que deben ser ingresados en params //estos parametros estan luegos del "&" $action = explode('&',$params['action']); foreach($action as $param){ list ($name, $value) = explode('=',$param); $params[$name] = $value; } $action = $action[0]; $params['action'] = $action; if (preg_match ('/[^a-zA-Z0-9_\/]/', $action))$action=''; //set default action... //if (!$action) $action = 'carro/show_index'; if (!$action) $action = 'portal/home'; if($action == 'portal/home'){ $action = 'show_index'; $module ='portal/home'; }else list ($module, $action) = explode('/',$action); //$module = 'portal\home'; //import acions.php from selected moduleç if (isset($_REQUEST["testmode"])){ error_reporting (E_ALL); //print_r($params); } if (isset ($_REQUEST["debug"])){ echo (" module: " . MODULES_DIR.$module . SLASH_TYPE. "actions" . SLASH_TYPE . "actions.php
"); } require_once(MODULES_DIR.$module . SLASH_TYPE. "actions" . SLASH_TYPE . "actions.php"); $templateDir = MODULES_DIR . $module . SLASH_TYPE . 'templates' . SLASH_TYPE; mngr($params, $action, $templateDir); ?>