WeakWiki


include\login.include.php



/********************************************************************************
WeakWiki (WeakWiki login page include file: login.include.php)
Copyright (C) 2010 Alexander Lang

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of 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, see .

Project Home: http://weakwiki.robnet.wmweb.at/
Contact:      robbiblubber@robnet.wmweb.at
********************************************************************************/



require_once(_lang('login'));


$pm = new PageMenu();
if(allowEdit())
{
	$pm->add("" . _L_LI_0000 . "");
}
$pm->add("" . _L_LI_0001 . "");
$pm->write();


if($_GET['action'] == 'login')
{
	echo("
\n"); echo("" . _L_LI_0010 . "


\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("
    " . _L_LI_0011 . "  
    " . _L_LI_0012 . "  

" . _L_LI_0013 . "
\n"); echo("
\n"); } else if($_GET['action'] == 'authorize') { if(logon($_POST['uid'], $_POST['password'])) { $m = new MessageBox(_L_LI_0020, _L_LI_0021, MSG_SUCCESS); $m->write(); echo("\n"); } else { $m = new MessageBox(_L_LI_0022, _L_LI_0023, MSG_ERROR); $m->write(); } } else if($_GET['action'] == 'authorized') { $m = new MessageBox(_L_LI_0020, _L_LI_0024 . "" . currentUser()->getUID() . "" . _L_LI_0025, MSG_SUCCESS); $m->write(); } ?>

WeakWiki