added __("text") function for the gettext class

master
Victor De la Rocha 2007-07-20 22:04:15 +00:00
parent d0e8576f51
commit fda0b65799
5 changed files with 70 additions and 70 deletions

View File

@ -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"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>gelato :: admin users</title> <title>gelato :: <?=__("admin users")?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="gelato cms <?php echo version();?>" /> <meta name="generator" content="gelato cms <?php echo version();?>" />
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
@ -49,13 +49,13 @@ if ($user->isAdmin()) {
</head> </head>
<body> <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="cont">
<div id="head"> <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"> <ul id="nav">
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</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> <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> </ul>
</div> </div>
<div id="main"> <div id="main">
@ -63,36 +63,36 @@ if ($user->isAdmin()) {
<div class="box"> <div class="box">
<ul class="menu manage"> <ul class="menu manage">
<h3>Manage</h3> <h3>Manage</h3>
<li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php">Settings</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/index.php"><?=__("Posts")?></a></li>
<li><a href="<?php echo $conf->urlGelato;?>/admin/user.php">Add user</a></li> <li><a href="<?php echo $conf->urlGelato;?>/admin/user.php"><?=__("Add user"?></a></li>
<li class="selected"><a>Users</a></li> <li class="selected"><a><?=__("Users")?></a></li>
</ul> </ul>
<p>&nbsp;</p> <p>&nbsp;</p>
<?php <?php
if (isset($_GET["added"])) { if (isset($_GET["added"])) {
if ($_GET["added"]=="true") { 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 (isset($_GET["delete"])) {
if ($_GET["delete"]=="true") { 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 (isset($_GET["modified"])) {
if ($_GET["modified"]=="true") { 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 (isset($_GET["error"])) {
if ($_GET["error"]==1) { 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) { } 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"> <table class="sortable" id="admin-table">
<thead> <thead>
<tr> <tr>
<th scope="col">Login</th> <th scope="col"><?=__("Login")?></th>
<th scope="col">Name</th> <th scope="col"><?=__("Name")?></th>
<th colspan="2" scope="col" class="unsortable">Actions</th> <th colspan="2" scope="col" class="unsortable"><?=__("Actions")?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -120,10 +120,10 @@ if ($user->isAdmin()) {
<?php echo $register["name"]."\n"; ?> <?php echo $register["name"]."\n"; ?>
</td> </td>
<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>
<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> </td>
</tr> </tr>
<?php <?php
@ -132,7 +132,7 @@ if ($user->isAdmin()) {
else { else {
?> ?>
<tr> <tr>
<td colspan="4"><div class="exito">No users available.</div></td> <td colspan="4"><div class="exito"><?=__("No users available.")?></div></td>
</tr> </tr>
<?php <?php
} }

View File

@ -20,20 +20,20 @@
if ($_GET["action"] == "close") { if ($_GET["action"] == "close") {
session_start(); session_start();
if ($user->closeSession()) { if ($user->closeSession()) {
echo "&nbsp;ending session..."; echo __("&nbsp;ending session...");
} else { } else {
echo "&nbsp;failure ending session..."; echo __("&nbsp;failure ending session...");
} }
} // $_GET["action"] == "close" } // $_GET["action"] == "close"
if ($_GET["action"] == "verify") { if ($_GET["action"] == "verify") {
if ($_GET["login"]=="") { 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 { } else {
if (!$user->userExist($_GET["login"])) { if (!$user->userExist($_GET["login"])) {
echo "<div class=\"exito\">Username available.</div>"; echo "<div class=\"exito\">".__("Username available.")."</div>";
} else { } else {
echo "<div class=\"error\">The username is not available.</div>"; echo "<div class=\"error\">".__("The username is not available.")."</div>";
} }
} }
} // $_GET["action"] == "verify" } // $_GET["action"] == "verify"

View File

@ -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"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>gelato :: logout</title> <title>gelato :: <?=__("logout")?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="gelato cms <?php echo version();?>" /> <meta name="generator" content="gelato cms <?php echo version();?>" />
<meta http-equiv="Refresh" content="3;URL=../login.php" /> <meta http-equiv="Refresh" content="3;URL=../login.php" />
@ -36,17 +36,17 @@ $user->closeSession()
<body> <body>
<div id="cont"> <div id="cont">
<div id="head"> <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"> <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> </ul>
</div> </div>
<div id="main"> <div id="main">
<div class="box"> <div class="box">
<ul class="menu manage"> <ul class="menu manage">
<h3>Closing session</h3> <h3><?=__("Closing session")?></h3>
<li class="selected"><a>logoff</a></li> <li class="selected"><a><?=__("logoff")?></a></li>
</ul> </ul>
<div class="tabla"> <div class="tabla">
@ -54,11 +54,11 @@ $user->closeSession()
<?php <?php
if (@session_destroy()) { if (@session_destroy()) {
?> ?>
<h2>Ending session...</h2> <h2><?=__("Ending session...")?></h2>
<?php <?php
} else { } else {
?> ?>
<h2>Has happened an error when closing the session.</h2> <h2><?=__("Has happened an error when closing the session.")?></h2>
<?php <?php
} }
?> ?>

View File

@ -101,7 +101,7 @@ if ($user->isAdmin()) {
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="gelato cms <?php echo version();?>" /> <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" /> <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/tools.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/mootools.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> </head>
<body> <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="cont">
<div id="head"> <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"> <ul id="nav">
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</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> <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> </ul>
</div> </div>
<div id="main"> <div id="main">
<div class="box"> <div class="box">
<ul class="menu"> <ul class="menu">
<h3>New Post</h3> <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"]=="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"]=="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"]=="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"]=="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"]=="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"]=="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> <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> </ul>
<p>&nbsp;</p> <p>&nbsp;</p>
<?php <?php
$present = version(); $present = version();
$lastest = _file_get_contents("http://www.gelatocms.com/vgel.txt"); $lastest = _file_get_contents("http://www.gelatocms.com/vgel.txt");
if ($present < $lastest) { 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 (isset($_GET["deleted"])) {
if ($_GET["deleted"]=="true") { 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 (isset($_GET["modified"])) {
if ($_GET["modified"]=="true") { 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 (isset($_GET["added"])) {
if ($_GET["added"]=="true") { 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 (isset($_GET["error"])) {
if ($_GET["error"]==2) { 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 (isset($_GET["mp3"])) {
if ($_GET["mp3"]=="false") { 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 (isset($_GET["photo"])) {
if ($_GET["photo"]=="false") { 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> <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>
<p> <p>
<input class="btn" type="submit" name="btnAdd" value="<?php echo ($isEdition) ? "Modify" : "Create"; ?> post" /> <input class="btn" type="submit" name="btnAdd" value="<?php echo ($isEdition) ? "Modify" : "Create"; ?> post" />
@ -318,10 +318,10 @@ if ($user->isAdmin()) {
<div class="box"> <div class="box">
<ul class="menu manage"> <ul class="menu manage">
<h3>Manage</h3> <h3>Manage</h3>
<li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php">Settings</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/options.php"><?=__("Options")?></a></li>
<li><a href="<?php echo $conf->urlGelato;?>/admin/admin.php">Users</a></li> <li><a href="<?php echo $conf->urlGelato;?>/admin/admin.php"><?=__("Users")?></a></li>
<li class="selected"><a>Posts</a></li> <li class="selected"><a><?=__("Posts")?></a></li>
</ul> </ul>
<?php <?php
@ -424,7 +424,7 @@ if ($user->isAdmin()) {
} else { } else {
$template->renderizaEtiqueta("No posts in this tumblelog.", "div","error"); $template->renderizaEtiqueta(__("No posts in this tumblelog."), "div","error");
} }
?> ?>

View File

@ -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"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>gelato :: login screen</title> <title>gelato :: <?=__("login screen")?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="gelato cms <?php echo version();?>" /> <meta name="generator" content="gelato cms <?php echo version();?>" />
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
@ -46,20 +46,20 @@ if ($user->isAdmin()) {
</head> </head>
<body> <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="cont">
<div id="head"> <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"> <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> </ul>
</div> </div>
<div id="main"> <div id="main">
<div class="box"> <div class="box">
<ul class="menu manage"> <ul class="menu manage">
<h3>Start session</h3> <h3><?=__("Start session")?></h3>
<li class="selected"><a>Login</a></li> <li class="selected"><a><?=__("Login")?></a></li>
</ul> </ul>
<div class="tabla"> <div class="tabla">
@ -67,11 +67,11 @@ if ($user->isAdmin()) {
<form action="login.php" method="post" id="valida" autocomplete="off" class="newpost"> <form action="login.php" method="post" id="valida" autocomplete="off" class="newpost">
<fieldset> <fieldset>
<ul> <ul>
<li><label for="login">User:</label> <li><label for="login"><?=__("User:")?></label>
<input id="login" name="login" type="text" class="txt" /></li> <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> <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> <input id="save_pass" name="save_pass" type="checkbox" /></li>
<li><input name="btnLogin" type="submit" value="Login" /></li> <li><input name="btnLogin" type="submit" value="Login" /></li>
</ul> </ul>
@ -82,14 +82,14 @@ if ($user->isAdmin()) {
if ($_GET["error"]==1) { if ($_GET["error"]==1) {
?> ?>
<div class="error"> <div class="error">
&nbsp;You must be registered to use gelato. <?=__("&nbsp;You must be registered to use gelato.")?>
</div> </div>
<?php <?php
} }
elseif ($_GET["error"]==2) { elseif ($_GET["error"]==2) {
?> ?>
<div class="error"> <div class="error">
&nbsp;You must be logged on the system. <?=__("&nbsp;You must be logged on the system.")?>
</div> </div>
<?php <?php
} }