Редакция 368 | Редакция 475 | К новейшей редакции | Только различия | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 368 | Редакция 459 | ||
---|---|---|---|
1 | <?php
|
1 | <?php
|
2 | 2 | ||
3 | /**
|
3 | /**
|
4 | *
|
4 | *
|
5 | * Codename: ant-ng - generator of sources.list for Debian and
|
5 | * Codename: ant-ng - generator of sources.list for Debian and
|
6 | * distributives, based on Debian
|
6 | * distributives, based on Debian
|
7 | * http://alex-w.org.ru/p/antng/
|
7 | * http://alex-w.org.ru/p/antng/
|
8 | *
|
8 | *
|
9 | * Copyright (c) 2009 Alexander Wolf
|
9 | * Copyright (c) 2009 Alexander Wolf
|
10 | * Dual licensed under the MIT and GNU LGPL licenses.
|
10 | * Dual licensed under the MIT and GNU LGPL licenses.
|
11 | * http://alex-w.org.ru/p/antng/license
|
11 | * http://alex-w.org.ru/p/antng/license
|
12 | *
|
12 | *
|
13 | */
|
13 | */
|
14 | 14 | ||
15 | require_once dirname(__FILE__)."/init.php"; |
15 | require_once dirname(__FILE__)."/init.php"; |
16 | 16 | ||
17 | $mode = $_POST["mode"]; |
17 | $mode = $_POST["mode"]; |
18 | 18 | ||
19 | switch ($mode) { |
19 | switch ($mode) { |
20 | case 'authorize': |
20 | case 'authorize': |
21 | $r = $core->checkSign($_POST["word"]); |
21 | $r = $core->checkSign($_POST["word"]); |
22 | header("Location: ".$r["Location"]."\n\n"); |
22 | header("Location: ".$r["Location"]."\n\n"); |
23 | break; |
23 | break; |
24 | }
|
24 | }
|
25 | 25 | ||
26 | ?>
|
26 | ?>
|
27 | 27 |