예제 #1
0
                    } else {
                        include HTML_DIR . 'temas/responder.php';
                    }
                } else {
                    header('location: index.php?view=index');
                }
            } else {
                header('location: index.php?view=index');
            }
            break;
        default:
            if ($isset_id) {
                $tema = $temas->Check();
                if (false != $tema) {
                    IncreaseVisita($_GET['id']);
                    $respuestas = $temas->GetRespuestas();
                    include HTML_DIR . 'temas/ver_tema.php';
                } else {
                    header('location: index.php?view=index');
                }
            } else {
                header('location: index.php?view=index');
            }
            break;
    }
} else {
    if (null == $mode) {
        header('location: ../index.php?view=index');
    } else {
        header('location: index.php?view=index');
    }