Редакция 360 | Только различия | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 360 | Редакция 364 | ||
---|---|---|---|
1 | <?php
|
1 | <?php
|
2 | /**
|
2 | /**
|
3 | *
|
3 | *
|
4 | * Codename: ant-ng - generator of sources.list for Debian and
|
4 | * Codename: ant-ng - generator of sources.list for Debian and
|
5 | * distributives, based on Debian
|
5 | * distributives, based on Debian
|
6 | * http://alex-w.org.ru/p/antng/
|
6 | * http://alex-w.org.ru/p/antng/
|
7 | *
|
7 | *
|
8 | * Copyright (c) 2009 Alexander Wolf
|
8 | * Copyright (c) 2009 Alexander Wolf
|
9 | * Dual licensed under the MIT and GNU LGPL licenses.
|
9 | * Dual licensed under the MIT and GNU LGPL licenses.
|
10 | * http://alex-w.org.ru/p/antng/license
|
10 | * http://alex-w.org.ru/p/antng/license
|
11 | *
|
11 | *
|
12 | */
|
12 | */
|
13 | 13 | ||
14 | require_once dirname(__FILE__)."/init.php"; |
14 | require_once dirname(__FILE__)."/init.php"; |
15 | 15 | ||
16 | if(!empty($_GET["action"])) { |
16 | if(!empty($_GET["action"])) { |
17 | $action = $_GET["action"]; |
17 | $action = $_GET["action"]; |
18 | } else { |
18 | } else { |
19 | $action = "empty"; |
19 | $action = "empty"; |
20 | }
|
20 | }
|
21 | 21 | ||
22 | switch ($action) { |
22 | switch ($action) { |
23 | case 'empty': |
23 | case 'empty': |
24 | $smarty->assign('header', "Вход"); |
24 | $tmpl->assign('header', "Вход"); |
25 | $smarty->assign('body', $core->showSigninForm()); |
25 | $tmpl->assign('body', $core->showSigninForm()); |
26 | $smarty->display('default.tpl'); |
26 | $tmpl->display('default.tpl'); |
27 | break; |
27 | break; |
28 | case 'exit': |
28 | case 'exit': |
29 | setcookie($cookie, '', time()-10); |
29 | setcookie($cookie, '', time()-10); |
30 | header("Location: ./\n\n"); |
30 | header("Location: ./\n\n"); |
31 | break; |
31 | break; |
32 | }
|
32 | }
|
33 | 33 | ||
34 | ?>
|
34 | ?>
|
35 | 35 |