gpg-lacre/gpg-mailgate-web/public_html/index.php

44 lines
1.2 KiB
PHP
Raw Normal View History

<?php
/*
gpg-mailgate
This file is part of the gpg-mailgate source code.
gpg-mailgate is free software: you can redistribute it and/or modify
2013-10-02 20:27:28 +02:00
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.
gpg-mailgate source code 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
2013-10-02 20:27:28 +02:00
GNU General Public License for more details.
2013-10-02 20:27:28 +02:00
You should have received a copy of the GNU General Public License
along with gpg-mailgate source code. If not, see <http://www.gnu.org/licenses/>.
*/
require_once("include/config.php");
2013-09-28 23:38:18 +02:00
require_once("include/language.php");
require_once("include/common.php");
require_once("include/dbconnect.php");
require_once("include/pgp.php");
2014-03-02 14:12:09 +01:00
require_once("include/phphkp.php");
2014-02-24 21:13:45 +01:00
if(isset($_POST['email']) && isset($_POST['key'])) {
$result = requestPGP($_POST['email'], $_POST['key']);
if($result === true) {
2013-09-28 23:38:18 +02:00
get_page("home", array('message' => $lang['submit_success']));
} else {
2013-09-28 23:38:18 +02:00
get_page("home", array('message' => $result));
}
} else {
get_page("home");
}
?>