MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ require("../SiteTranslatorAdmin.php"); $translator = new SiteTranslatorAdmin(); $blnShowForm = true; if ($_POST["submit"]) { if ($translator->login($_POST["username"], $_POST["password"])) { $blnShowForm = false; //redirect to the specified page. if ($_POST["redir"]) header("Location: ".$_POST["redir"]); else header("Location: index.php"); } else $strAdditionalInfo = "Login failed - go away."; } if ($blnShowForm) {