summaryrefslogtreecommitdiff
path: root/net/nic/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-23 12:01:25 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-23 12:01:25 +0000
commit3e05a4d231f1abb905b0d053ea6375f274fd63f7 (patch)
treedb04b51315f23acb8d97392a34acec6a64831dcf /net/nic/files
parentUpdate to release 2002-06-14. Changes in this release: (diff)
add nic 0.0.2.011230
Nic is a set of small web-based network applications PR: 33359 Submitted by: Thierry Thomas <thierry@thomas.as>
Notes
Notes: svn path=/head/; revision=61808
Diffstat (limited to 'net/nic/files')
-rw-r--r--net/nic/files/httpd.conf.nic19
-rw-r--r--net/nic/files/patch-icq.php36
-rw-r--r--net/nic/files/patch-ping.php11
3 files changed, 66 insertions, 0 deletions
diff --git a/net/nic/files/httpd.conf.nic b/net/nic/files/httpd.conf.nic
new file mode 100644
index 000000000000..a02fbcf3889b
--- /dev/null
+++ b/net/nic/files/httpd.conf.nic
@@ -0,0 +1,19 @@
+# This is included in Apache's httpd.conf for Nic
+#
+# For security, don't serve pages from the Nic configuration and
+# library directories.
+#
+<Directory "/home/httpd/html/horde/nic/config">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/nic/lib">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/nic/templates">
+ order deny,allow
+ deny from all
+</Directory>
+# End of Nic configuration ================
+
diff --git a/net/nic/files/patch-icq.php b/net/nic/files/patch-icq.php
new file mode 100644
index 000000000000..e5c0455d8a45
--- /dev/null
+++ b/net/nic/files/patch-icq.php
@@ -0,0 +1,36 @@
+--- icq.php.orig Mon Oct 15 23:12:21 2001
++++ icq.php Mon Dec 31 00:37:35 2001
+@@ -17,10 +17,10 @@
+
+ $uin = Horde::getFormData('uin');
+ $results="";
++$email_next=false;
+ if (!empty($uin)) {
+- $fd = fopen("http://wwp.icq.com/$uin", 'r');
++ $fd = fopen("http://web.icq.com/wwp?Uin=" . $uin, 'r');
+ while ($buffer = fgetss($fd, 4096)) {
+-
+ if (ereg('Handle/Nickname:', $buffer)) {
+ // echo ereg_replace('Handle/Nickname:', 'NickName: ', $buffer);
+ // echo "<br>";
+@@ -34,6 +34,20 @@
+ $results .= ereg_replace('E-Mail', 'Email: ', $buffer);
+ $results .="<br>";
+ }
++
++ if (ereg('Hello my name is', $buffer)) {
++ $results .= ereg_replace('Hello my name is', 'Name:', $buffer);
++ $results .="<br>";
++ }
++
++ if ($email_next) {
++ $results .= 'Email: ' . $buffer;
++ $email_next = false;
++ }
++ if (ereg('Send me an Email message', $buffer)) {
++ $email_next = true;
++ }
++
+ }
+ fclose($fd);
+
diff --git a/net/nic/files/patch-ping.php b/net/nic/files/patch-ping.php
new file mode 100644
index 000000000000..a6b1c2b65c5a
--- /dev/null
+++ b/net/nic/files/patch-ping.php
@@ -0,0 +1,11 @@
+--- ping.php.orig Wed Nov 21 23:17:27 2001
++++ ping.php Sun Dec 30 22:05:49 2001
+@@ -26,7 +26,7 @@
+ $results .= "<br />$ping[$i]\n";
+ }
+ } else {
+- exec("/bin/ping -c 5 \"$addr\"", $ping);
++ exec("/sbin/ping -c 5 \"$addr\"", $ping);
+
+ for ($i = 0; $i < count($ping); $i++) {
+ $results .= "<br />$ping[$i]\n";