summaryrefslogtreecommitdiff
blob: d2f203d8ce712e488bc308c1104d59935083f461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
diff -Naur anyterm-1.1.8/browser/anyterm.js anyterm/browser/anyterm.js
--- anyterm-1.1.8/browser/anyterm.js	2005-11-24 19:54:15.000000000 +0100
+++ anyterm/browser/anyterm.js	2006-01-25 16:52:46.000000000 +0100
@@ -26,16 +26,21 @@
 var open=false;
 var session;
 
-//var post_method="POST";
-var post_method="GET";
+#USE=opera#//var post_method="POST";
+#USE=opera#var post_method="GET";
+#USE=-opera#var post_method="POST";
+#USE=-opera#//var post_method="GET";
 
 // Random sequence numbers are needed to prevent Opera from caching
 // replies
 
 var is_opera = navigator.userAgent.toLowerCase().indexOf("opera") != -1;
-if (is_opera) {
-  post_method="GET";
-}
+#USE=opera#if (is_opera) {
+#USE=opera#  post_method="GET";
+#USE=opera#}
+#USE=-opera#//if (is_opera) {
+#USE=-opera#//  post_method="GET";
+#USE=-opera#//}
 
 var seqnum_val=Math.round(Math.random()*100000);
 function cachebust() {
diff -Naur anyterm-1.1.8/browser/.htaccess anyterm/browser/.htaccess
--- anyterm-1.1.8/browser/.htaccess	2005-09-05 00:49:44.000000000 +0200
+++ anyterm/browser/.htaccess	2006-01-25 17:03:29.000000000 +0100
@@ -6,6 +6,8 @@
 # will be ignored if the anyterm module has not been loaded.
 
 <IfModule anyterm>
+#USE=ssl#<IfModule mod_ssl.c>
+#USE=pam#<IfModule mod_auth_pam.c>
 
 # Use an anyterm_command directive to specify the command to run
 # inside the terminal:
@@ -24,6 +26,16 @@
 # Example:
 # anyterm_command '/path/to/anygetty --remotehost "Anyterm: %h" --autologin=%u'
 
+# twp: Use ssh to avoid problems with Gentoo's /bin/login.
+anyterm_command '/usr/bin/ssh %u@localhost'
+
+#USE=ssl#SSLRequireSSL
+#USE=ssl#
+#USE=pam#AuthPAM_Enabled on
+#USE=pam#AuthType Basic
+#USE=pam#AuthName "Anyterm"
+#USE=pam#Require valid-user
+#USE=pam#
 <Files anyterm-module>
   SetHandler anyterm
 
@@ -34,7 +46,10 @@
   # CustomLog /path/to/logfile combined env=!DONTLOG
   # See the Apache documentation for details.  Note "=!" not "!=" !
 
-  # SetEnv DONTLOG
+#USE=opera#  SetEnv DONTLOG
+#USE=-opera#  # SetEnv DONTLOG
 </Files>
 
+#USE=pam#</IfModule>
+#USE=ssl#</IfModule>
 </IfModule>