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:
parent
e7bfe401f2
commit
67376f0ef6
56
index.php
56
index.php
@ -1,46 +1,46 @@
|
||||
<?php
|
||||
/******************************************************************************
|
||||
MachForm
|
||||
|
||||
|
||||
Copyright 2007 Appnitro Software. This code cannot be redistributed without
|
||||
permission from http://www.appnitro.com/
|
||||
|
||||
|
||||
More info at: http://www.appnitro.com/
|
||||
******************************************************************************/
|
||||
session_start();
|
||||
session_start();
|
||||
|
||||
require('config.php');
|
||||
require('includes/db-core.php');
|
||||
require('includes/db-functions.php');
|
||||
require('includes/helper-functions.php');
|
||||
|
||||
|
||||
$ssl_suffix = get_ssl_suffix();
|
||||
|
||||
|
||||
if(file_exists("installer.php")){
|
||||
header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/installer.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
//redirect to form manager if already logged-in
|
||||
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");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
if(!empty($_POST['submit'])){
|
||||
$username = trim($_POST['admin_username']);
|
||||
$password = trim($_POST['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{
|
||||
$_SESSION['logged_in'] = true;
|
||||
|
||||
|
||||
if(!empty($_SESSION['prev_referer'])){
|
||||
$next_page = $_SESSION['prev_referer'];
|
||||
|
||||
|
||||
unset($_SESSION['prev_referer']);
|
||||
header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].$next_page);
|
||||
|
||||
|
||||
exit;
|
||||
}else{
|
||||
header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/manage_form.php");
|
||||
@ -48,13 +48,13 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!empty($_GET['from'])){
|
||||
$_SESSION['prev_referer'] = base64_decode($_GET['from']);
|
||||
}
|
||||
|
||||
|
||||
$hide_nav = true;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<?php require('includes/header.php'); ?>
|
||||
@ -69,35 +69,35 @@
|
||||
<div id="form_container" style="align: center">
|
||||
<form id="form_login" class="appnitro" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
|
||||
<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">
|
||||
<label class="desc">
|
||||
<label class="desc">
|
||||
<?php echo $_SESSION['AP_LOGIN_ERROR']; ?>
|
||||
</label>
|
||||
</li>
|
||||
<?php
|
||||
unset($_SESSION['AP_LOGIN_ERROR']);
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
unset($_SESSION['AP_LOGIN_ERROR']);
|
||||
}
|
||||
?>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
</li>
|
||||
|
||||
</li>
|
||||
<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>
|
||||
<div>
|
||||
<input id="admin_password" name="admin_password" class="element text large" type="password" maxlength="255" value=""/>
|
||||
</div>
|
||||
<input id="admin_password" name="admin_password" class="element text large" type="password" maxlength="255" value=""/>
|
||||
</div>
|
||||
</li>
|
||||
<li class="buttons" style="padding-left:0px">
|
||||
<input id="login" class="button_text" type="submit" name="submit" value="Entrar" style="padding: 8px" />
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</form>
|
||||
</div><br />
|
||||
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user