| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | |
| | | /** |
| | | * This script is invoked by interface/web/dns/templates/dns_dkim_edit.htm |
| | | * when generating the DKIM Private-key. |
| | | * |
| | | * return DKIM Public-Key for the DNS-record |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | header('Content-Type: text/xml; charset=utf-8'); |
| | | header('Cache-Control: must-revalidate, pre-check=0, no-store, no-cache, max-age=0, post-check=0'); |
| | | |
| | | |
| | | /** |
| | | * This function fix PHP's messing up POST input containing characters space, dot, |
| | | * open square bracket and others to be compatible with with the deprecated register_globals |
| | | * @return array POST |
| | | */ |
| | | |
| | | function getRealPOST() { |
| | | $pairs = explode("&", file_get_contents("php://input")); |
| | | $vars = array(); |
| | |
| | | return $vars; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * This function formats the public-key |
| | | * @param array $pubkey |