From b1bb5fdc0ab52342ae17da470f8368e75d9172c8 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Mon, 14 Mar 2016 12:53:55 +0100 Subject: Peering Policy configuration options. Add configuration variable to set the path to a file containing a peering policy. This file must be readable by the webserver and must contain HTML formatted text (on which CSS rules will be applied). If the variable is set to null, no peering policy will be displayed. --- index.php | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 12ff3a4..3acee49 100644 --- a/index.php +++ b/index.php @@ -171,12 +171,17 @@ final class LookingGlass { } } - if ($this->frontpage['disclaimer'] != null) { + if ($this->frontpage['disclaimer']) { print($this->frontpage['disclaimer']); print('

'); } - if (($this->contact['name'] != null) && ($this->contact['mail'] != null)) { + if ($this->frontpage['peering_policy_file']) { + print(''); + print('

'); + } + + if ($this->contact['name'] && $this->contact['mail']) { print('Contact: '); print(''. htmlentities($this->contact['name']).''); @@ -188,6 +193,33 @@ final class LookingGlass { print(''); } + private function render_peering_policy_modal() { + print(''); + } + private function render_help_modal() { print('