Traducción al castellano

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_FormulariosCalidad/trunk@15 e2c41b2c-0c6f-0149-8b81-50b1a9191bb3
This commit is contained in:
David Arranz 2011-04-07 15:14:44 +00:00
parent e7bfe401f2
commit 67376f0ef6

View File

@ -1,46 +1,46 @@
<?php <?php
/****************************************************************************** /******************************************************************************
MachForm MachForm
Copyright 2007 Appnitro Software. This code cannot be redistributed without Copyright 2007 Appnitro Software. This code cannot be redistributed without
permission from http://www.appnitro.com/ permission from http://www.appnitro.com/
More info at: http://www.appnitro.com/ More info at: http://www.appnitro.com/
******************************************************************************/ ******************************************************************************/
session_start(); session_start();
require('config.php'); require('config.php');
require('includes/db-core.php'); require('includes/db-core.php');
require('includes/db-functions.php'); require('includes/db-functions.php');
require('includes/helper-functions.php'); require('includes/helper-functions.php');
$ssl_suffix = get_ssl_suffix(); $ssl_suffix = get_ssl_suffix();
if(file_exists("installer.php")){ if(file_exists("installer.php")){
header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/installer.php"); header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/installer.php");
exit; exit;
} }
//redirect to form manager if already logged-in //redirect to form manager if already logged-in
if(!empty($_SESSION['logged_in']) && $_SESSION['logged_in'] == true){ if(!empty($_SESSION['logged_in']) && $_SESSION['logged_in'] == true){
header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/manage_form.php"); header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/manage_form.php");
exit; exit;
} }
if(!empty($_POST['submit'])){ if(!empty($_POST['submit'])){
$username = trim($_POST['admin_username']); $username = trim($_POST['admin_username']);
$password = trim($_POST['admin_password']); $password = trim($_POST['admin_password']);
if(($username != ADMIN_USER) || ($password != ADMIN_PASSWORD)){ if(($username != ADMIN_USER) || ($password != ADMIN_PASSWORD)){
$_SESSION['AP_LOGIN_ERROR'] = 'Please enter the correct user and password!'; $_SESSION['AP_LOGIN_ERROR'] = 'Por favor, introduzca su usuario y su contraseña correctamente';
}else{ }else{
$_SESSION['logged_in'] = true; $_SESSION['logged_in'] = true;
if(!empty($_SESSION['prev_referer'])){ if(!empty($_SESSION['prev_referer'])){
$next_page = $_SESSION['prev_referer']; $next_page = $_SESSION['prev_referer'];
unset($_SESSION['prev_referer']); unset($_SESSION['prev_referer']);
header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].$next_page); header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].$next_page);
exit; exit;
}else{ }else{
header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/manage_form.php"); header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/manage_form.php");
@ -48,13 +48,13 @@
} }
} }
} }
if(!empty($_GET['from'])){ if(!empty($_GET['from'])){
$_SESSION['prev_referer'] = base64_decode($_GET['from']); $_SESSION['prev_referer'] = base64_decode($_GET['from']);
} }
$hide_nav = true; $hide_nav = true;
?> ?>
<?php require('includes/header.php'); ?> <?php require('includes/header.php'); ?>
@ -69,35 +69,35 @@
<div id="form_container" style="align: center"> <div id="form_container" style="align: center">
<form id="form_login" class="appnitro" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <form id="form_login" class="appnitro" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<ul style="width: 40%;"> <ul style="width: 40%;">
<?php if(!empty($_SESSION['AP_LOGIN_ERROR'])){ ?> <?php if(!empty($_SESSION['AP_LOGIN_ERROR'])){ ?>
<li class="error" style="padding-top:20px;padding-bottom:20px;text-align: center"> <li class="error" style="padding-top:20px;padding-bottom:20px;text-align: center">
<label class="desc"> <label class="desc">
<?php echo $_SESSION['AP_LOGIN_ERROR']; ?> <?php echo $_SESSION['AP_LOGIN_ERROR']; ?>
</label> </label>
</li> </li>
<?php <?php
unset($_SESSION['AP_LOGIN_ERROR']); unset($_SESSION['AP_LOGIN_ERROR']);
} }
?> ?>
<li class="highlighted" style="padding-left: 30px;padding-top: 30px;padding-right: 30px"> <li class="highlighted" style="padding-left: 30px;padding-top: 30px;padding-right: 30px">
<label class="desc" for="admin_username"><img src="images/icons/edit_user.gif" align="absmiddle" style="padding-bottom: 5px"/> Usuario</label> <label class="desc" for="admin_username"><img src="images/icons/edit_user.gif" align="absmiddle" style="padding-bottom: 5px"/> Usuario</label>
<div> <div>
<input id="admin_username" name="admin_username" class="element text large" type="text" maxlength="255" value=""/> <input id="admin_username" name="admin_username" class="element text large" type="text" maxlength="255" value=""/>
</div> </div>
</li> </li>
<li class="highlighted" style="padding-left: 30px;padding-bottom: 30px;padding-right: 30px"> <li class="highlighted" style="padding-left: 30px;padding-bottom: 30px;padding-right: 30px">
<label class="desc" for="admin_password"><img src="images/icons/decrypted.gif" align="absmiddle" style="padding-bottom: 5px"/> Contraseña </label> <label class="desc" for="admin_password"><img src="images/icons/decrypted.gif" align="absmiddle" style="padding-bottom: 5px"/> Contraseña </label>
<div> <div>
<input id="admin_password" name="admin_password" class="element text large" type="password" maxlength="255" value=""/> <input id="admin_password" name="admin_password" class="element text large" type="password" maxlength="255" value=""/>
</div> </div>
</li> </li>
<li class="buttons" style="padding-left:0px"> <li class="buttons" style="padding-left:0px">
<input id="login" class="button_text" type="submit" name="submit" value="Entrar" style="padding: 8px" /> <input id="login" class="button_text" type="submit" name="submit" value="Entrar" style="padding: 8px" />
</li> </li>
</ul> </ul>
</form> </form>
</div><br /> </div><br />
</div> </div>