예제 #1
0
		<img id="logo" src="images/logo.png" alt="Logo Conversor subtítulos latinos" />
		</div>
	</div>	
	<div id="bottomPart" >
		<?php 
$viewFactory = new ViewFactory();
if (isset($_GET['editar']) == true) {
    if ($_SESSION['security_code'] != $_POST['captchaUser']) {
        $viewFactory->showError("Código verificador inválido", "convertir-subtitulo", "images/btnBack.png");
    } else {
        $_SESSION['security_code'] = "0";
        $viewFactory->showEditTitles();
        $translator = new Translator();
        $translatedLines = $translator->translate();
        if ($translator->isOK()) {
            if ($viewFactory->buildEditForm("conversor.php", $_FILES['file']['name'], $translatedLines, "convertir-subtitulo", "images/btnBack.png") == false) {
                $viewFactory->showError("El archivo no necesita traducción", "convertir-subtitulo", "images/btnBack.png");
            }
        } else {
            $viewFactory->showError($translator->getError(), "convertir-subtitulo", "images/btnBack.png");
        }
    }
} else {
    $viewFactory->buildUploadForm("editar-conversion");
}
?>
	
	</div>	
	
	<footer>
		<p>Copyright 2013-2014 - Ernesto Gigliotti</p>