$dtfunc = new DTFunctions(); $rmf = RMFunctions::get(); $rmu = RMUtilities::get(); $url = $rmf->current_url(); $rpath = parse_url($url); $xpath = parse_url(XOOPS_URL); // Comprobar si el host es correcto if ($rpath['host'] != $xpath['host']) { /** * @todo Agregar header 303 */ header("location: " . DT_URL); die; } if (substr($rpath['path'], 0, strlen($xpath['path'])) != $xpath['path']) { $dtfunc->error_404(); } if ($mc['permalinks']) { $params = trim(str_replace($xpath['path'] . '/' . trim($mc['htbase'], '/'), '', rtrim($rpath['path'], "/")), '/'); $search = array('category', 'publisher', 'recents', 'popular', 'rated', 'updated'); if ($params == '') { $params = array(); } else { $params = explode("/", trim($params)); } if (empty($params)) { require_once 'home.php'; die; } switch ($params[0]) { case 'category':