summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-24 17:42:42 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-24 17:42:42 +0000
commit0af29a7145e05bdc2d89a689ce77cddd97e95ff1 (patch)
tree80bd7f41042e386d5fe87a1696694dcab0859d54
parent4d55c425d6b332832c5e7548e4883ab49716ed38 (diff)
Removing executable bit from documentation
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1001 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--[-rwxr-xr-x]LICENSE0
-rwxr-xr-xLedgerSMB.pm12
-rw-r--r--[-rwxr-xr-x]doc/COPYRIGHT0
-rw-r--r--[-rwxr-xr-x]doc/README0
-rw-r--r--[-rwxr-xr-x]doc/faq.html0
-rw-r--r--[-rwxr-xr-x]favicon.icobin568 -> 568 bytes
-rwxr-xr-xlogin.pl23
7 files changed, 8 insertions, 27 deletions
diff --git a/LICENSE b/LICENSE
index 083bb415..083bb415 100755..100644
--- a/LICENSE
+++ b/LICENSE
diff --git a/LedgerSMB.pm b/LedgerSMB.pm
index 37fbe009..ee849723 100755
--- a/LedgerSMB.pm
+++ b/LedgerSMB.pm
@@ -125,17 +125,17 @@ sub new {
$self->{action} =~ s/\W/_/g;
$self->{action} = lc $self->{action};
- if ($self->{path} =~ /lynx/i){
+
+ if ($self->{path} eq "bin/lynx"){
$self->{menubar} = 1;
#menubar will be deprecated, replaced with below
$self->{lynx} = 1;
- }
+ $self->{path} = "bin/lynx";
+ } else {
+ $self->{path} = "bin/mozilla";
- $self->{path} =~ s#\\#/#g;
- if (($self->{path}) && ($self->{path} !~ m#^bin/#)
- || ($self->{path} =~ m#(\w*/){2,}#)){
- $self->error("Access Denied");
}
+
if (($self->{script} =~ m#(..|\\|/)#)){
$self->error("Access Denied");
}
diff --git a/doc/COPYRIGHT b/doc/COPYRIGHT
index 18e6fc81..18e6fc81 100755..100644
--- a/doc/COPYRIGHT
+++ b/doc/COPYRIGHT
diff --git a/doc/README b/doc/README
index c3a1cb5d..c3a1cb5d 100755..100644
--- a/doc/README
+++ b/doc/README
diff --git a/doc/faq.html b/doc/faq.html
index 1e3c3fb8..1e3c3fb8 100755..100644
--- a/doc/faq.html
+++ b/doc/faq.html
diff --git a/favicon.ico b/favicon.ico
index 0e114430..0e114430 100755..100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/login.pl b/login.pl
index ff1cba7e..a9608a18 100755
--- a/login.pl
+++ b/login.pl
@@ -86,28 +86,9 @@ $script = substr($0, $pos + 1);
# exit;
#}
+$ARGV[0] = $_;
+require "bin/$script";
-if ($form{path}) {
-
- if ($form{path} ne 'bin/lynx'){ $form{path} = 'bin/mozilla';}
-
- $ARGV[0] = "$_&script=$script";
- require "bin/$script";
-
-} else {
-
- $form{terminal} = "lynx";
-
- if ($ENV{HTTP_USER_AGENT} !~ /lynx/i) {
- $form{terminal} = "mozilla";
- }
-
- $ARGV[0] = "path=bin/$form{terminal}&script=$script";
- map { $ARGV[0] .= "&${_}=$form{$_}" } keys %form;
-
- require "bin/$script";
-
-}
# end of main