added __("text") function for the gettext class
parent
d0e8576f51
commit
fda0b65799
|
|
@ -25,7 +25,7 @@ if ($user->isAdmin()) {
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>gelato :: admin users</title>
|
||||
<title>gelato :: <?=__("admin users")?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="gelato cms <?php echo version();?>" />
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
||||
|
|
@ -49,13 +49,13 @@ if ($user->isAdmin()) {
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div id="div-process" style="display:none;">Processing request...</div>
|
||||
<div id="div-process" style="display:none;"><?=__("Processing request...")?></div>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?=__("home")?>">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
||||
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?php echo $conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog"><?=__("View Tumblelog")?></a></li>
|
||||
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?php echo $conf->urlGelato;?>/admin/ajax.php?action=close');"><?=__("Log out")?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
|
@ -63,36 +63,36 @@ if ($user->isAdmin()) {
|
|||
<div class="box">
|
||||
<ul class="menu manage">
|
||||
<h3>Manage</h3>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php">Settings</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/index.php">Posts</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/user.php">Add user</a></li>
|
||||
<li class="selected"><a>Users</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php"><?=__("Settings")?></a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/index.php"><?=__("Posts")?></a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/user.php"><?=__("Add user"?></a></li>
|
||||
<li class="selected"><a><?=__("Users")?></a></li>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<?php
|
||||
if (isset($_GET["added"])) {
|
||||
if ($_GET["added"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The user has been added successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">".__("The user has been added successfully.")."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["delete"])) {
|
||||
if ($_GET["delete"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The user has been eliminated successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">".__("The user has been eliminated successfully.")."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["modified"])) {
|
||||
if ($_GET["modified"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The user has been modified successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">".__("The user has been modified successfully.")."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["error"])) {
|
||||
if ($_GET["error"]==1) {
|
||||
echo "<div class=\"error\" id=\"divMessages\">The username is not available.</div>";
|
||||
echo "<div class=\"error\" id=\"divMessages\">".__("The username is not available.")."</div>";
|
||||
} elseif ($_GET["error"]==2) {
|
||||
echo "<div class=\"error\" id=\"divMessages\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
|
||||
echo "<div class=\"error\" id=\"divMessages\"><strong>".__("Error on the database server:.")." </strong>".$_GET["des"]."</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -100,9 +100,9 @@ if ($user->isAdmin()) {
|
|||
<table class="sortable" id="admin-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Login</th>
|
||||
<th scope="col">Name</th>
|
||||
<th colspan="2" scope="col" class="unsortable">Actions</th>
|
||||
<th scope="col"><?=__("Login")?></th>
|
||||
<th scope="col"><?=__("Name")?></th>
|
||||
<th colspan="2" scope="col" class="unsortable"><?=__("Actions")?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -120,10 +120,10 @@ if ($user->isAdmin()) {
|
|||
<?php echo $register["name"]."\n"; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="user.php?edit=<?php echo $register["id_user"]; ?>">Edit</a>
|
||||
<a href="user.php?edit=<?php echo $register["id_user"]; ?>"><?=__("Edit")?></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="user.php?delete=<?php echo $register["id_user"]; ?>">Delete</a>
|
||||
<a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?=__("Delete")?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
|
@ -132,7 +132,7 @@ if ($user->isAdmin()) {
|
|||
else {
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="4"><div class="exito">No users available.</div></td>
|
||||
<td colspan="4"><div class="exito"><?=__("No users available.")?></div></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,20 +20,20 @@
|
|||
if ($_GET["action"] == "close") {
|
||||
session_start();
|
||||
if ($user->closeSession()) {
|
||||
echo " ending session...";
|
||||
echo __(" ending session...");
|
||||
} else {
|
||||
echo " failure ending session...";
|
||||
echo __(" failure ending session...");
|
||||
}
|
||||
} // $_GET["action"] == "close"
|
||||
|
||||
if ($_GET["action"] == "verify") {
|
||||
if ($_GET["login"]=="") {
|
||||
echo "<div class=\"error\">Required field cannot be left blank.</div>";
|
||||
echo "<div class=\"error\">".__("Required field cannot be left blank.")."</div>";
|
||||
} else {
|
||||
if (!$user->userExist($_GET["login"])) {
|
||||
echo "<div class=\"exito\">Username available.</div>";
|
||||
echo "<div class=\"exito\">".__("Username available.")."</div>";
|
||||
} else {
|
||||
echo "<div class=\"error\">The username is not available.</div>";
|
||||
echo "<div class=\"error\">".__("The username is not available.")."</div>";
|
||||
}
|
||||
}
|
||||
} // $_GET["action"] == "verify"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ $user->closeSession()
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>gelato :: logout</title>
|
||||
<title>gelato :: <?=__("logout")?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="gelato cms <?php echo version();?>" />
|
||||
<meta http-equiv="Refresh" content="3;URL=../login.php" />
|
||||
|
|
@ -36,17 +36,17 @@ $user->closeSession()
|
|||
<body>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?=__("home")?>">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="<?=__("Take me to the tumblelog")?>"><?=__("Back to the Tumblelog")?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
||||
<div class="box">
|
||||
<ul class="menu manage">
|
||||
<h3>Closing session</h3>
|
||||
<li class="selected"><a>logoff</a></li>
|
||||
<h3><?=__("Closing session")?></h3>
|
||||
<li class="selected"><a><?=__("logoff")?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tabla">
|
||||
|
|
@ -54,11 +54,11 @@ $user->closeSession()
|
|||
<?php
|
||||
if (@session_destroy()) {
|
||||
?>
|
||||
<h2>Ending session...</h2>
|
||||
<h2><?=__("Ending session...")?></h2>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<h2>Has happened an error when closing the session.</h2>
|
||||
<h2><?=__("Has happened an error when closing the session.")?></h2>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ if ($user->isAdmin()) {
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="gelato cms <?php echo version();?>" />
|
||||
<title>gelato :: control panel</title>
|
||||
<title>gelato :: <?=__("control panel")?></title>
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
|
|
@ -138,68 +138,68 @@ if ($user->isAdmin()) {
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div id="div-process" style="display:none;">Processing request...</div>
|
||||
<div id="div-process" style="display:none;"><?=__("Processing request...")?></div>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?=__("home")?>">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
||||
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?php echo $conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="<?=__("Take me to the tumblelog")?>"><?=__("View Tumblelog")?></a></li>
|
||||
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?php echo $conf->urlGelato;?>/admin/ajax.php?action=close');"><?=__("Log out")?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
<div class="box">
|
||||
<ul class="menu">
|
||||
<h3>New Post</h3>
|
||||
<li<?php echo ($_GET["new"]=="conversation") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=conversation"><img src="css/images/comments.png" alt="New chat" /> Chat</a></li>
|
||||
<li<?php echo ($_GET["new"]=="quote") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=quote"><img src="css/images/quote.png" alt="New qoute" /> Quote</a></li>
|
||||
<li<?php echo ($_GET["new"]=="url") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=url"><img src="css/images/world.png" alt="New link" /> Link</a></li>
|
||||
<li<?php echo ($_GET["new"]=="mp3") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=mp3"><img src="css/images/music.png" alt="New audio" /> Audio</a></li>
|
||||
<li<?php echo ($_GET["new"]=="video") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=video"><img src="css/images/film.png" alt="New video" /> Video</a></li>
|
||||
<li<?php echo ($_GET["new"]=="photo") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=photo"><img src="css/images/image.png" alt="New picture" /> Picture</a></li>
|
||||
<li<?php echo ($_GET["new"]=="post") ? " class=\"selected\"" : ""; echo (!isset($_GET["new"])) ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=post"><img src="css/images/page.png" alt="New post" /> Regular</a></li>
|
||||
<h3><?=__("New Post")?></h3>
|
||||
<li<?php echo ($_GET["new"]=="conversation") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=conversation"><img src="css/images/comments.png" alt="New chat" /> <?=__("Chat")?></a></li>
|
||||
<li<?php echo ($_GET["new"]=="quote") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=quote"><img src="css/images/quote.png" alt="New qoute" /> <?=__("Quote")?></a></li>
|
||||
<li<?php echo ($_GET["new"]=="url") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=url"><img src="css/images/world.png" alt="New link" /> <?=__("Link")?></a></li>
|
||||
<li<?php echo ($_GET["new"]=="mp3") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=mp3"><img src="css/images/music.png" alt="New audio" /> <?=__("Audio")?></a></li>
|
||||
<li<?php echo ($_GET["new"]=="video") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=video"><img src="css/images/film.png" alt="New video" /> <?=__("Video")?></a></li>
|
||||
<li<?php echo ($_GET["new"]=="photo") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=photo"><img src="css/images/image.png" alt="New picture" /> <?=__("Picture")?></a></li>
|
||||
<li<?php echo ($_GET["new"]=="post") ? " class=\"selected\"" : ""; echo (!isset($_GET["new"])) ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=post"><img src="css/images/page.png" alt="New post" /> <?=__("Regular")?></a></li>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<?php
|
||||
$present = version();
|
||||
$lastest = _file_get_contents("http://www.gelatocms.com/vgel.txt");
|
||||
if ($present < $lastest) {
|
||||
echo "<div class=\"information\" id=\"update\">A new gelato version has been released and is ready <a href=\"http://www.gelatocms.com/\">for download</a>.</div><br />";
|
||||
echo "<div class=\"information\" id=\"update\">".__("A new gelato version has been released and is ready <a href=\"http://www.gelatocms.com/\">for download</a>.")."</div><br />";
|
||||
}
|
||||
|
||||
if (isset($_GET["deleted"])) {
|
||||
if ($_GET["deleted"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The post has been eliminated successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">".__("The post has been eliminated successfully.")."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["modified"])) {
|
||||
if ($_GET["modified"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The post has been modified successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">".__("The post has been modified successfully.")."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["added"])) {
|
||||
if ($_GET["added"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The post has been added successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">".__("The post has been added successfully.")."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["error"])) {
|
||||
if ($_GET["error"]==2) {
|
||||
echo "<div class=\"error\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
|
||||
echo "<div class=\"error\"><strong>".__("Error on the database server:")." </strong>".$_GET["des"]."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["mp3"])) {
|
||||
if ($_GET["mp3"]=="false") {
|
||||
echo "<div class=\"error\" id=\"divMessages\">Not an MP3 file or an upload problem.</div>";
|
||||
echo "<div class=\"error\" id=\"divMessages\">".__("Not an MP3 file or an upload problem.")."</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["photo"])) {
|
||||
if ($_GET["photo"]=="false") {
|
||||
echo "<div class=\"error\" id=\"divMessages\">Not a photo file or an upload problem.</div>";
|
||||
echo "<div class=\"error\" id=\"divMessages\">".__("Not a photo file or an upload problem.")."</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -302,7 +302,7 @@ if ($user->isAdmin()) {
|
|||
}
|
||||
?>
|
||||
<p>
|
||||
<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;"><a href="http://hobix.com/textile/">Textile</a> syntax is supported.</span>
|
||||
<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;"><a href="http://hobix.com/textile/">Textile</a> <?=__("syntax is supported.")?></span>
|
||||
</p>
|
||||
<p>
|
||||
<input class="btn" type="submit" name="btnAdd" value="<?php echo ($isEdition) ? "Modify" : "Create"; ?> post" />
|
||||
|
|
@ -318,10 +318,10 @@ if ($user->isAdmin()) {
|
|||
<div class="box">
|
||||
<ul class="menu manage">
|
||||
<h3>Manage</h3>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php">Settings</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/options.php">Options</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/admin.php">Users</a></li>
|
||||
<li class="selected"><a>Posts</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php"><?=__("Settings")?></a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/options.php"><?=__("Options")?></a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/admin.php"><?=__("Users")?></a></li>
|
||||
<li class="selected"><a><?=__("Posts")?></a></li>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
|
|
@ -424,7 +424,7 @@ if ($user->isAdmin()) {
|
|||
|
||||
|
||||
} else {
|
||||
$template->renderizaEtiqueta("No posts in this tumblelog.", "div","error");
|
||||
$template->renderizaEtiqueta(__("No posts in this tumblelog."), "div","error");
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
24
login.php
24
login.php
|
|
@ -16,7 +16,7 @@ require( dirname(__FILE__) . '/config.php' );
|
|||
include(dirname(__FILE__)."/classes/functions.php");
|
||||
include(dirname(__FILE__)."/classes/user.class.php");
|
||||
require_once(dirname(__FILE__)."/classes/configuration.class.php");
|
||||
|
||||
|
||||
$user = new user();
|
||||
$conf = new configuration();
|
||||
if ($user->isAdmin()) {
|
||||
|
|
@ -34,7 +34,7 @@ if ($user->isAdmin()) {
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>gelato :: login screen</title>
|
||||
<title>gelato :: <?=__("login screen")?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="gelato cms <?php echo version();?>" />
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
||||
|
|
@ -46,20 +46,20 @@ if ($user->isAdmin()) {
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div id="div-process" style="display:none;">Processing request...</div>
|
||||
<div id="div-process" style="display:none;"><?=__("Processing request...")?></div>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?=__("home")?>">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="<?=__("Take me to the tumblelog")?>"><?=__("Back to the Tumblelog")?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
||||
<div class="box">
|
||||
<ul class="menu manage">
|
||||
<h3>Start session</h3>
|
||||
<li class="selected"><a>Login</a></li>
|
||||
<h3><?=__("Start session")?></h3>
|
||||
<li class="selected"><a><?=__("Login")?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tabla">
|
||||
|
|
@ -67,11 +67,11 @@ if ($user->isAdmin()) {
|
|||
<form action="login.php" method="post" id="valida" autocomplete="off" class="newpost">
|
||||
<fieldset>
|
||||
<ul>
|
||||
<li><label for="login">User:</label>
|
||||
<li><label for="login"><?=__("User:")?></label>
|
||||
<input id="login" name="login" type="text" class="txt" /></li>
|
||||
<li><label for="pass">Password:</label>
|
||||
<li><label for="pass"><?=__("Password:")?></label>
|
||||
<input id="pass" name="pass" type="password" class="txt" /></li>
|
||||
<li><label for="save_pass">Remember me:</label>
|
||||
<li><label for="save_pass"><?=__("Remember me:")?></label>
|
||||
<input id="save_pass" name="save_pass" type="checkbox" /></li>
|
||||
<li><input name="btnLogin" type="submit" value="Login" /></li>
|
||||
</ul>
|
||||
|
|
@ -82,14 +82,14 @@ if ($user->isAdmin()) {
|
|||
if ($_GET["error"]==1) {
|
||||
?>
|
||||
<div class="error">
|
||||
You must be registered to use gelato.
|
||||
<?=__(" You must be registered to use gelato.")?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif ($_GET["error"]==2) {
|
||||
?>
|
||||
<div class="error">
|
||||
You must be logged on the system.
|
||||
<?=__(" You must be logged on the system.")?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue