Редакция 364 |
К новейшей редакции |
Авторство |
Сравнить с предыдущей |
Последнее изменение |
Открыть журнал
| Скачать
| RSS
<?php
/**
*
* Codename: ant-ng - generator of sources.list for Debian and
* distributives, based on Debian
* http://alex-w.org.ru/p/antng/
*
* Copyright (c) 2009 Alexander Wolf
* Dual licensed under the MIT and GNU LGPL licenses.
* http://alex-w.org.ru/p/antng/license
*
*/
require_once dirname(__FILE__)."/init.php";
if(!empty($_GET["action"])) {
$action = $_GET["action"];
} else {
$action = "empty";
}
switch ($action) {
case 'empty':
$smarty->assign('header', "Вход");
$smarty->assign('body', $core->showSigninForm());
$smarty->display('default.tpl');
break;
case 'exit':
setcookie($cookie, '', time()-10);
header("Location: ./\n\n");
break;
}
?>