summaryrefslogtreecommitdiff
blob: 0b06a5121a30d24925f3bd3a2fb4efbac03897e2 (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
72
73
74
75
Index: anyterm-1.1.15/browser/anyterm.js
===================================================================
--- anyterm-1.1.15.orig/browser/anyterm.js
+++ anyterm-1.1.15/browser/anyterm.js
@@ -24,16 +24,21 @@ var term;
 var open=false;
 var session;
 
-var method="POST";
-//var method="GET";
+#USE=opera#//var method="POST";
+#USE=opera#var method="GET";
+#USE=-opera#var method="POST";
+#USE=-opera#//var 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) {
-  method="GET";
-}
+#USE=opera#if (is_opera) {
+#USE=opera#  method="GET";
+#USE=opera#}
+#USE=-opera#//if (is_opera) {
+#USE=-opera#//  method="GET";
+#USE=-opera#//}
 
 var seqnum_val=Math.round(Math.random()*100000);
 function cachebust() {
Index: anyterm-1.1.15/browser/.htaccess
===================================================================
--- anyterm-1.1.15.orig/browser/.htaccess
+++ anyterm-1.1.15/browser/.htaccess
@@ -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,9 +46,12 @@
   # 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>
 # Additional Security Issues
 
 # If you're just testing Anyterm on a machine that's not connected to