diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 237572ef..2b645ede 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -1116,5 +1116,20 @@ EOF; } + /* ----------------------------------------------------------------- */ + /** hook function called by AlternC-upnp to know which open + * tcp or udp ports this class requires or suggests + * @return array a key => value list of port protocol name mandatory values + * @access private + */ + function hook_upnp_list() { + return array( + "http" => array("port" => 80, "protocol" => "tcp", "mandatory" => 1), + "https" => array("port" => 443, "protocol" => "tcp", "mandatory" => 0), + "ssh" => array("port" => 22, "protocol" => "tcp", "mandatory" => 0), + ); + } + + } /* Classe ADMIN */ diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index e0c70bb5..2cffd9e3 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -1425,4 +1425,18 @@ printvar("je viens de tenter de mkdir ++$dirr++"); // FIXME Bullshit. Safemode } + /* ----------------------------------------------------------------- */ + /** hook function called by AlternC-upnp to know which open + * tcp or udp ports this class requires or suggests + * @return array a key => value list of port protocol name mandatory values + * @access private + */ + function hook_upnp_list() { + return array( + "dns-tcp" => array("port" => 53, "protocol" => "tcp", "mandatory" => 1), + "dns-udp" => array("port" => 53, "protocol" => "udp", "mandatory" => 1), + ); + } + + } /* Class m_domains */ diff --git a/bureau/class/m_export.php b/bureau/class/m_export.php index 5f314b03..7f4443a5 100644 --- a/bureau/class/m_export.php +++ b/bureau/class/m_export.php @@ -27,4 +27,4 @@ Class m_export { } }// export Class end -?> + diff --git a/bureau/class/m_ftp.php b/bureau/class/m_ftp.php index f672191e..5fb48bb4 100644 --- a/bureau/class/m_ftp.php +++ b/bureau/class/m_ftp.php @@ -386,8 +386,19 @@ class m_ftp { $str.=" \n"; return $str; } - + + + /* ----------------------------------------------------------------- */ + /** hook function called by AlternC-upnp to know which open + * tcp or udp ports this class requires or suggests + * @return array a key => value list of port protocol name mandatory values + * @access private + */ + function hook_upnp_list() { + return array( + "ftp" => array("port" => 21, "protocol" => "tcp", "mandatory" => 1), + ); + } } /* Class m_ftp */ -?> diff --git a/bureau/class/m_hta.php b/bureau/class/m_hta.php index 6d1bd741..e59843b1 100644 --- a/bureau/class/m_hta.php +++ b/bureau/class/m_hta.php @@ -388,5 +388,3 @@ class m_hta { } /* CLASS m_hta */ - -?> diff --git a/bureau/class/m_mail.php b/bureau/class/m_mail.php index 52b2d54d..f9333f43 100644 --- a/bureau/class/m_mail.php +++ b/bureau/class/m_mail.php @@ -653,6 +653,26 @@ class m_mail { } + /* ----------------------------------------------------------------- */ + /** hook function called by AlternC-upnp to know which open + * tcp or udp ports this class requires or suggests + * @return array a key => value list of port protocol name mandatory values + * @access private + */ + function hook_upnp_list() { + return array( + "imap" => array("port" => 143, "protocol" => "tcp", "mandatory" => 1), + "imaps" => array("port" => 993, "protocol" => "tcp", "mandatory" => 1), + "pop" => array("port" => 110, "protocol" => "tcp", "mandatory" => 1), + "pops" => array("port" => 995, "protocol" => "tcp", "mandatory" => 1), + "smtp" => array("port" => 25, "protocol" => "tcp", "mandatory" => 1), + "sieve" => array("port" => 2000, "protocol" => "tcp", "mandatory" => 1), + "submission" => array("port" => 587, "protocol" => "tcp", "mandatory" => 0), + ); + } + + + } /* Class m_mail */