initial commit of file from CVS for smeserver-webshare on Sat Sep 7 21:15:27 AEST 2024
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
*.rpm
|
||||||
|
*.log
|
||||||
|
*spec-20*
|
||||||
|
*.tar.gz
|
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Makefile for source rpm: smeserver-webshare
|
||||||
|
# $Id: Makefile,v 1.1 2020/10/30 11:00:20 brianr Exp $
|
||||||
|
NAME := smeserver-webshare
|
||||||
|
SPECFILE = $(firstword $(wildcard *.spec))
|
||||||
|
|
||||||
|
define find-makefile-common
|
||||||
|
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||||
|
|
||||||
|
ifeq ($(MAKEFILE_COMMON),)
|
||||||
|
# attept a checkout
|
||||||
|
define checkout-makefile-common
|
||||||
|
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(MAKEFILE_COMMON)
|
14
README.md
@ -1,3 +1,15 @@
|
|||||||
# smeserver-webshare
|
# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> smeserver-webshare
|
||||||
|
|
||||||
SMEServer Koozali developed git repo for smeserver-webshare smecontribs
|
SMEServer Koozali developed git repo for smeserver-webshare smecontribs
|
||||||
|
|
||||||
|
## Wiki
|
||||||
|
<br />https://wiki.koozali.org/Webshare
|
||||||
|
|
||||||
|
## Bugzilla
|
||||||
|
Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-webshare&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED)
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
<br />*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.*
|
||||||
|
*Once it has been checked, then this comment will be deleted*
|
||||||
|
<br />
|
||||||
|
1
contriborbase
Normal file
@ -0,0 +1 @@
|
|||||||
|
contribs10
|
26
createlinks
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
# This script creates the symlinks needed by this RPM
|
||||||
|
# Specific support exists to create symlinks within e-smith web "panels"
|
||||||
|
# and for links from named "events" directories into the "actions" directory
|
||||||
|
use esmith::Build::CreateLinks qw(:all);
|
||||||
|
|
||||||
|
#--------------------------------------------------
|
||||||
|
# functions for user and manager panel
|
||||||
|
#--------------------------------------------------
|
||||||
|
my $panel = "manager";
|
||||||
|
panel_link("webshare", $panel);
|
||||||
|
|
||||||
|
my $event = "smeserver-webshare-update";
|
||||||
|
event_templates($event, qw(
|
||||||
|
/etc/httpd/conf/httpd.conf
|
||||||
|
));
|
||||||
|
|
||||||
|
event_services($event, qw(
|
||||||
|
php-fpm restart
|
||||||
|
httpd-e-smith restart
|
||||||
|
));
|
||||||
|
|
||||||
|
use esmith::Build::Backup qw(:all);
|
||||||
|
backup_includes("smeserver-webshare", qw(
|
||||||
|
/opt/webshare
|
||||||
|
));
|
50
root/etc/e-smith/events/actions/webshare-adduser
Executable file
@ -0,0 +1,50 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
use esmith::ConfigDB;
|
||||||
|
use Apache::Htpasswd;
|
||||||
|
|
||||||
|
my $db = esmith::ConfigDB->open_ro("WebShare");
|
||||||
|
|
||||||
|
my $projectName = $ARGV[0];
|
||||||
|
my $userName = $ARGV[1];
|
||||||
|
my $password = $ARGV[2];
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Create the MultiAccessWebshare account
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
my $MultiAccessWebshare =
|
||||||
|
$db->get_prop( "MultiAccess", "WebShareName" || "undefined" );
|
||||||
|
my %MultiWebshares =
|
||||||
|
sort( split( /,/, $db->get_prop( "MultiAccess", "WebShares" ) || "" ) );
|
||||||
|
|
||||||
|
if ( ( "$MultiAccessWebshare" eq "$projectName" )
|
||||||
|
&& ( "%MultiWebshares" ne "" ) )
|
||||||
|
{
|
||||||
|
my $foo =
|
||||||
|
new Apache::Htpasswd("/home/e-smith/db/webshare/htpasswd.$MultiAccessWebshare");
|
||||||
|
$foo->htDelete("$userName");
|
||||||
|
$foo->{'USEMD5'} = "MD5";
|
||||||
|
$foo->htpasswd( "$userName", "$password" );
|
||||||
|
|
||||||
|
foreach my $MultiWebshares (%MultiWebshares) {
|
||||||
|
my $foo1 =
|
||||||
|
new Apache::Htpasswd("/home/e-smith/db/webshare/htpasswd.$MultiWebshares");
|
||||||
|
$foo1->htDelete("$userName");i
|
||||||
|
$foo->{'USEMD5'} = "MD5";
|
||||||
|
$foo1->htpasswd( "$userName", "$password" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Create the webshare account
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
my $foo = new Apache::Htpasswd("/home/e-smith/db/webshare/htpasswd.$projectName");
|
||||||
|
$foo->{'USEMD5'} = "MD5";
|
||||||
|
$foo->htpasswd( "$userName", "$password" );
|
||||||
|
}
|
||||||
|
|
||||||
|
exit(0)
|
47
root/etc/e-smith/events/actions/webshare-create
Executable file
@ -0,0 +1,47 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
my $projectName = $ARGV [0];
|
||||||
|
my $indexer = $ARGV [1];
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Create the webshare project directory
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
if ( -e "/opt/webshare/$projectName")
|
||||||
|
{
|
||||||
|
print "webshare $projectName already exists\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
system ("/bin/mkdir /opt/webshare/$projectName");
|
||||||
|
|
||||||
|
if ("$indexer" eq "Full")
|
||||||
|
{
|
||||||
|
system ("/bin/cp -R /opt/webshare-tools/phpfm/* /opt/webshare/$projectName/");
|
||||||
|
system ("/bin/cp -f /opt/webshare/$projectName/conf/config.inc.php-full /opt/webshare/$projectName/conf/config.inc.php");
|
||||||
|
}
|
||||||
|
elsif ("$indexer" eq "NoDelete")
|
||||||
|
{
|
||||||
|
system ("/bin/cp -R /opt/webshare-tools/phpfm/* /opt/webshare/$projectName/");
|
||||||
|
system ("/bin/cp -f /opt/webshare/$projectName/conf/config.inc.php-nodelete /opt/webshare/$projectName/conf/config.inc.php");
|
||||||
|
}
|
||||||
|
elsif ("$indexer" eq "UpDown")
|
||||||
|
{
|
||||||
|
system ("/bin/cp -R /opt/webshare-tools/phpfm/* /opt/webshare/$projectName/");
|
||||||
|
system ("/bin/cp -f /opt/webshare/$projectName/conf/config.inc.php-updown /opt/webshare/$projectName/conf/config.inc.php");
|
||||||
|
}
|
||||||
|
elsif ("$indexer" eq "View")
|
||||||
|
{
|
||||||
|
system ("/bin/cp -R /opt/webshare-tools/phpfm/* /opt/webshare/$projectName/");
|
||||||
|
system ("/bin/cp -f /opt/webshare/$projectName/conf/config.inc.php-view /opt/webshare/$projectName/conf/config.inc.php");
|
||||||
|
}
|
||||||
|
|
||||||
|
system ("/usr/bin/find /opt/webshare/$projectName -type f -exec chmod 644 {} ';'");
|
||||||
|
system ("/usr/bin/find /opt/webshare/$projectName -type d -exec chmod 755 {} ';'");
|
||||||
|
system ("/bin/chown -R www:www /opt/webshare/$projectName/files");
|
||||||
|
|
||||||
|
system ("/bin/touch /home/e-smith/db/webshare/htpasswd.$projectName");
|
||||||
|
system ("/sbin/e-smith/signal-event ibay-modify");
|
||||||
|
}
|
||||||
|
|
||||||
|
exit (0);
|
16
root/etc/e-smith/events/actions/webshare-delete
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
my $projectName = $ARGV[0];
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Delete the webshare project directory
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
if ( -e "/opt/webshare/$projectName" ) {
|
||||||
|
system("/bin/rm -Rf /opt/webshare/$projectName");
|
||||||
|
system("/bin/rm -f /home/e-smith/db/webshare/htpasswd.$projectName");
|
||||||
|
system("/sbin/e-smith/signal-event ibay-modify");
|
||||||
|
}
|
||||||
|
|
||||||
|
exit(0);
|
||||||
|
|
45
root/etc/e-smith/events/actions/webshare-deluser
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
use esmith::ConfigDB;
|
||||||
|
use Apache::Htpasswd;
|
||||||
|
|
||||||
|
my $db = esmith::ConfigDB->open_ro("WebShare");
|
||||||
|
|
||||||
|
my $projectName = $ARGV[0];
|
||||||
|
my $userName = $ARGV[1];
|
||||||
|
my $password = $ARGV[2];
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Delete the MultiAccessWebshare account
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
my $MultiAccessWebshare =
|
||||||
|
$db->get_prop( "MultiAccess", "WebShareName" || "undefined" );
|
||||||
|
my %MultiWebshares =
|
||||||
|
split( /,/, $db->get_prop( "MultiAccess", "WebShares" ) || "" );
|
||||||
|
|
||||||
|
if ( ( "$MultiAccessWebshare" eq "$projectName" )
|
||||||
|
&& ( "%MultiWebshares" ne "" ) )
|
||||||
|
{
|
||||||
|
my $foo =
|
||||||
|
new Apache::Htpasswd("/home/e-smith/db/webshare/htpasswd.$MultiAccessWebshare");
|
||||||
|
$foo->htDelete("$userName");
|
||||||
|
|
||||||
|
foreach my $MultiWebshares ( sort %MultiWebshares ) {
|
||||||
|
my $foo1 =
|
||||||
|
new Apache::Htpasswd("/home/e-smith/db/webshare/htpasswd.$MultiWebshares");
|
||||||
|
$foo1->htDelete("$userName");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Delete the webshare account
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
my $foo = new Apache::Htpasswd("/home/e-smith/db/webshare/htpasswd.$projectName");
|
||||||
|
$foo->htDelete("$userName");
|
||||||
|
}
|
||||||
|
|
||||||
|
exit(0)
|
64
root/etc/e-smith/events/actions/webshare-rebuild-htpasswd
Executable file
@ -0,0 +1,64 @@
|
|||||||
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
use esmith::ConfigDB;
|
||||||
|
use Apache::Htpasswd;
|
||||||
|
|
||||||
|
my $db = esmith::ConfigDB->open_ro("WebShare");
|
||||||
|
|
||||||
|
my @WebShare = $db->get_all_by_prop( type => 'WebShare' );
|
||||||
|
my $MultiAccessWebshare = $db->get_prop( "MultiAccess", "WebShareName" ) || "";
|
||||||
|
my %MultiWebshares = split( /,/, $db->get_prop( "MultiAccess", "WebShares" ) || "" );
|
||||||
|
|
||||||
|
foreach my $WebShare (@WebShare) {
|
||||||
|
my $ws = $WebShare->key;
|
||||||
|
my $rec = $db->get("$ws");
|
||||||
|
|
||||||
|
system( "/bin/rm -f /home/e-smith/db/webshare/htpasswd.$ws > /dev/null 2>&1" );
|
||||||
|
system( "/bin/touch", "/home/e-smith/db/webshare/htpasswd.$ws" );
|
||||||
|
|
||||||
|
my %Users = split( /,/, $rec->prop("Users") || "" );
|
||||||
|
|
||||||
|
if ( "%Users" ne "" ) {
|
||||||
|
foreach my $Users ( sort %Users ) {
|
||||||
|
my @user = split( /:/, $Users );
|
||||||
|
my $userName = $user[0];
|
||||||
|
my $password = $user[1];
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Create the MultiAccessWebshare account
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
if ( ( "$MultiAccessWebshare" eq "$ws" )
|
||||||
|
&& ( "%MultiWebshares" ne "" ) )
|
||||||
|
{
|
||||||
|
my $foo =
|
||||||
|
new Apache::Htpasswd(
|
||||||
|
"/home/e-smith/db/webshare/htpasswd.$MultiAccessWebshare");
|
||||||
|
$foo->htDelete("$userName");
|
||||||
|
$foo->{'USEMD5'} = "MD5";
|
||||||
|
$foo->htpasswd( "$userName", "$password" );
|
||||||
|
|
||||||
|
foreach my $MultiWebshares ( sort %MultiWebshares ) {
|
||||||
|
my $foo1 =
|
||||||
|
new Apache::Htpasswd(
|
||||||
|
"/home/e-smith/db/webshare/htpasswd.$MultiWebshares");
|
||||||
|
$foo1->htDelete("$userName");
|
||||||
|
$foo->{'USEMD5'} = "MD5";
|
||||||
|
$foo1->htpasswd( "$userName", "$password" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Create the webshare account
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
my $foo = new Apache::Htpasswd("/home/e-smith/db/webshare/htpasswd.$ws");
|
||||||
|
$foo->htDelete("$userName");
|
||||||
|
$foo->{'USEMD5'} = "MD5";
|
||||||
|
$foo->htpasswd( "$userName", "$password" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exit(0)
|
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
my $db = esmith::ConfigDB->open_ro("WebShare")
|
||||||
|
or return "# webshare disabled\n";
|
||||||
|
|
||||||
|
my @webshare = $db->get_all_by_prop( type => 'WebShare' );
|
||||||
|
|
||||||
|
foreach $webshare (@webshare) {
|
||||||
|
my $key = $webshare->key;
|
||||||
|
$OUT .= "# webshare\/$key\n";
|
||||||
|
$OUT .= "Alias \/webshare\/$key \/opt\/webshare\/$key\n";
|
||||||
|
$OUT .= "<Directory \/opt\/webshare\/$key>\n";
|
||||||
|
$OUT .= " SSLRequireSSL\n";
|
||||||
|
$OUT .= " Options +Indexes\n";
|
||||||
|
$OUT .= " AllowOverride None\n";
|
||||||
|
$OUT .= " AuthName \"Restricted $key access only\"\n";
|
||||||
|
$OUT .= " AuthType Basic\n";
|
||||||
|
$OUT .= " AuthUserFile \/home\/e-smith\/db\/webshare\/htpasswd.$key\n";
|
||||||
|
$OUT .= " Require valid-user\n";
|
||||||
|
$OUT .= " AddType application\/x-httpd-php \.php \.php3\n";
|
||||||
|
$OUT .= " <FilesMatch .php>\n";
|
||||||
|
$OUT .= ' SetHandler "proxy:unix:/var/run/php-fpm/php.sock|fcgi://localhost"'."\n";
|
||||||
|
$OUT .= " </FilesMatch>\n";
|
||||||
|
$OUT .= "<\/Directory>\n";
|
||||||
|
$OUT .= "\n";
|
||||||
|
}
|
||||||
|
}
|
602
root/etc/e-smith/web/functions/webshare
Executable file
@ -0,0 +1,602 @@
|
|||||||
|
#!/usr/bin/perl -wT
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------
|
||||||
|
# heading : Collaboration
|
||||||
|
# description : Web Shares
|
||||||
|
# navigation : 3000 3600
|
||||||
|
#
|
||||||
|
# copyright (C) 2005 Darrell May, DMC myEZserver.com
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
package esmith;
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use CGI ':all';
|
||||||
|
use CGI::Carp qw(fatalsToBrowser);
|
||||||
|
|
||||||
|
use esmith::cgi;
|
||||||
|
use esmith::config;
|
||||||
|
use esmith::util;
|
||||||
|
use esmith::db;
|
||||||
|
|
||||||
|
|
||||||
|
sub showInitial ($$);
|
||||||
|
sub createproject ($);
|
||||||
|
sub performCreateShare ($);
|
||||||
|
sub deleteProject ($);
|
||||||
|
sub performDeleteProject ($);
|
||||||
|
sub createUser ($);
|
||||||
|
sub performCreateUser ($);
|
||||||
|
sub deleteUser ($);
|
||||||
|
sub performDeleteUser ($);
|
||||||
|
BEGIN
|
||||||
|
{
|
||||||
|
# Clear PATH and related environment variables so that calls to
|
||||||
|
# external programs do not cause results to be tainted. See
|
||||||
|
# "perlsec" manual page for details.
|
||||||
|
|
||||||
|
$ENV {'PATH'} = '';
|
||||||
|
$ENV {'SHELL'} = '/bin/bash';
|
||||||
|
delete $ENV {'ENV'};
|
||||||
|
}
|
||||||
|
|
||||||
|
esmith::util::setRealToEffective ();
|
||||||
|
|
||||||
|
$CGI::POST_MAX=1024 * 100; # max 100K posts
|
||||||
|
$CGI::DISABLE_UPLOADS = 1; # no uploads
|
||||||
|
|
||||||
|
my %conf;
|
||||||
|
tie %conf, 'esmith::config';
|
||||||
|
|
||||||
|
my %projects;
|
||||||
|
tie %projects, 'esmith::config', '/home/e-smith/db/WebShare';
|
||||||
|
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# examine state parameter and display the appropriate form
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
my $q = new CGI;
|
||||||
|
|
||||||
|
if (! grep (/^state$/, $q->param))
|
||||||
|
{
|
||||||
|
showInitial ($q, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
elsif ($q->param ('state') eq "create")
|
||||||
|
{
|
||||||
|
createproject ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
elsif ($q->param ('state') eq "deleteProject")
|
||||||
|
{
|
||||||
|
deleteProject ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
elsif ($q->param ('state') eq "createShare")
|
||||||
|
{
|
||||||
|
performCreateShare ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
elsif ($q->param ('state') eq "addUser")
|
||||||
|
{
|
||||||
|
createUser ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
elsif ($q->param ('state') eq "createUser")
|
||||||
|
{
|
||||||
|
performCreateUser ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
elsif ($q->param ('state') eq "viewUser")
|
||||||
|
{
|
||||||
|
deleteUser ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
elsif ($q->param ('state') eq "delUser")
|
||||||
|
{
|
||||||
|
performDeleteUser ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
elsif ($q->param ('state') eq "performDelete")
|
||||||
|
{
|
||||||
|
performDeleteProject ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
esmith::cgi::genStateError ($q, \%conf);
|
||||||
|
}
|
||||||
|
|
||||||
|
exit (0);
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# subroutine to display initial form
|
||||||
|
#------------------------------------------------------------
|
||||||
|
sub showInitial ($$)
|
||||||
|
{
|
||||||
|
my ($q, $msg) = @_;
|
||||||
|
|
||||||
|
my @WebShareProjects = ();
|
||||||
|
foreach (sort keys %projects)
|
||||||
|
{
|
||||||
|
push (@WebShareProjects, $_)
|
||||||
|
if (db_get_type(\%projects, $_) eq "WebShare");
|
||||||
|
}
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# If there's a message, we just finished an operation so show the
|
||||||
|
# status report. If no message, this is a new list of accounts.
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
if ($msg eq '')
|
||||||
|
{
|
||||||
|
|
||||||
|
esmith::cgi::genHeaderNonCacheable
|
||||||
|
($q, \%conf, 'Create or modify web shares and users');
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
esmith::cgi::genHeaderNonCacheable
|
||||||
|
($q, \%conf, 'Web share Operation status report');
|
||||||
|
|
||||||
|
print $q->div ({-class => "sme-error"}, $msg);
|
||||||
|
print $q->hr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1));
|
||||||
|
|
||||||
|
print $q->p ($q->a ({href => $q->url (-absolute => 1) . "?state=create"},
|
||||||
|
'Click here'),
|
||||||
|
'to create a new web share.');
|
||||||
|
|
||||||
|
print $q->p ('Web shares are Internet accessible',
|
||||||
|
'file storage areas for securely sharing',
|
||||||
|
' documents with external share members.');
|
||||||
|
|
||||||
|
|
||||||
|
if (@WebShareProjects == 0)
|
||||||
|
{
|
||||||
|
print $q->p ($q->b ('There are no web shares currently defined.'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $q->table ({border => 1, cellspacing => 1, cellpadding => 4});
|
||||||
|
|
||||||
|
print $q->Tr (esmith::cgi::genSmallCell ($q, $q->b ('Name')),
|
||||||
|
esmith::cgi::genSmallCell ($q, $q->b ('Description')),
|
||||||
|
esmith::cgi::genSmallCell ($q, $q->b ('URL = https://yourdomain.com')),
|
||||||
|
$q->td (' '),
|
||||||
|
$q->td (' '),
|
||||||
|
$q->td (' '));
|
||||||
|
|
||||||
|
my $projectname;
|
||||||
|
foreach $projectname (sort @WebShareProjects)
|
||||||
|
{
|
||||||
|
my $description = db_get_prop(\%projects, $projectname, 'Description');
|
||||||
|
my $url = "/webshare/" . $projectname;
|
||||||
|
|
||||||
|
|
||||||
|
print $q->Tr (esmith::cgi::genSmallCell ($q, $projectname),
|
||||||
|
esmith::cgi::genSmallCell ($q, $description),
|
||||||
|
esmith::cgi::genSmallCell ($q, $url),
|
||||||
|
esmith::cgi::genSmallCell ($q,
|
||||||
|
$q->a ({href => $q->url (-absolute => 1)
|
||||||
|
. "?state=addUser&project="
|
||||||
|
. $projectname}, 'Add User..')),
|
||||||
|
esmith::cgi::genSmallCell ($q,
|
||||||
|
$q->a ({href => $q->url (-absolute => 1)
|
||||||
|
. "?state=viewUser&project="
|
||||||
|
. $projectname}, 'View/Delete Users..')),
|
||||||
|
esmith::cgi::genSmallCell ($q,
|
||||||
|
$q->a ({href => $q->url (-absolute => 1)
|
||||||
|
. "?state=deleteProject&project="
|
||||||
|
. $projectname}, 'Remove..')));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
print '</table>';
|
||||||
|
|
||||||
|
|
||||||
|
esmith::cgi::genFooter ($q);
|
||||||
|
}
|
||||||
|
|
||||||
|
sub createproject ($)
|
||||||
|
{
|
||||||
|
my ($q) = @_;
|
||||||
|
my $info =<<END_TEXT;
|
||||||
|
The web share name may contain letters, numbers, periods, hyphens and underscores, but must not contain any spaces. For
|
||||||
|
example "Project1" and "cust3.prj12" are all valid names, but "Project 1" and "Cust 3 Project 12" are not.
|
||||||
|
|
||||||
|
END_TEXT
|
||||||
|
|
||||||
|
esmith::cgi::genHeaderNonCacheable ($q, \%conf, 'Create a new web share');
|
||||||
|
|
||||||
|
print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1));
|
||||||
|
|
||||||
|
print $q->p ($q->a ({href => $q->url (-absolute => 1)},
|
||||||
|
'Click here'),
|
||||||
|
'to return.');
|
||||||
|
|
||||||
|
print $q->p ($info);
|
||||||
|
|
||||||
|
print $q->table ({border => 0, cellspacing => 0, cellpadding => 4},
|
||||||
|
|
||||||
|
esmith::cgi::genNameValueRow ($q,
|
||||||
|
"<B>Web share name</B>",
|
||||||
|
"sharename",
|
||||||
|
""),
|
||||||
|
|
||||||
|
esmith::cgi::genNameValueRow ($q,
|
||||||
|
"<B>Brief Description</B>",
|
||||||
|
"description",
|
||||||
|
""),
|
||||||
|
|
||||||
|
esmith::cgi::genTextRow ($q,
|
||||||
|
$q->p ('Select your Web share indexer below. Your choices are either the default',
|
||||||
|
'apache (ModIndex if installed) indexer or PHP FileManager. In addition',
|
||||||
|
'PHP FileManager may be tailored to meet your needs by choicing the appropriate',
|
||||||
|
'selection below:')),
|
||||||
|
|
||||||
|
esmith::cgi::genTextRow ($q,
|
||||||
|
$q->p ('<B>Default</B> = default apache (ModIndex) indexer.<BR>',
|
||||||
|
'<B>View</B> = permitting view/download only.<BR>',
|
||||||
|
'<B>UpDown</B> = permitting view/upload/download.<BR>',
|
||||||
|
'<B>NoDelete</B> = permitting view/upload/download/create/rename/edit.<BR>',
|
||||||
|
'<B>Full</B> = permitting view/upload/download/create/rename/delete/edit<BR>')),
|
||||||
|
|
||||||
|
esmith::cgi::genWidgetRow ($q, "Indexer",
|
||||||
|
$q->popup_menu (-name => "indexer",
|
||||||
|
-values => ['Default', 'View', 'UpDown', ,'NoDelete', 'Full'],
|
||||||
|
-default => 'Full')),
|
||||||
|
|
||||||
|
esmith::cgi::genButtonRow ($q,
|
||||||
|
$q->submit (-name => 'action', -value => 'Create')));
|
||||||
|
|
||||||
|
print $q->hidden (-name => 'state', -override => 1, -default => 'createShare');
|
||||||
|
|
||||||
|
|
||||||
|
print $q->endform;
|
||||||
|
esmith::cgi::genFooter ($q);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
sub performCreateShare ($)
|
||||||
|
{
|
||||||
|
my ($q) = @_;
|
||||||
|
my $share = ();
|
||||||
|
my $description = ();
|
||||||
|
my $indexer = ();
|
||||||
|
|
||||||
|
$share = $q->param ('sharename');
|
||||||
|
if ($share =~ /^([a-zA-Z0-9][\-\_\.a-zA-Z0-9]*)$/)
|
||||||
|
{
|
||||||
|
$share = $1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
showInitial ($q,
|
||||||
|
"Error: unexpected characters in web share name <B>\'$share\'</B>.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$indexer = $q->param ('indexer');
|
||||||
|
if ($indexer =~ /^([a-zA-Z0-9][\-\_\.a-zA-Z0-9]*)$/)
|
||||||
|
{
|
||||||
|
$indexer = $1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
showInitial ($q,
|
||||||
|
"Error: unexpected characters in indexer <B>\'$indexer\'</B>.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$description = $q->param ('description');
|
||||||
|
|
||||||
|
db_set(\%projects, $share, 'WebShare');
|
||||||
|
db_set_prop(\%projects, "$share", "Description", "$description");
|
||||||
|
|
||||||
|
system("/etc/e-smith/events/actions/webshare-create", "$share", "$indexer") == "0"
|
||||||
|
or die("Error occured during webshare-create event.\n");
|
||||||
|
|
||||||
|
showInitial ($q, "Web share <B>$share</B> with <B>$indexer</B> indexer created.");
|
||||||
|
|
||||||
|
}
|
||||||
|
sub createUser ($)
|
||||||
|
{
|
||||||
|
my ($q) = @_;
|
||||||
|
my $project = $q->param ('project');
|
||||||
|
|
||||||
|
my $userinfo =<<END_TEXT;
|
||||||
|
Use this form to add a user to this web share. A good choice for the
|
||||||
|
login name is the user's full e-mail address. Password may be any
|
||||||
|
combination of letters and numbers. No spaces are permitted in either.
|
||||||
|
END_TEXT
|
||||||
|
|
||||||
|
esmith::cgi::genHeaderNonCacheable ($q, \%conf, "Add user to web share: $project");
|
||||||
|
|
||||||
|
print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1));
|
||||||
|
|
||||||
|
print $q->p ($q->a ({href => $q->url (-absolute => 1)},
|
||||||
|
'Click here'),
|
||||||
|
'to return.');
|
||||||
|
|
||||||
|
print $q->p ($userinfo);
|
||||||
|
|
||||||
|
print $q->table ({border => 0, cellspacing => 0, cellpadding => 4},
|
||||||
|
|
||||||
|
esmith::cgi::genNameValueRow ($q,
|
||||||
|
"<B>Webshare</B>",
|
||||||
|
"project",
|
||||||
|
"$project"),
|
||||||
|
|
||||||
|
esmith::cgi::genNameValueRow ($q,
|
||||||
|
"<B>Login</B>",
|
||||||
|
"user",
|
||||||
|
""),
|
||||||
|
|
||||||
|
esmith::cgi::genNameValueRow ($q,
|
||||||
|
"<B>Password</B>",
|
||||||
|
"passwd",
|
||||||
|
""),
|
||||||
|
|
||||||
|
esmith::cgi::genButtonRow ($q,
|
||||||
|
$q->submit (-name => 'action', -value => 'Add user')));
|
||||||
|
|
||||||
|
print $q->hidden (-name => 'state', -override => 1, -default => 'createUser');
|
||||||
|
|
||||||
|
print $q->endform;
|
||||||
|
esmith::cgi::genFooter ($q);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub performCreateUser ($)
|
||||||
|
{
|
||||||
|
|
||||||
|
my ($q) = @_;
|
||||||
|
my $user = $q->param ('user');
|
||||||
|
|
||||||
|
if ($user =~ /^([a-zA-Z0-9][\-\@\_\.a-zA-Z0-9]*)$/)
|
||||||
|
{
|
||||||
|
$user = $1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
showInitial ($q,
|
||||||
|
"Error: unexpected characters in web share name <B>\'$user\'</B>.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
my $passwd = $q->param ('passwd');
|
||||||
|
|
||||||
|
if ($passwd =~ /^([a-zA-Z0-9]*)$/)
|
||||||
|
{
|
||||||
|
$passwd = $1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
showInitial ($q,
|
||||||
|
"Error: unexpected characters in web share password <B>\'$passwd\'</B>.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
my $project = $q->param ('project');
|
||||||
|
|
||||||
|
|
||||||
|
if ($project =~ /^([a-zA-Z0-9][\-\_\.a-zA-Z0-9]*)$/)
|
||||||
|
{
|
||||||
|
$project = $1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
showInitial ($q,
|
||||||
|
"Error: unexpected characters in web share name <B>\'$project\'</B>.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
my $ProjectUsers = db_get_prop(\%projects, "$project", "Users");
|
||||||
|
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Update project users
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
if ("$ProjectUsers" ne "")
|
||||||
|
{
|
||||||
|
db_set_prop(\%projects, "$project", "Users", "$ProjectUsers,$user:$passwd")
|
||||||
|
or warn("Could not add user to WebShare database\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
db_set_prop(\%projects, "$project", "Users", "$user:$passwd")
|
||||||
|
or warn("Could not add user to WebShare database\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
system("/etc/e-smith/events/actions/webshare-adduser", "$project", "$user", "$passwd") == "0"
|
||||||
|
or die("Error occured while adding user $user.\n");
|
||||||
|
|
||||||
|
showInitial ($q, "Web share user <B>$user</B> created.");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
sub deleteUser ($)
|
||||||
|
{
|
||||||
|
my ($q) = @_;
|
||||||
|
|
||||||
|
my $project = $q->param ('project');
|
||||||
|
|
||||||
|
|
||||||
|
esmith::cgi::genHeaderNonCacheable ($q, \%conf, "View/Delete Web share users: $project");
|
||||||
|
|
||||||
|
print $q->startform
|
||||||
|
(-method => 'POST', -action => $q->url (-absolute => 1));
|
||||||
|
|
||||||
|
print $q->p ($q->a ({href => $q->url (-absolute => 1)},
|
||||||
|
'Click here'),
|
||||||
|
'to return.');
|
||||||
|
|
||||||
|
print $q->p ($q->b ('Current List of Users.'));
|
||||||
|
|
||||||
|
print $q->table ({border => 1, cellspacing => 1, cellpadding => 4});
|
||||||
|
|
||||||
|
|
||||||
|
print $q->Tr (esmith::cgi::genSmallCell ($q, $q->b ('User Name')),
|
||||||
|
esmith::cgi::genSmallCell ($q, $q->b ('Password')),
|
||||||
|
$q->td (' '));
|
||||||
|
|
||||||
|
|
||||||
|
my %webshareUsers = split(/,/, db_get_prop(\%projects, "$project", "Users") || '');
|
||||||
|
|
||||||
|
foreach my $users (sort %webshareUsers)
|
||||||
|
|
||||||
|
{
|
||||||
|
my $shareusers = ();
|
||||||
|
my @shareusers = split(/:/, $users);
|
||||||
|
|
||||||
|
if ("$users" ne ""){
|
||||||
|
|
||||||
|
print $q->Tr (esmith::cgi::genSmallCell ($q, "$shareusers[0]"),
|
||||||
|
esmith::cgi::genSmallCell ($q, "$shareusers[1]"),
|
||||||
|
esmith::cgi::genSmallCell ($q,
|
||||||
|
$q->a ({href => $q->url (-absolute => 1).
|
||||||
|
"?state=delUser&webShareUser=$users&shareUser=$shareusers[0]&webShareProject=$project"}, 'Delete..')));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
print '</table>';
|
||||||
|
|
||||||
|
esmith::cgi::genFooter ($q);
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
sub performDeleteUser ($)
|
||||||
|
{
|
||||||
|
my ($q) = @_;
|
||||||
|
my $project = $q->param ('webShareProject');
|
||||||
|
if ($project =~ /^([a-zA-Z0-9][\-\_\.a-zA-Z0-9]*)$/)
|
||||||
|
{
|
||||||
|
$project = $1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
showInitial ($q,
|
||||||
|
"Error: unexpected characters in web share name <B>\'$project\'</B>.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
my @Users = ();
|
||||||
|
my @UsersOut = ();
|
||||||
|
my @USERlist = ();
|
||||||
|
my $webShareUser = $q->param ('webShareUser');
|
||||||
|
my $ShareUser = $q->param ('shareUser');
|
||||||
|
if ($ShareUser =~ /^([a-zA-Z0-9][\-\_\@\.a-zA-Z0-9]*)$/)
|
||||||
|
{
|
||||||
|
$ShareUser = $1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
showInitial ($q,
|
||||||
|
"Error: unexpected characters in web share name <B>\'$ShareUser\'</B>.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
my %webshareUsers = split(/,/, db_get_prop(\%projects, "$project", "Users") || '');
|
||||||
|
|
||||||
|
|
||||||
|
if ($webShareUser)
|
||||||
|
{
|
||||||
|
foreach my $users (sort %webshareUsers)
|
||||||
|
{
|
||||||
|
unless ($users eq $webShareUser) { push(@UsersOut, "$users") }
|
||||||
|
@USERlist = join(',', @UsersOut);
|
||||||
|
}
|
||||||
|
db_set_prop(\%projects, "$project", "Users", "@USERlist")
|
||||||
|
or warn("Error occured updating WebShare db.\n");
|
||||||
|
|
||||||
|
system("/etc/e-smith/events/actions/webshare-deluser", "$project", "$ShareUser") == "0"
|
||||||
|
or die("Error occured while deleting user <B>$ShareUser</B>.\n");
|
||||||
|
}
|
||||||
|
showInitial ($q, "Successfully deleted Web share user <B>$ShareUser</B> from <B>$project</B>.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub deleteProject ($)
|
||||||
|
|
||||||
|
{
|
||||||
|
my ($q) = @_;
|
||||||
|
|
||||||
|
esmith::cgi::genHeaderNonCacheable ($q, \%conf, 'Delete Web share project');
|
||||||
|
|
||||||
|
print $q->startform
|
||||||
|
(-method => 'POST', -action => $q->url (-absolute => 1));
|
||||||
|
|
||||||
|
print $q->p ($q->a ({href => $q->url (-absolute => 1)},
|
||||||
|
'Click here'),
|
||||||
|
'to return.');
|
||||||
|
|
||||||
|
my $project = $q->param ('project');
|
||||||
|
my $description = $q->param ('description');
|
||||||
|
{
|
||||||
|
|
||||||
|
print $q->p ("Are you sure you wish to delete the Web share <B>$project</B> ?");
|
||||||
|
|
||||||
|
print $q->submit (-name => 'action', -value => 'Delete');
|
||||||
|
print $q->hidden (-name => 'project', -override => 1, -default => $project);
|
||||||
|
print $q->hidden (-name => 'state',
|
||||||
|
-override => 1,
|
||||||
|
-default => 'performDelete');
|
||||||
|
}
|
||||||
|
|
||||||
|
print $q->endform;
|
||||||
|
esmith::cgi::genFooter ($q);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
sub performDeleteProject ($)
|
||||||
|
|
||||||
|
{
|
||||||
|
my ($q) = @_;
|
||||||
|
|
||||||
|
my $project = $q->param ('project');
|
||||||
|
|
||||||
|
if ($project =~ /^([a-zA-Z0-9][\-\_\.a-zA-Z0-9]*)$/)
|
||||||
|
{
|
||||||
|
$project = $1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
showInitial ($q,
|
||||||
|
'Error: internal failure while removing web share ');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
db_delete(\%projects, "$project");
|
||||||
|
|
||||||
|
system ("/etc/e-smith/events/actions/webshare-delete $project") == "0"
|
||||||
|
or die("Error occured while deleting Webshare $project.\n");
|
||||||
|
|
||||||
|
showInitial ($q, "Successfully deleted Web share <B>$project</B>.");
|
||||||
|
return;
|
||||||
|
}
|
0
root/etc/e-smith/web/panels/manager/cgi-bin/.gitignore
vendored
Normal file
0
root/home/e-smith/db/webshare/.gitignore
vendored
Normal file
187
root/opt/webshare-tools/phpfm/conf/config.inc.php
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# Check "docs/configurating.txt" for a more complete description of how you
|
||||||
|
# set the different settings and what they will do.
|
||||||
|
|
||||||
|
# PHPFM's home directory
|
||||||
|
# Use forward slashes instead of backslashes and remeber a traling slash!
|
||||||
|
$home_directory = "./files/";
|
||||||
|
|
||||||
|
# Language of PHPFM.
|
||||||
|
$language = "english";
|
||||||
|
|
||||||
|
# Session save_path information
|
||||||
|
# *NIX systems - set this to "/tmp/";
|
||||||
|
# WINDOWS systems - set this to "c:/winnt/temp/";
|
||||||
|
# NB! replace "c:/winnt/" with the path to your windows folder
|
||||||
|
#
|
||||||
|
# Uncomment _only_ if you are experiencing errors!
|
||||||
|
$session_save_path = "/tmp/";
|
||||||
|
|
||||||
|
# Login configuration
|
||||||
|
$phpfm_auth = FALSE;
|
||||||
|
$username = "username";
|
||||||
|
$password = "password";
|
||||||
|
|
||||||
|
# Access configuration
|
||||||
|
# Each variable can be set to either TRUE or FALSE.
|
||||||
|
$AllowCreateFile = TRUE;
|
||||||
|
$AllowCreateFolder = TRUE;
|
||||||
|
$AllowDownload = TRUE;
|
||||||
|
$AllowRename = TRUE;
|
||||||
|
$AllowUpload = TRUE;
|
||||||
|
$AllowDelete = TRUE;
|
||||||
|
$AllowView = TRUE;
|
||||||
|
$AllowEdit = TRUE;
|
||||||
|
|
||||||
|
# Icons for files
|
||||||
|
$IconArray = array(
|
||||||
|
"text.gif" => "txt ini xml xsl ini inf cfg log nfo",
|
||||||
|
"layout.gif" => "html htm shtml htm pdf",
|
||||||
|
"script.gif" => "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js",
|
||||||
|
"image2.gif" => "jpeg jpe jpg gif png bmp",
|
||||||
|
"c.gif" => "c cpp",
|
||||||
|
"compressed.gif" => "zip tar gz tgz z ace rar arj cab bz2",
|
||||||
|
"sound2.gif" => "wav mp1 mp2 mp3 mid",
|
||||||
|
"movie.gif" => "mpeg mpg mov avi rm",
|
||||||
|
"binary.gif" => "exe com dll bin dat rpm deb",
|
||||||
|
);
|
||||||
|
|
||||||
|
# Files that can be edited in PHPFM's text editor
|
||||||
|
$EditableFiles = "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js txt ini html htm css xml xsl ini inf cfg log nfo bat";
|
||||||
|
|
||||||
|
# Files that can be viewed in PHPFM's image viewer.
|
||||||
|
$ViewableFiles = "jpeg jpe jpg gif png bmp";
|
||||||
|
|
||||||
|
# Format of last modification date
|
||||||
|
$ModifiedFormat = "H:i m-d-Y";
|
||||||
|
|
||||||
|
# Zoom levels for PHPFM's image viewer.
|
||||||
|
$ZoomArray = array(
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
10,
|
||||||
|
15,
|
||||||
|
20,
|
||||||
|
30,
|
||||||
|
50,
|
||||||
|
70,
|
||||||
|
100, # Base zoom level (do not change)
|
||||||
|
150,
|
||||||
|
200,
|
||||||
|
300,
|
||||||
|
500,
|
||||||
|
700,
|
||||||
|
1000,
|
||||||
|
);
|
||||||
|
|
||||||
|
# Hidden files and directories
|
||||||
|
$hide_file_extension = array(
|
||||||
|
"foo",
|
||||||
|
"bar",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_file_string = array(
|
||||||
|
".htaccess",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_directory_string = array(
|
||||||
|
"secret dir",
|
||||||
|
);
|
||||||
|
|
||||||
|
$MIMEtypes = array(
|
||||||
|
"application/andrew-inset" => "ez",
|
||||||
|
"application/mac-binhex40" => "hqx",
|
||||||
|
"application/mac-compactpro" => "cpt",
|
||||||
|
"application/msword" => "doc",
|
||||||
|
"application/octet-stream" => "bin dms lha lzh exe class so dll",
|
||||||
|
"application/oda" => "oda",
|
||||||
|
"application/pdf" => "pdf",
|
||||||
|
"application/postscript" => "ai eps ps",
|
||||||
|
"application/smil" => "smi smil",
|
||||||
|
"application/vnd.ms-excel" => "xls",
|
||||||
|
"application/vnd.ms-powerpoint" => "ppt",
|
||||||
|
"application/vnd.wap.wbxml" => "wbxml",
|
||||||
|
"application/vnd.wap.wmlc" => "wmlc",
|
||||||
|
"application/vnd.wap.wmlscriptc" => "wmlsc",
|
||||||
|
"application/x-bcpio" => "bcpio",
|
||||||
|
"application/x-cdlink" => "vcd",
|
||||||
|
"application/x-chess-pgn" => "pgn",
|
||||||
|
"application/x-cpio" => "cpio",
|
||||||
|
"application/x-csh" => "csh",
|
||||||
|
"application/x-director" => "dcr dir dxr",
|
||||||
|
"application/x-dvi" => "dvi",
|
||||||
|
"application/x-futuresplash" => "spl",
|
||||||
|
"application/x-gtar" => "gtar",
|
||||||
|
"application/x-hdf" => "hdf",
|
||||||
|
"application/x-javascript" => "js",
|
||||||
|
"application/x-koan" => "skp skd skt skm",
|
||||||
|
"application/x-latex" => "latex",
|
||||||
|
"application/x-netcdf" => "nc cdf",
|
||||||
|
"application/x-sh" => "sh",
|
||||||
|
"application/x-shar" => "shar",
|
||||||
|
"application/x-shockwave-flash" => "swf",
|
||||||
|
"application/x-stuffit" => "sit",
|
||||||
|
"application/x-sv4cpio" => "sv4cpio",
|
||||||
|
"application/x-sv4crc" => "sv4crc",
|
||||||
|
"application/x-tar" => "tar",
|
||||||
|
"application/x-tcl" => "tcl",
|
||||||
|
"application/x-tex" => "tex",
|
||||||
|
"application/x-texinfo" => "texinfo texi",
|
||||||
|
"application/x-troff" => "t tr roff",
|
||||||
|
"application/x-troff-man" => "man",
|
||||||
|
"application/x-troff-me" => "me",
|
||||||
|
"application/x-troff-ms" => "ms",
|
||||||
|
"application/x-ustar" => "ustar",
|
||||||
|
"application/x-wais-source" => "src",
|
||||||
|
"application/zip" => "zip",
|
||||||
|
"audio/basic" => "au snd",
|
||||||
|
"audio/midi" => "mid midi kar",
|
||||||
|
"audio/mpeg" => "mpga mp2 mp3",
|
||||||
|
"audio/x-aiff" => "aif aiff aifc",
|
||||||
|
"audio/x-mpegurl" => "m3u",
|
||||||
|
"audio/x-pn-realaudio" => "ram rm",
|
||||||
|
"audio/x-pn-realaudio-plugin" => "rpm",
|
||||||
|
"audio/x-realaudio" => "ra",
|
||||||
|
"audio/x-wav" => "wav",
|
||||||
|
"chemical/x-pdb" => "pdb",
|
||||||
|
"chemical/x-xyz" => "xyz",
|
||||||
|
"image/bmp" => "bmp",
|
||||||
|
"image/gif" => "gif",
|
||||||
|
"image/ief" => "ief",
|
||||||
|
"image/jpeg" => "jpeg jpg jpe",
|
||||||
|
"image/png" => "png",
|
||||||
|
"image/tiff" => "tiff tif",
|
||||||
|
"image/vnd.wap.wbmp" => "wbmp",
|
||||||
|
"image/x-cmu-raster" => "ras",
|
||||||
|
"image/x-portable-anymap" => "pnm",
|
||||||
|
"image/x-portable-bitmap" => "pbm",
|
||||||
|
"image/x-portable-graymap" => "pgm",
|
||||||
|
"image/x-portable-pixmap" => "ppm",
|
||||||
|
"image/x-rgb" => "rgb",
|
||||||
|
"image/x-xbitmap" => "xbm",
|
||||||
|
"image/x-xpixmap" => "xpm",
|
||||||
|
"image/x-xwindowdump" => "xwd",
|
||||||
|
"model/iges" => "igs iges",
|
||||||
|
"model/mesh" => "msh mesh silo",
|
||||||
|
"model/vrml" => "wrl vrml",
|
||||||
|
"text/css" => "css",
|
||||||
|
"text/html" => "html htm",
|
||||||
|
"text/plain" => "asc txt",
|
||||||
|
"text/richtext" => "rtx",
|
||||||
|
"text/rtf" => "rtf",
|
||||||
|
"text/sgml" => "sgml sgm",
|
||||||
|
"text/tab-separated-values" => "tsv",
|
||||||
|
"text/vnd.wap.wml" => "wml",
|
||||||
|
"text/vnd.wap.wmlscript" => "wmls",
|
||||||
|
"text/x-setext" => "etx",
|
||||||
|
"text/xml" => "xml xsl",
|
||||||
|
"video/mpeg" => "mpeg mpg mpe",
|
||||||
|
"video/quicktime" => "qt mov",
|
||||||
|
"video/vnd.mpegurl" => "mxu",
|
||||||
|
"video/x-msvideo" => "avi",
|
||||||
|
"video/x-sgi-movie" => "movie",
|
||||||
|
"x-conference/x-cooltalk" => "ice",
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
187
root/opt/webshare-tools/phpfm/conf/config.inc.php-full
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# Check "docs/configurating.txt" for a more complete description of how you
|
||||||
|
# set the different settings and what they will do.
|
||||||
|
|
||||||
|
# PHPFM's home directory
|
||||||
|
# Use forward slashes instead of backslashes and remeber a traling slash!
|
||||||
|
$home_directory = "./files/";
|
||||||
|
|
||||||
|
# Language of PHPFM.
|
||||||
|
$language = "english";
|
||||||
|
|
||||||
|
# Session save_path information
|
||||||
|
# *NIX systems - set this to "/tmp/";
|
||||||
|
# WINDOWS systems - set this to "c:/winnt/temp/";
|
||||||
|
# NB! replace "c:/winnt/" with the path to your windows folder
|
||||||
|
#
|
||||||
|
# Uncomment _only_ if you are experiencing errors!
|
||||||
|
$session_save_path = "/tmp/";
|
||||||
|
|
||||||
|
# Login configuration
|
||||||
|
$phpfm_auth = FALSE;
|
||||||
|
$username = "username";
|
||||||
|
$password = "password";
|
||||||
|
|
||||||
|
# Access configuration
|
||||||
|
# Each variable can be set to either TRUE or FALSE.
|
||||||
|
$AllowCreateFile = TRUE;
|
||||||
|
$AllowCreateFolder = TRUE;
|
||||||
|
$AllowDownload = TRUE;
|
||||||
|
$AllowRename = TRUE;
|
||||||
|
$AllowUpload = TRUE;
|
||||||
|
$AllowDelete = TRUE;
|
||||||
|
$AllowView = TRUE;
|
||||||
|
$AllowEdit = TRUE;
|
||||||
|
|
||||||
|
# Icons for files
|
||||||
|
$IconArray = array(
|
||||||
|
"text.gif" => "txt ini xml xsl ini inf cfg log nfo",
|
||||||
|
"layout.gif" => "html htm shtml htm pdf",
|
||||||
|
"script.gif" => "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js",
|
||||||
|
"image2.gif" => "jpeg jpe jpg gif png bmp",
|
||||||
|
"c.gif" => "c cpp",
|
||||||
|
"compressed.gif" => "zip tar gz tgz z ace rar arj cab bz2",
|
||||||
|
"sound2.gif" => "wav mp1 mp2 mp3 mid",
|
||||||
|
"movie.gif" => "mpeg mpg mov avi rm",
|
||||||
|
"binary.gif" => "exe com dll bin dat rpm deb",
|
||||||
|
);
|
||||||
|
|
||||||
|
# Files that can be edited in PHPFM's text editor
|
||||||
|
$EditableFiles = "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js txt ini html htm css xml xsl ini inf cfg log nfo bat";
|
||||||
|
|
||||||
|
# Files that can be viewed in PHPFM's image viewer.
|
||||||
|
$ViewableFiles = "jpeg jpe jpg gif png bmp";
|
||||||
|
|
||||||
|
# Format of last modification date
|
||||||
|
$ModifiedFormat = "H:i m-d-Y";
|
||||||
|
|
||||||
|
# Zoom levels for PHPFM's image viewer.
|
||||||
|
$ZoomArray = array(
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
10,
|
||||||
|
15,
|
||||||
|
20,
|
||||||
|
30,
|
||||||
|
50,
|
||||||
|
70,
|
||||||
|
100, # Base zoom level (do not change)
|
||||||
|
150,
|
||||||
|
200,
|
||||||
|
300,
|
||||||
|
500,
|
||||||
|
700,
|
||||||
|
1000,
|
||||||
|
);
|
||||||
|
|
||||||
|
# Hidden files and directories
|
||||||
|
$hide_file_extension = array(
|
||||||
|
"foo",
|
||||||
|
"bar",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_file_string = array(
|
||||||
|
".htaccess",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_directory_string = array(
|
||||||
|
"secret dir",
|
||||||
|
);
|
||||||
|
|
||||||
|
$MIMEtypes = array(
|
||||||
|
"application/andrew-inset" => "ez",
|
||||||
|
"application/mac-binhex40" => "hqx",
|
||||||
|
"application/mac-compactpro" => "cpt",
|
||||||
|
"application/msword" => "doc",
|
||||||
|
"application/octet-stream" => "bin dms lha lzh exe class so dll",
|
||||||
|
"application/oda" => "oda",
|
||||||
|
"application/pdf" => "pdf",
|
||||||
|
"application/postscript" => "ai eps ps",
|
||||||
|
"application/smil" => "smi smil",
|
||||||
|
"application/vnd.ms-excel" => "xls",
|
||||||
|
"application/vnd.ms-powerpoint" => "ppt",
|
||||||
|
"application/vnd.wap.wbxml" => "wbxml",
|
||||||
|
"application/vnd.wap.wmlc" => "wmlc",
|
||||||
|
"application/vnd.wap.wmlscriptc" => "wmlsc",
|
||||||
|
"application/x-bcpio" => "bcpio",
|
||||||
|
"application/x-cdlink" => "vcd",
|
||||||
|
"application/x-chess-pgn" => "pgn",
|
||||||
|
"application/x-cpio" => "cpio",
|
||||||
|
"application/x-csh" => "csh",
|
||||||
|
"application/x-director" => "dcr dir dxr",
|
||||||
|
"application/x-dvi" => "dvi",
|
||||||
|
"application/x-futuresplash" => "spl",
|
||||||
|
"application/x-gtar" => "gtar",
|
||||||
|
"application/x-hdf" => "hdf",
|
||||||
|
"application/x-javascript" => "js",
|
||||||
|
"application/x-koan" => "skp skd skt skm",
|
||||||
|
"application/x-latex" => "latex",
|
||||||
|
"application/x-netcdf" => "nc cdf",
|
||||||
|
"application/x-sh" => "sh",
|
||||||
|
"application/x-shar" => "shar",
|
||||||
|
"application/x-shockwave-flash" => "swf",
|
||||||
|
"application/x-stuffit" => "sit",
|
||||||
|
"application/x-sv4cpio" => "sv4cpio",
|
||||||
|
"application/x-sv4crc" => "sv4crc",
|
||||||
|
"application/x-tar" => "tar",
|
||||||
|
"application/x-tcl" => "tcl",
|
||||||
|
"application/x-tex" => "tex",
|
||||||
|
"application/x-texinfo" => "texinfo texi",
|
||||||
|
"application/x-troff" => "t tr roff",
|
||||||
|
"application/x-troff-man" => "man",
|
||||||
|
"application/x-troff-me" => "me",
|
||||||
|
"application/x-troff-ms" => "ms",
|
||||||
|
"application/x-ustar" => "ustar",
|
||||||
|
"application/x-wais-source" => "src",
|
||||||
|
"application/zip" => "zip",
|
||||||
|
"audio/basic" => "au snd",
|
||||||
|
"audio/midi" => "mid midi kar",
|
||||||
|
"audio/mpeg" => "mpga mp2 mp3",
|
||||||
|
"audio/x-aiff" => "aif aiff aifc",
|
||||||
|
"audio/x-mpegurl" => "m3u",
|
||||||
|
"audio/x-pn-realaudio" => "ram rm",
|
||||||
|
"audio/x-pn-realaudio-plugin" => "rpm",
|
||||||
|
"audio/x-realaudio" => "ra",
|
||||||
|
"audio/x-wav" => "wav",
|
||||||
|
"chemical/x-pdb" => "pdb",
|
||||||
|
"chemical/x-xyz" => "xyz",
|
||||||
|
"image/bmp" => "bmp",
|
||||||
|
"image/gif" => "gif",
|
||||||
|
"image/ief" => "ief",
|
||||||
|
"image/jpeg" => "jpeg jpg jpe",
|
||||||
|
"image/png" => "png",
|
||||||
|
"image/tiff" => "tiff tif",
|
||||||
|
"image/vnd.wap.wbmp" => "wbmp",
|
||||||
|
"image/x-cmu-raster" => "ras",
|
||||||
|
"image/x-portable-anymap" => "pnm",
|
||||||
|
"image/x-portable-bitmap" => "pbm",
|
||||||
|
"image/x-portable-graymap" => "pgm",
|
||||||
|
"image/x-portable-pixmap" => "ppm",
|
||||||
|
"image/x-rgb" => "rgb",
|
||||||
|
"image/x-xbitmap" => "xbm",
|
||||||
|
"image/x-xpixmap" => "xpm",
|
||||||
|
"image/x-xwindowdump" => "xwd",
|
||||||
|
"model/iges" => "igs iges",
|
||||||
|
"model/mesh" => "msh mesh silo",
|
||||||
|
"model/vrml" => "wrl vrml",
|
||||||
|
"text/css" => "css",
|
||||||
|
"text/html" => "html htm",
|
||||||
|
"text/plain" => "asc txt",
|
||||||
|
"text/richtext" => "rtx",
|
||||||
|
"text/rtf" => "rtf",
|
||||||
|
"text/sgml" => "sgml sgm",
|
||||||
|
"text/tab-separated-values" => "tsv",
|
||||||
|
"text/vnd.wap.wml" => "wml",
|
||||||
|
"text/vnd.wap.wmlscript" => "wmls",
|
||||||
|
"text/x-setext" => "etx",
|
||||||
|
"text/xml" => "xml xsl",
|
||||||
|
"video/mpeg" => "mpeg mpg mpe",
|
||||||
|
"video/quicktime" => "qt mov",
|
||||||
|
"video/vnd.mpegurl" => "mxu",
|
||||||
|
"video/x-msvideo" => "avi",
|
||||||
|
"video/x-sgi-movie" => "movie",
|
||||||
|
"x-conference/x-cooltalk" => "ice",
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
187
root/opt/webshare-tools/phpfm/conf/config.inc.php-nodelete
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# Check "docs/configurating.txt" for a more complete description of how you
|
||||||
|
# set the different settings and what they will do.
|
||||||
|
|
||||||
|
# PHPFM's home directory
|
||||||
|
# Use forward slashes instead of backslashes and remeber a traling slash!
|
||||||
|
$home_directory = "./files/";
|
||||||
|
|
||||||
|
# Language of PHPFM.
|
||||||
|
$language = "english";
|
||||||
|
|
||||||
|
# Session save_path information
|
||||||
|
# *NIX systems - set this to "/tmp/";
|
||||||
|
# WINDOWS systems - set this to "c:/winnt/temp/";
|
||||||
|
# NB! replace "c:/winnt/" with the path to your windows folder
|
||||||
|
#
|
||||||
|
# Uncomment _only_ if you are experiencing errors!
|
||||||
|
$session_save_path = "/tmp/";
|
||||||
|
|
||||||
|
# Login configuration
|
||||||
|
$phpfm_auth = FALSE;
|
||||||
|
$username = "username";
|
||||||
|
$password = "password";
|
||||||
|
|
||||||
|
# Access configuration
|
||||||
|
# Each variable can be set to either TRUE or FALSE.
|
||||||
|
$AllowCreateFile = TRUE;
|
||||||
|
$AllowCreateFolder = TRUE;
|
||||||
|
$AllowDownload = TRUE;
|
||||||
|
$AllowRename = TRUE;
|
||||||
|
$AllowUpload = TRUE;
|
||||||
|
$AllowDelete = FALSE;
|
||||||
|
$AllowView = TRUE;
|
||||||
|
$AllowEdit = TRUE;
|
||||||
|
|
||||||
|
# Icons for files
|
||||||
|
$IconArray = array(
|
||||||
|
"text.gif" => "txt ini xml xsl ini inf cfg log nfo",
|
||||||
|
"layout.gif" => "html htm shtml htm pdf",
|
||||||
|
"script.gif" => "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js",
|
||||||
|
"image2.gif" => "jpeg jpe jpg gif png bmp",
|
||||||
|
"c.gif" => "c cpp",
|
||||||
|
"compressed.gif" => "zip tar gz tgz z ace rar arj cab bz2",
|
||||||
|
"sound2.gif" => "wav mp1 mp2 mp3 mid",
|
||||||
|
"movie.gif" => "mpeg mpg mov avi rm",
|
||||||
|
"binary.gif" => "exe com dll bin dat rpm deb",
|
||||||
|
);
|
||||||
|
|
||||||
|
# Files that can be edited in PHPFM's text editor
|
||||||
|
$EditableFiles = "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js txt ini html htm css xml xsl ini inf cfg log nfo bat";
|
||||||
|
|
||||||
|
# Files that can be viewed in PHPFM's image viewer.
|
||||||
|
$ViewableFiles = "jpeg jpe jpg gif png bmp";
|
||||||
|
|
||||||
|
# Format of last modification date
|
||||||
|
$ModifiedFormat = "H:i m-d-Y";
|
||||||
|
|
||||||
|
# Zoom levels for PHPFM's image viewer.
|
||||||
|
$ZoomArray = array(
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
10,
|
||||||
|
15,
|
||||||
|
20,
|
||||||
|
30,
|
||||||
|
50,
|
||||||
|
70,
|
||||||
|
100, # Base zoom level (do not change)
|
||||||
|
150,
|
||||||
|
200,
|
||||||
|
300,
|
||||||
|
500,
|
||||||
|
700,
|
||||||
|
1000,
|
||||||
|
);
|
||||||
|
|
||||||
|
# Hidden files and directories
|
||||||
|
$hide_file_extension = array(
|
||||||
|
"foo",
|
||||||
|
"bar",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_file_string = array(
|
||||||
|
".htaccess",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_directory_string = array(
|
||||||
|
"secret dir",
|
||||||
|
);
|
||||||
|
|
||||||
|
$MIMEtypes = array(
|
||||||
|
"application/andrew-inset" => "ez",
|
||||||
|
"application/mac-binhex40" => "hqx",
|
||||||
|
"application/mac-compactpro" => "cpt",
|
||||||
|
"application/msword" => "doc",
|
||||||
|
"application/octet-stream" => "bin dms lha lzh exe class so dll",
|
||||||
|
"application/oda" => "oda",
|
||||||
|
"application/pdf" => "pdf",
|
||||||
|
"application/postscript" => "ai eps ps",
|
||||||
|
"application/smil" => "smi smil",
|
||||||
|
"application/vnd.ms-excel" => "xls",
|
||||||
|
"application/vnd.ms-powerpoint" => "ppt",
|
||||||
|
"application/vnd.wap.wbxml" => "wbxml",
|
||||||
|
"application/vnd.wap.wmlc" => "wmlc",
|
||||||
|
"application/vnd.wap.wmlscriptc" => "wmlsc",
|
||||||
|
"application/x-bcpio" => "bcpio",
|
||||||
|
"application/x-cdlink" => "vcd",
|
||||||
|
"application/x-chess-pgn" => "pgn",
|
||||||
|
"application/x-cpio" => "cpio",
|
||||||
|
"application/x-csh" => "csh",
|
||||||
|
"application/x-director" => "dcr dir dxr",
|
||||||
|
"application/x-dvi" => "dvi",
|
||||||
|
"application/x-futuresplash" => "spl",
|
||||||
|
"application/x-gtar" => "gtar",
|
||||||
|
"application/x-hdf" => "hdf",
|
||||||
|
"application/x-javascript" => "js",
|
||||||
|
"application/x-koan" => "skp skd skt skm",
|
||||||
|
"application/x-latex" => "latex",
|
||||||
|
"application/x-netcdf" => "nc cdf",
|
||||||
|
"application/x-sh" => "sh",
|
||||||
|
"application/x-shar" => "shar",
|
||||||
|
"application/x-shockwave-flash" => "swf",
|
||||||
|
"application/x-stuffit" => "sit",
|
||||||
|
"application/x-sv4cpio" => "sv4cpio",
|
||||||
|
"application/x-sv4crc" => "sv4crc",
|
||||||
|
"application/x-tar" => "tar",
|
||||||
|
"application/x-tcl" => "tcl",
|
||||||
|
"application/x-tex" => "tex",
|
||||||
|
"application/x-texinfo" => "texinfo texi",
|
||||||
|
"application/x-troff" => "t tr roff",
|
||||||
|
"application/x-troff-man" => "man",
|
||||||
|
"application/x-troff-me" => "me",
|
||||||
|
"application/x-troff-ms" => "ms",
|
||||||
|
"application/x-ustar" => "ustar",
|
||||||
|
"application/x-wais-source" => "src",
|
||||||
|
"application/zip" => "zip",
|
||||||
|
"audio/basic" => "au snd",
|
||||||
|
"audio/midi" => "mid midi kar",
|
||||||
|
"audio/mpeg" => "mpga mp2 mp3",
|
||||||
|
"audio/x-aiff" => "aif aiff aifc",
|
||||||
|
"audio/x-mpegurl" => "m3u",
|
||||||
|
"audio/x-pn-realaudio" => "ram rm",
|
||||||
|
"audio/x-pn-realaudio-plugin" => "rpm",
|
||||||
|
"audio/x-realaudio" => "ra",
|
||||||
|
"audio/x-wav" => "wav",
|
||||||
|
"chemical/x-pdb" => "pdb",
|
||||||
|
"chemical/x-xyz" => "xyz",
|
||||||
|
"image/bmp" => "bmp",
|
||||||
|
"image/gif" => "gif",
|
||||||
|
"image/ief" => "ief",
|
||||||
|
"image/jpeg" => "jpeg jpg jpe",
|
||||||
|
"image/png" => "png",
|
||||||
|
"image/tiff" => "tiff tif",
|
||||||
|
"image/vnd.wap.wbmp" => "wbmp",
|
||||||
|
"image/x-cmu-raster" => "ras",
|
||||||
|
"image/x-portable-anymap" => "pnm",
|
||||||
|
"image/x-portable-bitmap" => "pbm",
|
||||||
|
"image/x-portable-graymap" => "pgm",
|
||||||
|
"image/x-portable-pixmap" => "ppm",
|
||||||
|
"image/x-rgb" => "rgb",
|
||||||
|
"image/x-xbitmap" => "xbm",
|
||||||
|
"image/x-xpixmap" => "xpm",
|
||||||
|
"image/x-xwindowdump" => "xwd",
|
||||||
|
"model/iges" => "igs iges",
|
||||||
|
"model/mesh" => "msh mesh silo",
|
||||||
|
"model/vrml" => "wrl vrml",
|
||||||
|
"text/css" => "css",
|
||||||
|
"text/html" => "html htm",
|
||||||
|
"text/plain" => "asc txt",
|
||||||
|
"text/richtext" => "rtx",
|
||||||
|
"text/rtf" => "rtf",
|
||||||
|
"text/sgml" => "sgml sgm",
|
||||||
|
"text/tab-separated-values" => "tsv",
|
||||||
|
"text/vnd.wap.wml" => "wml",
|
||||||
|
"text/vnd.wap.wmlscript" => "wmls",
|
||||||
|
"text/x-setext" => "etx",
|
||||||
|
"text/xml" => "xml xsl",
|
||||||
|
"video/mpeg" => "mpeg mpg mpe",
|
||||||
|
"video/quicktime" => "qt mov",
|
||||||
|
"video/vnd.mpegurl" => "mxu",
|
||||||
|
"video/x-msvideo" => "avi",
|
||||||
|
"video/x-sgi-movie" => "movie",
|
||||||
|
"x-conference/x-cooltalk" => "ice",
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
187
root/opt/webshare-tools/phpfm/conf/config.inc.php-updown
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# Check "docs/configurating.txt" for a more complete description of how you
|
||||||
|
# set the different settings and what they will do.
|
||||||
|
|
||||||
|
# PHPFM's home directory
|
||||||
|
# Use forward slashes instead of backslashes and remeber a traling slash!
|
||||||
|
$home_directory = "./files/";
|
||||||
|
|
||||||
|
# Language of PHPFM.
|
||||||
|
$language = "english";
|
||||||
|
|
||||||
|
# Session save_path information
|
||||||
|
# *NIX systems - set this to "/tmp/";
|
||||||
|
# WINDOWS systems - set this to "c:/winnt/temp/";
|
||||||
|
# NB! replace "c:/winnt/" with the path to your windows folder
|
||||||
|
#
|
||||||
|
# Uncomment _only_ if you are experiencing errors!
|
||||||
|
$session_save_path = "/tmp/";
|
||||||
|
|
||||||
|
# Login configuration
|
||||||
|
$phpfm_auth = FALSE;
|
||||||
|
$username = "username";
|
||||||
|
$password = "password";
|
||||||
|
|
||||||
|
# Access configuration
|
||||||
|
# Each variable can be set to either TRUE or FALSE.
|
||||||
|
$AllowCreateFile = FALSE;
|
||||||
|
$AllowCreateFolder = FALSE;
|
||||||
|
$AllowDownload = TRUE;
|
||||||
|
$AllowRename = FALSE;
|
||||||
|
$AllowUpload = TRUE;
|
||||||
|
$AllowDelete = FALSE;
|
||||||
|
$AllowView = TRUE;
|
||||||
|
$AllowEdit = FALSE;
|
||||||
|
|
||||||
|
# Icons for files
|
||||||
|
$IconArray = array(
|
||||||
|
"text.gif" => "txt ini xml xsl ini inf cfg log nfo",
|
||||||
|
"layout.gif" => "html htm shtml htm pdf",
|
||||||
|
"script.gif" => "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js",
|
||||||
|
"image2.gif" => "jpeg jpe jpg gif png bmp",
|
||||||
|
"c.gif" => "c cpp",
|
||||||
|
"compressed.gif" => "zip tar gz tgz z ace rar arj cab bz2",
|
||||||
|
"sound2.gif" => "wav mp1 mp2 mp3 mid",
|
||||||
|
"movie.gif" => "mpeg mpg mov avi rm",
|
||||||
|
"binary.gif" => "exe com dll bin dat rpm deb",
|
||||||
|
);
|
||||||
|
|
||||||
|
# Files that can be edited in PHPFM's text editor
|
||||||
|
$EditableFiles = "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js txt ini html htm css xml xsl ini inf cfg log nfo bat";
|
||||||
|
|
||||||
|
# Files that can be viewed in PHPFM's image viewer.
|
||||||
|
$ViewableFiles = "jpeg jpe jpg gif png bmp";
|
||||||
|
|
||||||
|
# Format of last modification date
|
||||||
|
$ModifiedFormat = "H:i m-d-Y";
|
||||||
|
|
||||||
|
# Zoom levels for PHPFM's image viewer.
|
||||||
|
$ZoomArray = array(
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
10,
|
||||||
|
15,
|
||||||
|
20,
|
||||||
|
30,
|
||||||
|
50,
|
||||||
|
70,
|
||||||
|
100, # Base zoom level (do not change)
|
||||||
|
150,
|
||||||
|
200,
|
||||||
|
300,
|
||||||
|
500,
|
||||||
|
700,
|
||||||
|
1000,
|
||||||
|
);
|
||||||
|
|
||||||
|
# Hidden files and directories
|
||||||
|
$hide_file_extension = array(
|
||||||
|
"foo",
|
||||||
|
"bar",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_file_string = array(
|
||||||
|
".htaccess",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_directory_string = array(
|
||||||
|
"secret dir",
|
||||||
|
);
|
||||||
|
|
||||||
|
$MIMEtypes = array(
|
||||||
|
"application/andrew-inset" => "ez",
|
||||||
|
"application/mac-binhex40" => "hqx",
|
||||||
|
"application/mac-compactpro" => "cpt",
|
||||||
|
"application/msword" => "doc",
|
||||||
|
"application/octet-stream" => "bin dms lha lzh exe class so dll",
|
||||||
|
"application/oda" => "oda",
|
||||||
|
"application/pdf" => "pdf",
|
||||||
|
"application/postscript" => "ai eps ps",
|
||||||
|
"application/smil" => "smi smil",
|
||||||
|
"application/vnd.ms-excel" => "xls",
|
||||||
|
"application/vnd.ms-powerpoint" => "ppt",
|
||||||
|
"application/vnd.wap.wbxml" => "wbxml",
|
||||||
|
"application/vnd.wap.wmlc" => "wmlc",
|
||||||
|
"application/vnd.wap.wmlscriptc" => "wmlsc",
|
||||||
|
"application/x-bcpio" => "bcpio",
|
||||||
|
"application/x-cdlink" => "vcd",
|
||||||
|
"application/x-chess-pgn" => "pgn",
|
||||||
|
"application/x-cpio" => "cpio",
|
||||||
|
"application/x-csh" => "csh",
|
||||||
|
"application/x-director" => "dcr dir dxr",
|
||||||
|
"application/x-dvi" => "dvi",
|
||||||
|
"application/x-futuresplash" => "spl",
|
||||||
|
"application/x-gtar" => "gtar",
|
||||||
|
"application/x-hdf" => "hdf",
|
||||||
|
"application/x-javascript" => "js",
|
||||||
|
"application/x-koan" => "skp skd skt skm",
|
||||||
|
"application/x-latex" => "latex",
|
||||||
|
"application/x-netcdf" => "nc cdf",
|
||||||
|
"application/x-sh" => "sh",
|
||||||
|
"application/x-shar" => "shar",
|
||||||
|
"application/x-shockwave-flash" => "swf",
|
||||||
|
"application/x-stuffit" => "sit",
|
||||||
|
"application/x-sv4cpio" => "sv4cpio",
|
||||||
|
"application/x-sv4crc" => "sv4crc",
|
||||||
|
"application/x-tar" => "tar",
|
||||||
|
"application/x-tcl" => "tcl",
|
||||||
|
"application/x-tex" => "tex",
|
||||||
|
"application/x-texinfo" => "texinfo texi",
|
||||||
|
"application/x-troff" => "t tr roff",
|
||||||
|
"application/x-troff-man" => "man",
|
||||||
|
"application/x-troff-me" => "me",
|
||||||
|
"application/x-troff-ms" => "ms",
|
||||||
|
"application/x-ustar" => "ustar",
|
||||||
|
"application/x-wais-source" => "src",
|
||||||
|
"application/zip" => "zip",
|
||||||
|
"audio/basic" => "au snd",
|
||||||
|
"audio/midi" => "mid midi kar",
|
||||||
|
"audio/mpeg" => "mpga mp2 mp3",
|
||||||
|
"audio/x-aiff" => "aif aiff aifc",
|
||||||
|
"audio/x-mpegurl" => "m3u",
|
||||||
|
"audio/x-pn-realaudio" => "ram rm",
|
||||||
|
"audio/x-pn-realaudio-plugin" => "rpm",
|
||||||
|
"audio/x-realaudio" => "ra",
|
||||||
|
"audio/x-wav" => "wav",
|
||||||
|
"chemical/x-pdb" => "pdb",
|
||||||
|
"chemical/x-xyz" => "xyz",
|
||||||
|
"image/bmp" => "bmp",
|
||||||
|
"image/gif" => "gif",
|
||||||
|
"image/ief" => "ief",
|
||||||
|
"image/jpeg" => "jpeg jpg jpe",
|
||||||
|
"image/png" => "png",
|
||||||
|
"image/tiff" => "tiff tif",
|
||||||
|
"image/vnd.wap.wbmp" => "wbmp",
|
||||||
|
"image/x-cmu-raster" => "ras",
|
||||||
|
"image/x-portable-anymap" => "pnm",
|
||||||
|
"image/x-portable-bitmap" => "pbm",
|
||||||
|
"image/x-portable-graymap" => "pgm",
|
||||||
|
"image/x-portable-pixmap" => "ppm",
|
||||||
|
"image/x-rgb" => "rgb",
|
||||||
|
"image/x-xbitmap" => "xbm",
|
||||||
|
"image/x-xpixmap" => "xpm",
|
||||||
|
"image/x-xwindowdump" => "xwd",
|
||||||
|
"model/iges" => "igs iges",
|
||||||
|
"model/mesh" => "msh mesh silo",
|
||||||
|
"model/vrml" => "wrl vrml",
|
||||||
|
"text/css" => "css",
|
||||||
|
"text/html" => "html htm",
|
||||||
|
"text/plain" => "asc txt",
|
||||||
|
"text/richtext" => "rtx",
|
||||||
|
"text/rtf" => "rtf",
|
||||||
|
"text/sgml" => "sgml sgm",
|
||||||
|
"text/tab-separated-values" => "tsv",
|
||||||
|
"text/vnd.wap.wml" => "wml",
|
||||||
|
"text/vnd.wap.wmlscript" => "wmls",
|
||||||
|
"text/x-setext" => "etx",
|
||||||
|
"text/xml" => "xml xsl",
|
||||||
|
"video/mpeg" => "mpeg mpg mpe",
|
||||||
|
"video/quicktime" => "qt mov",
|
||||||
|
"video/vnd.mpegurl" => "mxu",
|
||||||
|
"video/x-msvideo" => "avi",
|
||||||
|
"video/x-sgi-movie" => "movie",
|
||||||
|
"x-conference/x-cooltalk" => "ice",
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
187
root/opt/webshare-tools/phpfm/conf/config.inc.php-view
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
# Check "docs/configurating.txt" for a more complete description of how you
|
||||||
|
# set the different settings and what they will do.
|
||||||
|
|
||||||
|
# PHPFM's home directory
|
||||||
|
# Use forward slashes instead of backslashes and remeber a traling slash!
|
||||||
|
$home_directory = "./files/";
|
||||||
|
|
||||||
|
# Language of PHPFM.
|
||||||
|
$language = "english";
|
||||||
|
|
||||||
|
# Session save_path information
|
||||||
|
# *NIX systems - set this to "/tmp/";
|
||||||
|
# WINDOWS systems - set this to "c:/winnt/temp/";
|
||||||
|
# NB! replace "c:/winnt/" with the path to your windows folder
|
||||||
|
#
|
||||||
|
# Uncomment _only_ if you are experiencing errors!
|
||||||
|
$session_save_path = "/tmp/";
|
||||||
|
|
||||||
|
# Login configuration
|
||||||
|
$phpfm_auth = FALSE;
|
||||||
|
$username = "username";
|
||||||
|
$password = "password";
|
||||||
|
|
||||||
|
# Access configuration
|
||||||
|
# Each variable can be set to either TRUE or FALSE.
|
||||||
|
$AllowCreateFile = FALSE;
|
||||||
|
$AllowCreateFolder = FALSE;
|
||||||
|
$AllowDownload = TRUE;
|
||||||
|
$AllowRename = FALSE;
|
||||||
|
$AllowUpload = FALSE;
|
||||||
|
$AllowDelete = FALSE;
|
||||||
|
$AllowView = TRUE;
|
||||||
|
$AllowEdit = FALSE;
|
||||||
|
|
||||||
|
# Icons for files
|
||||||
|
$IconArray = array(
|
||||||
|
"text.gif" => "txt ini xml xsl ini inf cfg log nfo",
|
||||||
|
"layout.gif" => "html htm shtml htm pdf",
|
||||||
|
"script.gif" => "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js",
|
||||||
|
"image2.gif" => "jpeg jpe jpg gif png bmp",
|
||||||
|
"c.gif" => "c cpp",
|
||||||
|
"compressed.gif" => "zip tar gz tgz z ace rar arj cab bz2",
|
||||||
|
"sound2.gif" => "wav mp1 mp2 mp3 mid",
|
||||||
|
"movie.gif" => "mpeg mpg mov avi rm",
|
||||||
|
"binary.gif" => "exe com dll bin dat rpm deb",
|
||||||
|
);
|
||||||
|
|
||||||
|
# Files that can be edited in PHPFM's text editor
|
||||||
|
$EditableFiles = "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js txt ini html htm css xml xsl ini inf cfg log nfo bat";
|
||||||
|
|
||||||
|
# Files that can be viewed in PHPFM's image viewer.
|
||||||
|
$ViewableFiles = "jpeg jpe jpg gif png bmp";
|
||||||
|
|
||||||
|
# Format of last modification date
|
||||||
|
$ModifiedFormat = "H:i m-d-Y";
|
||||||
|
|
||||||
|
# Zoom levels for PHPFM's image viewer.
|
||||||
|
$ZoomArray = array(
|
||||||
|
5,
|
||||||
|
7,
|
||||||
|
10,
|
||||||
|
15,
|
||||||
|
20,
|
||||||
|
30,
|
||||||
|
50,
|
||||||
|
70,
|
||||||
|
100, # Base zoom level (do not change)
|
||||||
|
150,
|
||||||
|
200,
|
||||||
|
300,
|
||||||
|
500,
|
||||||
|
700,
|
||||||
|
1000,
|
||||||
|
);
|
||||||
|
|
||||||
|
# Hidden files and directories
|
||||||
|
$hide_file_extension = array(
|
||||||
|
"foo",
|
||||||
|
"bar",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_file_string = array(
|
||||||
|
".htaccess",
|
||||||
|
);
|
||||||
|
|
||||||
|
$hide_directory_string = array(
|
||||||
|
"secret dir",
|
||||||
|
);
|
||||||
|
|
||||||
|
$MIMEtypes = array(
|
||||||
|
"application/andrew-inset" => "ez",
|
||||||
|
"application/mac-binhex40" => "hqx",
|
||||||
|
"application/mac-compactpro" => "cpt",
|
||||||
|
"application/msword" => "doc",
|
||||||
|
"application/octet-stream" => "bin dms lha lzh exe class so dll",
|
||||||
|
"application/oda" => "oda",
|
||||||
|
"application/pdf" => "pdf",
|
||||||
|
"application/postscript" => "ai eps ps",
|
||||||
|
"application/smil" => "smi smil",
|
||||||
|
"application/vnd.ms-excel" => "xls",
|
||||||
|
"application/vnd.ms-powerpoint" => "ppt",
|
||||||
|
"application/vnd.wap.wbxml" => "wbxml",
|
||||||
|
"application/vnd.wap.wmlc" => "wmlc",
|
||||||
|
"application/vnd.wap.wmlscriptc" => "wmlsc",
|
||||||
|
"application/x-bcpio" => "bcpio",
|
||||||
|
"application/x-cdlink" => "vcd",
|
||||||
|
"application/x-chess-pgn" => "pgn",
|
||||||
|
"application/x-cpio" => "cpio",
|
||||||
|
"application/x-csh" => "csh",
|
||||||
|
"application/x-director" => "dcr dir dxr",
|
||||||
|
"application/x-dvi" => "dvi",
|
||||||
|
"application/x-futuresplash" => "spl",
|
||||||
|
"application/x-gtar" => "gtar",
|
||||||
|
"application/x-hdf" => "hdf",
|
||||||
|
"application/x-javascript" => "js",
|
||||||
|
"application/x-koan" => "skp skd skt skm",
|
||||||
|
"application/x-latex" => "latex",
|
||||||
|
"application/x-netcdf" => "nc cdf",
|
||||||
|
"application/x-sh" => "sh",
|
||||||
|
"application/x-shar" => "shar",
|
||||||
|
"application/x-shockwave-flash" => "swf",
|
||||||
|
"application/x-stuffit" => "sit",
|
||||||
|
"application/x-sv4cpio" => "sv4cpio",
|
||||||
|
"application/x-sv4crc" => "sv4crc",
|
||||||
|
"application/x-tar" => "tar",
|
||||||
|
"application/x-tcl" => "tcl",
|
||||||
|
"application/x-tex" => "tex",
|
||||||
|
"application/x-texinfo" => "texinfo texi",
|
||||||
|
"application/x-troff" => "t tr roff",
|
||||||
|
"application/x-troff-man" => "man",
|
||||||
|
"application/x-troff-me" => "me",
|
||||||
|
"application/x-troff-ms" => "ms",
|
||||||
|
"application/x-ustar" => "ustar",
|
||||||
|
"application/x-wais-source" => "src",
|
||||||
|
"application/zip" => "zip",
|
||||||
|
"audio/basic" => "au snd",
|
||||||
|
"audio/midi" => "mid midi kar",
|
||||||
|
"audio/mpeg" => "mpga mp2 mp3",
|
||||||
|
"audio/x-aiff" => "aif aiff aifc",
|
||||||
|
"audio/x-mpegurl" => "m3u",
|
||||||
|
"audio/x-pn-realaudio" => "ram rm",
|
||||||
|
"audio/x-pn-realaudio-plugin" => "rpm",
|
||||||
|
"audio/x-realaudio" => "ra",
|
||||||
|
"audio/x-wav" => "wav",
|
||||||
|
"chemical/x-pdb" => "pdb",
|
||||||
|
"chemical/x-xyz" => "xyz",
|
||||||
|
"image/bmp" => "bmp",
|
||||||
|
"image/gif" => "gif",
|
||||||
|
"image/ief" => "ief",
|
||||||
|
"image/jpeg" => "jpeg jpg jpe",
|
||||||
|
"image/png" => "png",
|
||||||
|
"image/tiff" => "tiff tif",
|
||||||
|
"image/vnd.wap.wbmp" => "wbmp",
|
||||||
|
"image/x-cmu-raster" => "ras",
|
||||||
|
"image/x-portable-anymap" => "pnm",
|
||||||
|
"image/x-portable-bitmap" => "pbm",
|
||||||
|
"image/x-portable-graymap" => "pgm",
|
||||||
|
"image/x-portable-pixmap" => "ppm",
|
||||||
|
"image/x-rgb" => "rgb",
|
||||||
|
"image/x-xbitmap" => "xbm",
|
||||||
|
"image/x-xpixmap" => "xpm",
|
||||||
|
"image/x-xwindowdump" => "xwd",
|
||||||
|
"model/iges" => "igs iges",
|
||||||
|
"model/mesh" => "msh mesh silo",
|
||||||
|
"model/vrml" => "wrl vrml",
|
||||||
|
"text/css" => "css",
|
||||||
|
"text/html" => "html htm",
|
||||||
|
"text/plain" => "asc txt",
|
||||||
|
"text/richtext" => "rtx",
|
||||||
|
"text/rtf" => "rtf",
|
||||||
|
"text/sgml" => "sgml sgm",
|
||||||
|
"text/tab-separated-values" => "tsv",
|
||||||
|
"text/vnd.wap.wml" => "wml",
|
||||||
|
"text/vnd.wap.wmlscript" => "wmls",
|
||||||
|
"text/x-setext" => "etx",
|
||||||
|
"text/xml" => "xml xsl",
|
||||||
|
"video/mpeg" => "mpeg mpg mpe",
|
||||||
|
"video/quicktime" => "qt mov",
|
||||||
|
"video/vnd.mpegurl" => "mxu",
|
||||||
|
"video/x-msvideo" => "avi",
|
||||||
|
"video/x-sgi-movie" => "movie",
|
||||||
|
"x-conference/x-cooltalk" => "ice",
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
67
root/opt/webshare-tools/phpfm/docs/changelog.txt
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
Changelog for PHPFM:
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
PHPFM version 0.2.3:
|
||||||
|
|
||||||
|
- login problems are (hopefully) fixed now.
|
||||||
|
- problems with magic quotes fixed.
|
||||||
|
- various code clean-ups - not that it matters.
|
||||||
|
- folders will be created with 777 permissions now.
|
||||||
|
- an IE bug that caused an error when opening a file at the download prompt
|
||||||
|
has been fixed now.
|
||||||
|
- slashes are now stripped form uploaded files' names.
|
||||||
|
- each language now has it's own charset.
|
||||||
|
- and guess what - more languages! :)
|
||||||
|
|
||||||
|
|
||||||
|
PHPFM version 0.2.2:
|
||||||
|
|
||||||
|
- problems using view and download now fixed!
|
||||||
|
- each folder is now a link in the "Index of" path.
|
||||||
|
- create new folder, create new file and upload files can no longer be seen
|
||||||
|
when they are disabled in the configuration file.
|
||||||
|
- changed all occurrences of <? to <?php for compatility.
|
||||||
|
- (again) more languages.
|
||||||
|
|
||||||
|
|
||||||
|
PHPFM version 0.2.1:
|
||||||
|
|
||||||
|
- login system now uses sessions and no longer requires the client to accept
|
||||||
|
cookies for it to work proberly.
|
||||||
|
- more languages!
|
||||||
|
|
||||||
|
|
||||||
|
PHPFM version 0.2.0:
|
||||||
|
Note: The whole script has been rewritten from scratch, which virtually means
|
||||||
|
that everything has changed. I'll try to point out the most important changes
|
||||||
|
here:
|
||||||
|
|
||||||
|
- the script's design has been greatly improved (in my opinion).
|
||||||
|
- the script does not require globals to be registered any longer, nor does it
|
||||||
|
produce errors when error reporting is set to E_ALL. This means that PHPFM will
|
||||||
|
run perfectly on PHP 4.2.X and up now!
|
||||||
|
- the script is now split up in several files to make editing easier for myself
|
||||||
|
and others. Note: the variables used to include the new files are checked with
|
||||||
|
is_file() and checked for '../' and '..\', so the script is NOT vulnerable
|
||||||
|
in any way to a possible malicious user.
|
||||||
|
- language support is now included. English is the only language avalible right
|
||||||
|
now though.
|
||||||
|
- the script now uses valid HTML (4.01 transitional) and CSS. Check www.w3c.org
|
||||||
|
for more information.
|
||||||
|
- a "file library" is now included with PHPFM, which means that the download and
|
||||||
|
temporary directories are no longer needed.
|
||||||
|
- directories for temporary (images) and downloaded files are no longer needed,
|
||||||
|
as files are downloaded directly using a "download" library now.
|
||||||
|
- output from rename, delete, download etc. is now printed at the same page as
|
||||||
|
the filebrowser, so you don't have to click "back" any more.
|
||||||
|
- directories are now deleted recursively which means that they do not need to
|
||||||
|
be empty to delete them.
|
||||||
|
- you can now see permissions on each file.
|
||||||
|
- it is now possible to sort file data by filename, filesize, permissions and
|
||||||
|
last modification time both ascending and descending.
|
||||||
|
- you will now have to click on the respective icon instead of on the filename
|
||||||
|
to edit or view a file.
|
||||||
|
- all icons are now transparent and defined with width and height for faster
|
||||||
|
loading times.
|
||||||
|
- a message saying how many seconds the page took to produce is now displayed at
|
||||||
|
the bottom of every page. Pretty useless, but fun :)
|
61
root/opt/webshare-tools/phpfm/docs/configurating.txt
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
Configurating PHPFM:
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
All configurating of PHPFM is done in the file "config.inc.php" which is located
|
||||||
|
in the folder "conf". Just use a normal text editor like notepad for windows and
|
||||||
|
nano or gnotepad for linux.
|
||||||
|
|
||||||
|
$home_directory is the root directory of PHPFM. This is where you will start browsing
|
||||||
|
from. You cannot browse out of this directory. Use forward slashes instead of back-
|
||||||
|
slashes and remember a trailing slash! For instance "d:\path\to\root" would become
|
||||||
|
"d:/path/to/root/".
|
||||||
|
|
||||||
|
$language chooses which language is used by PHPFM. To create a new language, you
|
||||||
|
will have to make a copy of "english.inc.php" in the directory "lang" and translate
|
||||||
|
all the strings. Then name the new file something like "german.inc.php", open
|
||||||
|
"config.inc.php" again and set $language to "german" or whatever you called the new
|
||||||
|
file.
|
||||||
|
|
||||||
|
$session_save_path chooses where the session (login) data is stored. For *NIX systems
|
||||||
|
(i.e. LINUX, UNIX etc.) this should be set to "/tmp/". On WINDOWS based systems this
|
||||||
|
should be set to the temporary directory for windows. This is often "c:/windows/temp"
|
||||||
|
on Windows 9X systems and "c:/winnt/temp" on Windows NT, 2000 or XP systems.
|
||||||
|
*** Note, you should only change this if you are experiencing problems!
|
||||||
|
|
||||||
|
$phpfm_auth chooses whether you will have to enter a username and password to use PHPFM.
|
||||||
|
It can be set to either TRUE or FALSE.
|
||||||
|
|
||||||
|
$username is the username needed to login when $phpfm_auth is set to TRUE and $password
|
||||||
|
is the password.
|
||||||
|
|
||||||
|
$AllowCreate, $AllowEdit etc. chooses what the users of PHPFM are allowed to do. It
|
||||||
|
should be easy enough to guess what each variable will allow/disallow. Notice that
|
||||||
|
they can be set to either TRUE or FALSE.
|
||||||
|
|
||||||
|
$IconArray is an array containing first an icon and then the filetypes or extensions
|
||||||
|
belonging to it. Each filetype or extension is seperated by a whitespace.
|
||||||
|
|
||||||
|
$EditableFiles contains all the filetypes or extensions which are editable by PHPFM's
|
||||||
|
text editor, each seperated by a whitespace.
|
||||||
|
|
||||||
|
$ViewableFiles contains all the filetypes or extensions which are viewable by PHPFM's
|
||||||
|
image viewer, each seperated by a whitespace.
|
||||||
|
|
||||||
|
$ModifiedFormat is the format of the last modification date of files. It is in date()
|
||||||
|
format. See http://www.php.net/date for more information.
|
||||||
|
|
||||||
|
$ZoomArray contains the different zoom levels used by PHPFM's image viewer. Notice that
|
||||||
|
you cannot change the base zoom level (100%).
|
||||||
|
|
||||||
|
$hide_file_extension contains all the extensions of the files, which are hidden. To add
|
||||||
|
more extensions, just add the extensions below those, which are already there. For
|
||||||
|
instance if you would like to hide all ".txt" files, you would add "txt", below "bar".
|
||||||
|
Just remeber the trailing comma.
|
||||||
|
|
||||||
|
$hide_file_string contain "strings" or parts of filenames to hide. For instance "secret"
|
||||||
|
would hide the files "secret.txt" or "asecretfile.php" or "file.secret".
|
||||||
|
|
||||||
|
$hide_directory_string is identical to $hide_file_string except that it hides directories
|
||||||
|
instead of files.
|
||||||
|
|
||||||
|
** Notice that hidden files will not be inaccessible, just hidden in PHPFM 0.2.0.
|
45
root/opt/webshare-tools/phpfm/docs/faq.txt
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
Frequently Asked Questions (FAQ) for PHPFM:
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Q) If I try to upload files over 2 MB all uploads fail. What can I do?
|
||||||
|
A) By default the maximum upload size it set to 2 MB in php.ini. Find the
|
||||||
|
following line ...
|
||||||
|
upload_max_filesize = 2M
|
||||||
|
... and increase the size to something more appropriate.
|
||||||
|
|
||||||
|
Q) If I upload files larger than 8 MB the script the script returns an error
|
||||||
|
similar to "Maximum post size reached - see docs/faq.txt for more information."
|
||||||
|
What is wrong?
|
||||||
|
A) Find the line ...
|
||||||
|
post_max_size = 8M
|
||||||
|
... in php.ini and replace 8 with the number og MB you want to be able to
|
||||||
|
upload.
|
||||||
|
|
||||||
|
Q) The script returns the an error similar to "Fatal error: Maximum execution
|
||||||
|
time of XX seconds exceeded in /path/to/phpfm/index.php on line X" when I
|
||||||
|
upload large files. What can I do?
|
||||||
|
A) You will have to edit the following line in php.ini ...
|
||||||
|
max_execution_time = 30
|
||||||
|
... and increase the number of seconds to whatever you need.
|
||||||
|
|
||||||
|
Q) PHPFM returns a lot of errors similar to "Notice: Undefined variable:
|
||||||
|
_SERVER in /path/to/phpfm/index.php on line X". What is wrong?
|
||||||
|
A) PHPFM requires PHP 4.1.0 or higher since the $_SERVER, $_GET, $_POST
|
||||||
|
and $_COOKIE superglobals were introduced in 4.1.0.
|
||||||
|
|
||||||
|
Q) I run PHPFM from a Linux/UNIX server and everything fails. What is wrong?
|
||||||
|
A) This is probably caused by PHP running in safe-mode. This is very common
|
||||||
|
for webhosts. There is nothing you can do about this if the server is not
|
||||||
|
yours, other than CHMOD'ing files and folders to 777. If you are running
|
||||||
|
PHPFM on your own server, you should access the php.ini file and disable
|
||||||
|
safe-mode.
|
||||||
|
|
||||||
|
Q) The login system does not work. I can't log in. What is the problem?
|
||||||
|
A) This is a know bug to me, but should (hopefully) be fixed in PHPFM 0.2.3.
|
||||||
|
If you are still experiencing problems, please e-mail me your system
|
||||||
|
configuration and I shall see what I can do.
|
||||||
|
|
||||||
|
Q) Is there / will there be multi-user support in PHPFM?
|
||||||
|
A) Not anytime soon. It's not because it is hard or takes long time to make,
|
||||||
|
but simple because I want all other features in place and working before
|
||||||
|
I expand PHPFM further.
|
47
root/opt/webshare-tools/phpfm/docs/install.txt
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
Installing PHPFM:
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Installing on your own Windows workstation:
|
||||||
|
-----------------------------------------------
|
||||||
|
1) Make sure that your webserver has PHP 4.1.0 or higher installed.
|
||||||
|
2) Go to PHPFM's website and download the ".zip" version of the script. The website
|
||||||
|
is located at http://phpfm.zalon.dk/
|
||||||
|
3) Unzip the downloaded archive into your the document root of your webserver Make sure
|
||||||
|
you maintain directory structure.
|
||||||
|
4) Open "config.inc.php" in the directory "conf" with a text editor and set the home
|
||||||
|
directory, username and password. Save the file and close the text editor.
|
||||||
|
6) Start up your internet browser and input the URL to PHPFM. It should look like this:
|
||||||
|
"http://<your-host>/<path-to-phpfm>/". A sample URL would look like this:
|
||||||
|
"http://localhost/phpfm.0.2.0/".
|
||||||
|
7) If you did everything right, you should see the login screen of PHPFM now.
|
||||||
|
|
||||||
|
Installing remotely on a Windows server:
|
||||||
|
-----------------------------------------------
|
||||||
|
1) Make sure that the webserver has PHP 4.1.0 or higher installed.
|
||||||
|
2) Go to PHPFM's website and download the ".zip" version of the script. The website
|
||||||
|
is located at http://phpfm.zalon.dk/
|
||||||
|
3) Unzip the downloaded archive to a temporary folder. Be sure to extract subdirectories
|
||||||
|
as well.
|
||||||
|
4) Open "config.inc.php" in the directory "conf" with a text editor and set the home
|
||||||
|
directory, username and password. Save the file and close the text editor.
|
||||||
|
5) Upload all files including all subdirectories to the server (e.g. via FTP).
|
||||||
|
6) Start up your internet browser and input the URL to PHPFM. It should look like this:
|
||||||
|
"http://<your-host>/<path-to-phpfm>/". A sample URL would look like this:
|
||||||
|
"http://www.some-site.com/phpfm.0.2.0/".
|
||||||
|
7) If you did everything right, you should see the login screen of PHPFM now.
|
||||||
|
|
||||||
|
Installing remotely on a Linux or Unix server:
|
||||||
|
-----------------------------------------------
|
||||||
|
1) Make sure that the webserver has PHP 4.1.0 or higher installed.
|
||||||
|
2) Go to PHPFM's website and download the ".tar.gz" version of the script. The website
|
||||||
|
is located at http://phpfm.zalon.dk/
|
||||||
|
3) Untar the downloaded archive to a temporary folder. Be sure to extract subdirectories
|
||||||
|
as well. Use "tar zxvvf phpfm.x.x.x.tar.gz" or similar.
|
||||||
|
4) Open "config.inc.php" in the directory "conf" with a text editor and set the home
|
||||||
|
directory, username and password. Save the file and close the text editor.
|
||||||
|
5) Upload all files including all subdirectories to the server (e.g. via FTP).
|
||||||
|
6) CHMOD all files and directories to 777 (not sure).
|
||||||
|
6) Start up your internet browser and input the URL to PHPFM. It should look like this:
|
||||||
|
"http://<your-host>/<path-to-phpfm>/". A sample URL would look like this:
|
||||||
|
"http://www.some-site.com/phpfm.0.2.0/".
|
||||||
|
7) If you did everything right, you should see the login screen of PHPFM now.
|
278
root/opt/webshare-tools/phpfm/docs/license.txt
Normal file
@ -0,0 +1,278 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||||
|
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Library General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
26
root/opt/webshare-tools/phpfm/docs/requirements.txt
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
System requirements:
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
System requirements for PHPFM:
|
||||||
|
|
||||||
|
Webserver
|
||||||
|
PHP 4.1.0 or higher
|
||||||
|
|
||||||
|
PHPFM has been tested on the following systems:
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
System 1:
|
||||||
|
Operating System Windows 98 Second Edition
|
||||||
|
Webserver Apache 1.3.23
|
||||||
|
PHP version PHP 4.2.2
|
||||||
|
- error_reporting E_ALL
|
||||||
|
- register_globals Off
|
||||||
|
- magic_quotes_gpc On
|
||||||
|
|
||||||
|
System 2:
|
||||||
|
Operation System: GNU/Linux
|
||||||
|
Webserver Apache 1.3.23
|
||||||
|
PHP version PHP 4.1.2
|
||||||
|
- error_reporting E_ALL
|
||||||
|
- register_globals Off
|
||||||
|
- magic_quotes_gpc On
|
21
root/opt/webshare-tools/phpfm/docs/todo.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Todo list for PHPFM:
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- find work-around for permissions on GNU/Linux & UNIX systems.
|
||||||
|
- make a login system where each user has his/hers own home directory and permissions.
|
||||||
|
- some kind of logging system.
|
||||||
|
- make an install script which makes it easier to install PHPFM.
|
||||||
|
- make hidden files unaccessible by the script (again).
|
||||||
|
- index with thumbnails of all images in the current directory (uncertain).
|
||||||
|
- make it possible to change permissions (chmod) on files and directories.
|
||||||
|
- make it so you can compress a directory and download it.
|
||||||
|
- do so you can see the full size of a directory (including sub-directories) and how
|
||||||
|
many files that are in the directory.
|
||||||
|
- templates for new (created) files. For instance PHP, HTML etc.
|
||||||
|
- unix style permissions (e.g. -rw-rw-rw-)
|
||||||
|
- too long directory- and filenames are shortened so they do not ruin the design.
|
||||||
|
- templates for PHPFM. Change the look of PHPFM easily! (not provisional)
|
||||||
|
- more languages.
|
||||||
|
- add some nifty DHTML?
|
||||||
|
- add the drive browser again?
|
||||||
|
- PDF viewer and text/PHP viewer with highlighting.
|
0
root/opt/webshare-tools/phpfm/files/.gitignore
vendored
Normal file
BIN
root/opt/webshare-tools/phpfm/icon/back.gif
Normal file
After Width: | Height: | Size: 996 B |
BIN
root/opt/webshare-tools/phpfm/icon/binary.gif
Normal file
After Width: | Height: | Size: 246 B |
BIN
root/opt/webshare-tools/phpfm/icon/c.gif
Normal file
After Width: | Height: | Size: 242 B |
BIN
root/opt/webshare-tools/phpfm/icon/compressed.gif
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
root/opt/webshare-tools/phpfm/icon/delete.gif
Normal file
After Width: | Height: | Size: 929 B |
BIN
root/opt/webshare-tools/phpfm/icon/download.gif
Normal file
After Width: | Height: | Size: 939 B |
BIN
root/opt/webshare-tools/phpfm/icon/drive.gif
Normal file
After Width: | Height: | Size: 246 B |
BIN
root/opt/webshare-tools/phpfm/icon/edit.gif
Normal file
After Width: | Height: | Size: 941 B |
BIN
root/opt/webshare-tools/phpfm/icon/folder.gif
Normal file
After Width: | Height: | Size: 225 B |
BIN
root/opt/webshare-tools/phpfm/icon/image2.gif
Normal file
After Width: | Height: | Size: 309 B |
BIN
root/opt/webshare-tools/phpfm/icon/layout.gif
Normal file
After Width: | Height: | Size: 276 B |
BIN
root/opt/webshare-tools/phpfm/icon/logout.gif
Normal file
After Width: | Height: | Size: 989 B |
BIN
root/opt/webshare-tools/phpfm/icon/minus.gif
Normal file
After Width: | Height: | Size: 837 B |
BIN
root/opt/webshare-tools/phpfm/icon/movie.gif
Normal file
After Width: | Height: | Size: 243 B |
BIN
root/opt/webshare-tools/phpfm/icon/newfile.gif
Normal file
After Width: | Height: | Size: 1018 B |
BIN
root/opt/webshare-tools/phpfm/icon/newfolder.gif
Normal file
After Width: | Height: | Size: 1021 B |
BIN
root/opt/webshare-tools/phpfm/icon/next.gif
Normal file
After Width: | Height: | Size: 843 B |
BIN
root/opt/webshare-tools/phpfm/icon/original.gif
Normal file
After Width: | Height: | Size: 846 B |
BIN
root/opt/webshare-tools/phpfm/icon/plus.gif
Normal file
After Width: | Height: | Size: 842 B |
BIN
root/opt/webshare-tools/phpfm/icon/previous.gif
Normal file
After Width: | Height: | Size: 844 B |
BIN
root/opt/webshare-tools/phpfm/icon/rename.gif
Normal file
After Width: | Height: | Size: 899 B |
BIN
root/opt/webshare-tools/phpfm/icon/script.gif
Normal file
After Width: | Height: | Size: 242 B |
BIN
root/opt/webshare-tools/phpfm/icon/sound2.gif
Normal file
After Width: | Height: | Size: 221 B |
BIN
root/opt/webshare-tools/phpfm/icon/text.gif
Normal file
After Width: | Height: | Size: 229 B |
BIN
root/opt/webshare-tools/phpfm/icon/unknown.gif
Normal file
After Width: | Height: | Size: 245 B |
BIN
root/opt/webshare-tools/phpfm/icon/upload.gif
Normal file
After Width: | Height: | Size: 939 B |
BIN
root/opt/webshare-tools/phpfm/icon/valid-css.jpg
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
root/opt/webshare-tools/phpfm/icon/valid-html401.jpg
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
root/opt/webshare-tools/phpfm/icon/view.gif
Normal file
After Width: | Height: | Size: 929 B |
15
root/opt/webshare-tools/phpfm/incl/auth.inc.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./conf/config.inc.php"))
|
||||||
|
include_once("../conf/config.inc.php");
|
||||||
|
|
||||||
|
ini_set('magic_quotes_gpc', 1);
|
||||||
|
ini_set('session.use_trans_sid', 0);
|
||||||
|
|
||||||
|
if (isset($session_save_path)) session_save_path($session_save_path);
|
||||||
|
session_start();
|
||||||
|
|
||||||
|
if (isset($_SESSION['session_username']) && $_SESSION['session_username'] == $username && isset($_SESSION['session_password']) && $_SESSION['session_password'] == md5($password) || !$phpfm_auth);
|
||||||
|
else exit("<font color='#CC0000'>Access Denied!</font>");
|
||||||
|
|
||||||
|
?>
|
73
root/opt/webshare-tools/phpfm/incl/create.inc.php
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
if ($AllowCreateFolder && isset($_GET['create']) && isset($_POST['directory_name']))
|
||||||
|
{
|
||||||
|
$umask = umask(0);
|
||||||
|
if (!is_valid_name(stripslashes($_POST['directory_name'])))
|
||||||
|
print "<font color='#CC0000'>$StrFolderInvalidName</font>";
|
||||||
|
else if (file_exists($home_directory.$path.stripslashes($_POST['directory_name']."/")))
|
||||||
|
print "<font color='#CC0000'>$StrAlreadyExists</font>";
|
||||||
|
else if (@mkdir($home_directory.$path.stripslashes($_POST['directory_name']), 0777))
|
||||||
|
print "<font color='#009900'>$StrCreateFolderSuccess</font>";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<font color='#CC0000'>$StrCreateFolderFail</font><br /><br />";
|
||||||
|
print $StrCreateFolderFailHelp;
|
||||||
|
}
|
||||||
|
umask($umask);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if ($AllowCreateFile && isset($_GET['create']) && isset($_POST['filename']))
|
||||||
|
{
|
||||||
|
if (!is_valid_name(stripslashes($_POST['filename'])))
|
||||||
|
print "<font color='#CC0000'>$StrFileInvalidName</font>";
|
||||||
|
else if (file_exists($home_directory.$path.stripslashes($_POST['filename'])))
|
||||||
|
print "<font color='#CC0000'>$StrAlreadyExists</font>";
|
||||||
|
else if (@fopen($home_directory.$path.stripslashes($_POST['filename']), "w+"))
|
||||||
|
print "<font color='#009900'>$StrCreateFileSuccess</font>";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<font color='#CC0000'>$StrCreateFileFail</font><br /><br />";
|
||||||
|
print $StrCreateFileFailHelp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else if ($AllowCreateFolder || $AllowCreateFile)
|
||||||
|
{
|
||||||
|
print "<table class='index' width=500 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' height=21>";
|
||||||
|
if ($_GET['type'] == "directory") print "<font class='iheadline'> $StrCreateFolder</font>";
|
||||||
|
else if ($_GET['type'] == "file") print "<font class='iheadline'> $StrCreateFile</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "<td class='iheadline' align='right' height=21>";
|
||||||
|
print "<font class='iheadline'><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/back.gif' border=0 alt='$StrBack'></a></font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td valign='top' colspan=2>";
|
||||||
|
|
||||||
|
print "<center><br />";
|
||||||
|
|
||||||
|
if ($_GET['type'] == "directory") print "$StrCreateFolderQuestion<br /><br />";
|
||||||
|
else if ($_GET['type'] == "file") print "$StrCreateFileQuestion<br /><br />";
|
||||||
|
print "<form action='$base_url&output=create&create=true' method='post'>";
|
||||||
|
if ($_GET['type'] == "directory") print "<input name='directory_name' size=40> ";
|
||||||
|
else if ($_GET['type'] == "file") print "<input name='filename' size=40> ";
|
||||||
|
print "<input class='bigbutton' type='submit' value='$StrCreate'>";
|
||||||
|
print "<input type='hidden' name=path value=\"".htmlentities($path)."\">";
|
||||||
|
print "</form>";
|
||||||
|
|
||||||
|
print "<br /><br /></center>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||||
|
|
||||||
|
?>
|
83
root/opt/webshare-tools/phpfm/incl/delete.inc.php
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
if ($AllowDelete && isset($_GET['directory_name']) || $AllowDelete && isset($_GET['filename']))
|
||||||
|
{
|
||||||
|
if (isset($_GET['delete']) && isset($_GET['directory_name']))
|
||||||
|
{
|
||||||
|
if ($_GET['directory_name'] == "../" || ($_GET['directory_name'] == "./"))
|
||||||
|
print "<font color='#CC0000'>$StrFolderInvalidName</font>";
|
||||||
|
else if (!file_exists($home_directory.$path.$directory_name))
|
||||||
|
print "<font color='#CC0000'>$StrDeleteFolderNotFound</font>";
|
||||||
|
else if (remove_directory($home_directory.$path.$directory_name) && @rmdir($home_directory.$path.$directory_name))
|
||||||
|
print "<font color='#009900'>$StrDeleteFolderSuccess</font>";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<font color='#CC0000'>$StrDeleteFolderFail</font><br /><br />";
|
||||||
|
print $StrDeleteFolderFailHelp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (isset($_GET['delete']) && isset($_GET['filename']))
|
||||||
|
{
|
||||||
|
if ($_GET['filename'] == ".." || ($_GET['filename'] == "."))
|
||||||
|
print "<font color='#CC0000'>$StrFileInvalidName</font>";
|
||||||
|
else if (!file_exists($home_directory.$path.$filename))
|
||||||
|
print "<font color='#CC0000'>$StrDeleteFileNotFound</font>";
|
||||||
|
else if (@unlink($home_directory.$path.$filename))
|
||||||
|
print "<font color='#009900'>$StrDeleteFileSuccess</font>";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<font color='#CC0000'>$StrDeleteFileFail</font><br /><br />";
|
||||||
|
print $StrDeleteFileFailHelp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<table class='index' width=500 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' height=21>";
|
||||||
|
if (isset($_GET['directory_name'])) print "<font class='iheadline'> $StrDeleteFolder \"".htmlentities(basename($directory_name))."\"?</font>";
|
||||||
|
else if (isset($_GET['filename'])) print "<font class='iheadline'> $StrDeleteFile \"".htmlentities($filename)."\"?</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "<td class='iheadline' align='right' height=21>";
|
||||||
|
print "<font class='iheadline'><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/back.gif' border=0 alt='$StrBack'></a></font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td valign='top' colspan=2>";
|
||||||
|
|
||||||
|
print "<center><br />";
|
||||||
|
|
||||||
|
if (isset($_GET['directory_name']))
|
||||||
|
{
|
||||||
|
print "$StrDeleteFolderQuestion<br /><br />";
|
||||||
|
print "/".htmlentities($path.$directory_name);
|
||||||
|
}
|
||||||
|
else if (isset($_GET['filename']))
|
||||||
|
{
|
||||||
|
print "$StrDeleteFileQuestion<br /><br />";
|
||||||
|
print "/".htmlentities($path.$filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
print "<br /><br />";
|
||||||
|
|
||||||
|
if (isset($_GET['directory_name'])) print "<a href='$base_url&path=".htmlentities(rawurlencode($path))."&directory_name=".htmlentities(rawurlencode($directory_name))."&output=delete&delete=true'>$StrYes</a>";
|
||||||
|
else if (isset($_GET['filename'])) print "<a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($filename))."&output=delete&delete=true'>$StrYes</a>";
|
||||||
|
print " $StrOr ";
|
||||||
|
print "<a href='$base_url&path=".htmlentities(rawurlencode($path))."'>$StrCancel</a>";
|
||||||
|
|
||||||
|
print "<br /><br /></center>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||||
|
|
||||||
|
?>
|
30
root/opt/webshare-tools/phpfm/incl/download.inc.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
if ($AllowDownload)
|
||||||
|
{
|
||||||
|
print "<table class='index' width=500 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' height=21>";
|
||||||
|
print "<font class='iheadline'> $StrDownload \"".htmlentities($filename)."\"</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "<td class='iheadline' align='right' height=21>";
|
||||||
|
print "<font class='iheadline'><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/back.gif' border=0 alt='$StrBack'></a></font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td valign='top' colspan=2>";
|
||||||
|
print "<center><br />";
|
||||||
|
print "$StrDownloadClickLink<br /><br />";
|
||||||
|
print "<a href='incl/libfile.php?".SID."&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($filename))."&action=download'>$StrDownloadClickHere <i>\"".htmlentities($filename)."\"</i></a>";
|
||||||
|
print "<br /><br /></center>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||||
|
|
||||||
|
?>
|
69
root/opt/webshare-tools/phpfm/incl/edit.inc.php
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
if ($AllowEdit && isset($_GET['save']) && isset($_POST['filename']))
|
||||||
|
{
|
||||||
|
$text = stripslashes($_POST['text']);
|
||||||
|
|
||||||
|
if (!is_valid_name(stripslashes($_POST['filename'])))
|
||||||
|
print "<font color='#CC0000'>$StrFileInvalidName</font>";
|
||||||
|
else if ($fp = @fopen ($home_directory.$path.stripslashes($_POST['filename']), "wb"))
|
||||||
|
{
|
||||||
|
fwrite($fp, $text);
|
||||||
|
fclose($fp);
|
||||||
|
print "<font color='#009900'>$StrSaveFileSuccess</font>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrSaveFileFail</font>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else if ($AllowEdit && isset($_GET['filename']))
|
||||||
|
{
|
||||||
|
print "<table class='index' width=800 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' height=21>";
|
||||||
|
print "<font class='iheadline'> $StrEditing \"".htmlentities($filename)."\"</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "<td class='iheadline' align='right' height=21>";
|
||||||
|
print "<font class='iheadline'><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/back.gif' border=0 alt='$StrBack'></a></font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td valign='top' colspan=2>";
|
||||||
|
|
||||||
|
print "<center><br />";
|
||||||
|
|
||||||
|
if ($fp = @fopen($home_directory.$path.$filename, "rb"))
|
||||||
|
{
|
||||||
|
print "<form action='$base_url&output=edit&save=true' method='post'>";
|
||||||
|
|
||||||
|
print "<textarea cols=120 rows=20 name='text'>";
|
||||||
|
print htmlentities(fread($fp, filesize($home_directory.$path.$filename)));
|
||||||
|
fclose ($fp);
|
||||||
|
print "</textarea>";
|
||||||
|
|
||||||
|
print "<br /><br />";
|
||||||
|
print "$StrFilename <input size=40 name='filename' value=\"".htmlentities($filename)."\">";
|
||||||
|
|
||||||
|
print "<br /><br />";
|
||||||
|
print "<input class='bigbutton' type='reset' value='$StrRestoreOriginal'> <input class='bigbutton' type='submit' value='$StrSaveAndExit'>";
|
||||||
|
|
||||||
|
print "<input type='hidden' name='path' value=\"".htmlentities($path)."\">";
|
||||||
|
print "</form>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrErrorOpeningFile</font>";
|
||||||
|
|
||||||
|
print "<br /><br /></center>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||||
|
|
||||||
|
?>
|
151
root/opt/webshare-tools/phpfm/incl/filebrowser.inc.php
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
if (!isset($_GET['sortby'])) $_GET['sortby'] = "filename";
|
||||||
|
if (!isset($_GET['order'])) $_GET['order'] = "asc";
|
||||||
|
|
||||||
|
print "<table class='menu' cellpadding=2 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
if ($AllowCreateFolder) print "<td align='center' valign='bottom'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&action=create&type=directory'><img src='icon/newfolder.gif' width=20 height=22 alt='$StrMenuCreateFolder' border=0> $StrMenuCreateFolder</a></td>";
|
||||||
|
if ($AllowCreateFile) print "<td align='center' valign='bottom'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&action=create&type=file'><img src='icon/newfile.gif' width=20 height=22 alt='$StrMenuCreateFile' border=0> $StrMenuCreateFile</a></td>";
|
||||||
|
if ($AllowUpload) print "<td align='center' valign='bottom'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&action=upload'><img src='icon/upload.gif' width=20 height=22 alt='$StrMenuUploadFiles' border=0> $StrMenuUploadFiles</a></td>";
|
||||||
|
if ($phpfm_auth) print "<td align='center' valign='bottom'><a href='$base_url&action=logout'><img src='icon/logout.gif' width=20 height=22 alt='$StrMenuLogOut' border=0> $StrMenuLogOut</a></td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table><br />";
|
||||||
|
|
||||||
|
print "<table class='index' cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' colspan=4 align='center' height=21>";
|
||||||
|
print "<font class='iheadline'>$StrIndexOf ".get_linked_path($path,$base_url)."</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td> </td>";
|
||||||
|
print "<td class='fbborder' valign='top'>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ($open = @opendir($home_directory.$path))
|
||||||
|
{
|
||||||
|
for($i=0;($directory = readdir($open)) != FALSE;$i++)
|
||||||
|
if (is_dir($home_directory.$path.$directory) && $directory != "." && $directory != ".." && !is_hidden_directory($home_directory.$path.$directory))
|
||||||
|
$directories[$i] = array($directory,$directory);
|
||||||
|
closedir($open);
|
||||||
|
|
||||||
|
if (isset($directories))
|
||||||
|
{
|
||||||
|
sort($directories);
|
||||||
|
reset($directories);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print "<table class='directories' width=300 cellpadding=1 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='bold' width=20> </td>";
|
||||||
|
print "<td class='bold'> $StrFolderNameShort</td>";
|
||||||
|
if ($AllowRename) print "<td class='bold' width=20 align='center'>$StrRenameShort</td>";
|
||||||
|
if ($AllowDelete) print "<td class='bold' width=20 align='center'>$StrDeleteShort</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/folder.gif' width=20 height=22 alt='$StrOpenFolder' border=0></a></td>";
|
||||||
|
print "<td> <a href='$base_url'>.</a></td>";
|
||||||
|
print "<td width=20> </td>";
|
||||||
|
print "<td width=20> </td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode(dirname($path)))."/'><img src='icon/folder.gif' width=20 height=22 alt='$StrOpenFolder' border=0></a></td>";
|
||||||
|
print "<td> <a href='$base_url&path=".htmlentities(rawurlencode(dirname($path)))."/'>..</a></td>";
|
||||||
|
print "<td width=20> </td>";
|
||||||
|
print "<td width=20> </td>";
|
||||||
|
print "</tr>";
|
||||||
|
if (isset($directories)) foreach($directories as $directory)
|
||||||
|
{
|
||||||
|
print "<tr>";
|
||||||
|
print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path.$directory[0]))."/'><img src='icon/folder.gif' width=20 height=22 alt='$StrOpenFolder' border=0></a></td>";
|
||||||
|
print "<td> <a href='$base_url&path=".htmlentities(rawurlencode($path.$directory[0]))."/'>".htmlentities($directory[0])."</a></td>";
|
||||||
|
if ($AllowRename) print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path))."&directory_name=".htmlentities(rawurlencode($directory[0]))."/&action=rename'><img src='icon/rename.gif' width=20 height=22 alt='$StrRenameFolder' border=0></a></td>";
|
||||||
|
if ($AllowDelete) print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path))."&directory_name=".htmlentities(rawurlencode($directory[0]))."/&action=delete'><img src='icon/delete.gif' width=20 height=22 alt='$StrDeleteFolder' border=0></a></td>";
|
||||||
|
print "</tr>";
|
||||||
|
}
|
||||||
|
print "<tr><td colspan=4> </td></tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "<td> </td>";
|
||||||
|
print "<td valign='top'>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ($open = @opendir($home_directory.$path))
|
||||||
|
{
|
||||||
|
for($i=0;($file = readdir($open)) != FALSE;$i++)
|
||||||
|
if (is_file($home_directory.$path.$file) && !is_hidden_file($home_directory.$path.$file))
|
||||||
|
{
|
||||||
|
$icon = get_icon($file);
|
||||||
|
$filesize = filesize($home_directory.$path.$file);
|
||||||
|
$permissions = decoct(fileperms($home_directory.$path.$file)%01000);
|
||||||
|
$modified = filemtime($home_directory.$path.$file);
|
||||||
|
$extension = "";
|
||||||
|
$files[$i] = array(
|
||||||
|
"icon" => $icon,
|
||||||
|
"filename" => $file,
|
||||||
|
"filesize" => $filesize,
|
||||||
|
"permissions" => $permissions,
|
||||||
|
"modified" => $modified,
|
||||||
|
"extension" => $extension,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
closedir($open);
|
||||||
|
|
||||||
|
if (isset($files))
|
||||||
|
{
|
||||||
|
usort($files, "compare_filedata");
|
||||||
|
reset($files);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print "<table class='files' width=500 cellpadding=1 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='bold' width=20> </td>";
|
||||||
|
print "<td class='bold'> <a href='$base_url&path=".htmlentities(rawurlencode($path))."&sortby=filename&order=".get_opposite_order("filename", $_GET['order'])."'>$StrFileNameShort</a></td>";
|
||||||
|
print "<td class='bold' width=60 align='center'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&sortby=filesize&order=".get_opposite_order("filesize", $_GET['order'])."'>$StrFileSizeShort</a></td>";
|
||||||
|
print "<td class='bold' width=35 align='center'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&sortby=permissions&order=".get_opposite_order("permissions", $_GET['order'])."'>$StrPermissionsShort</a></td>";
|
||||||
|
print "<td class='bold' width=110 align='center'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&sortby=modified&order=".get_opposite_order("modified", $_GET['order'])."'>$StrLastModifiedShort</a></td>";
|
||||||
|
if ($AllowView) print "<td class='bold' width=20 align='center'>$StrViewShort</td>";
|
||||||
|
if ($AllowEdit) print "<td class='bold' width=20 align='center'>$StrEditShort</td>";
|
||||||
|
if ($AllowRename) print "<td class='bold' width=20 align='center'>$StrRenameShort</td>";
|
||||||
|
if ($AllowDownload) print "<td class='bold' width=20 align='center'>$StrDownloadShort</td>";
|
||||||
|
if ($AllowDelete) print "<td class='bold' width=20 align='center'>$StrDeleteShort</td>";
|
||||||
|
print "</tr>";
|
||||||
|
if (isset($files)) foreach($files as $file)
|
||||||
|
{
|
||||||
|
$file['filesize'] = get_better_filesize($file['filesize']);
|
||||||
|
$file['modified'] = date($ModifiedFormat, $file['modified']);
|
||||||
|
|
||||||
|
print "<tr>";
|
||||||
|
print "<td width=20><img src='icon/".$file['icon']."' width=20 height=22 border=0 alt='$StrFile'></td>";
|
||||||
|
print "<td> ".htmlentities($file['filename'])."</td>";
|
||||||
|
print "<td width=60 align='right'>".$file['filesize']."</td>";
|
||||||
|
print "<td width=35 align='center'>".$file['permissions']."</td>";
|
||||||
|
print "<td width=110 align='right'>".$file['modified']."</td>";
|
||||||
|
if ($AllowView && is_viewable_file($file['filename'])) print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($file['filename']))."&action=view&size=100'><img src='icon/view.gif' width=20 height=22 alt='$StrViewFile' border=0></a></td>";
|
||||||
|
else if ($AllowView) print "<td width=20> </td>";
|
||||||
|
if ($AllowEdit && is_editable_file($file['filename'])) print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($file['filename']))."&action=edit'><img src='icon/edit.gif' width=20 height=22 alt='$StrEditFile' border=0></a></td>";
|
||||||
|
else if ($AllowEdit) print "<td width=20> </td>";
|
||||||
|
if ($AllowRename) print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($file['filename']))."&action=rename'><img src='icon/rename.gif' width=20 height=22 alt='$StrRenameFile' border=0></a></td>";
|
||||||
|
if ($AllowDownload) print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($file['filename']))."&action=download'><img src='icon/download.gif' width=20 height=22 alt='$StrDownloadFile' border=0></a></td>";
|
||||||
|
if ($AllowEdit) print "<td width=20><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($file['filename']))."&action=delete'><img src='icon/delete.gif' width=20 height=22 alt='$StrDeleteFile' border=0></a></td>";
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
|
}
|
||||||
|
print "<tr><td colspan=9> </td></tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
?>
|
19
root/opt/webshare-tools/phpfm/incl/footer.inc.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
list($seconds, $microseconds) = explode(" ", microtime());
|
||||||
|
$time_end = $seconds + $microseconds;
|
||||||
|
$total_time = round($time_end-$time_start, 4);
|
||||||
|
|
||||||
|
print "<br /><br />";
|
||||||
|
print "<table class='bottom' cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr><td> </td></tr>";
|
||||||
|
print "<tr><td align='center'>This page was produced in $total_time seconds.</td></tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
print "<br /><br />";
|
||||||
|
|
||||||
|
print "</center>";
|
||||||
|
print "</body>";
|
||||||
|
print "</html>";
|
||||||
|
|
||||||
|
?>
|
26
root/opt/webshare-tools/phpfm/incl/footer.inc.php.dist
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
list($seconds, $microseconds) = explode(" ", microtime());
|
||||||
|
$time_end = $seconds + $microseconds;
|
||||||
|
$total_time = round($time_end-$time_start, 4);
|
||||||
|
|
||||||
|
print "<br /><br />";
|
||||||
|
print "<table class='bottom' cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr><td align='center'>Powered by <a href='http://phpfm.zalon.dk/' target='_new' class='bottom'>PHPFM</a> ".VERSION."</td></tr>";
|
||||||
|
print "<tr><td align='center'>Copyright © 2002 Morten Bojsen-Hansen</td></tr>";
|
||||||
|
print "<tr><td> </td></tr>";
|
||||||
|
print "<tr><td align='center'>";
|
||||||
|
print "<a href='http://validator.w3.org/check/referer'><img border='0' src='icon/valid-html401.jpg' alt='Valid HTML 4.01!' height='31' width='88'></a>";
|
||||||
|
print "<a href='http://jigsaw.w3.org/css-validator/'><img style='border:0;width:88px;height:31px' src='icon/valid-css.jpg' alt='Valid CSS!'></a>";
|
||||||
|
print "</td></tr>";
|
||||||
|
print "<tr><td> </td></tr>";
|
||||||
|
print "<tr><td align='center'>This page was produced in $total_time seconds.</td></tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
print "<br /><br />";
|
||||||
|
|
||||||
|
print "</center>";
|
||||||
|
print "</body>";
|
||||||
|
print "</html>";
|
||||||
|
|
||||||
|
?>
|
258
root/opt/webshare-tools/phpfm/incl/functions.inc.php
Normal file
@ -0,0 +1,258 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
function remove_directory($directory) ## Remove a directory recursively
|
||||||
|
{
|
||||||
|
$list_sub = array();
|
||||||
|
$list_files = array();
|
||||||
|
|
||||||
|
if (!($open = opendir($directory)))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
while(($index = readdir($open)) != FALSE)
|
||||||
|
{
|
||||||
|
if (is_dir($directory.$index) && $index != "." && $index != "..")
|
||||||
|
$list_sub[] = $index."/";
|
||||||
|
else if (is_file($directory.$index))
|
||||||
|
$list_files[] = $index;
|
||||||
|
}
|
||||||
|
|
||||||
|
closedir($open);
|
||||||
|
|
||||||
|
foreach($list_files as $file)
|
||||||
|
if (!unlink($directory.$file))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
foreach($list_sub as $sub)
|
||||||
|
{
|
||||||
|
remove_directory($directory.$sub);
|
||||||
|
if (!rmdir($directory.$sub))
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_icon($filename) ## Get the icon from the filename
|
||||||
|
{
|
||||||
|
global $IconArray;
|
||||||
|
|
||||||
|
reset($IconArray);
|
||||||
|
|
||||||
|
$extension = strtolower(substr(strrchr($filename, "."),1));
|
||||||
|
|
||||||
|
if ($extension == "")
|
||||||
|
return "unknown.gif";
|
||||||
|
|
||||||
|
while (list($icon, $types) = each($IconArray))
|
||||||
|
foreach (explode(" ", $types) as $type)
|
||||||
|
if ($extension == $type)
|
||||||
|
return $icon;
|
||||||
|
|
||||||
|
return "unknown.gif";
|
||||||
|
}
|
||||||
|
|
||||||
|
function compare_filedata ($a, $b) ## Compare filedata (used to sort)
|
||||||
|
{
|
||||||
|
if (is_int($a[$_GET['sortby']]) && is_int($b[$_GET['sortby']]))
|
||||||
|
{
|
||||||
|
if ($a[$_GET['sortby']]==$b[$_GET['sortby']]) return 0;
|
||||||
|
|
||||||
|
if ($_GET['order'] == "asc")
|
||||||
|
{
|
||||||
|
if ($a[$_GET['sortby']] > $b[$_GET['sortby']]) return 1;
|
||||||
|
else return -1;
|
||||||
|
}
|
||||||
|
else if ($_GET['order'] == "desc")
|
||||||
|
{
|
||||||
|
if ($a[$_GET['sortby']] < $b[$_GET['sortby']]) return 1;
|
||||||
|
else return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (is_string($a[$_GET['sortby']]) && is_string($b[$_GET['sortby']]) && $_GET['order'] == "asc")
|
||||||
|
return strcmp($a[$_GET['sortby']], $b[$_GET['sortby']]);
|
||||||
|
else if (is_string($a[$_GET['sortby']]) && is_string($b[$_GET['sortby']]) && $_GET['order'] == "desc")
|
||||||
|
return -strcmp($a[$_GET['sortby']], $b[$_GET['sortby']]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_opposite_order($input, $order) ## Get opposite order
|
||||||
|
{
|
||||||
|
if ($_GET['sortby'] == $input)
|
||||||
|
{
|
||||||
|
if ($order == "asc")
|
||||||
|
return "desc";
|
||||||
|
else if ($order == "desc")
|
||||||
|
return "asc";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return "asc";
|
||||||
|
}
|
||||||
|
|
||||||
|
function is_editable_file($filename) ## Checks whether a file is editable
|
||||||
|
{
|
||||||
|
global $EditableFiles;
|
||||||
|
|
||||||
|
$extension = strtolower(substr(strrchr($filename, "."),1));
|
||||||
|
|
||||||
|
foreach(explode(" ", $EditableFiles) as $type)
|
||||||
|
if ($extension == $type)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
function is_viewable_file($filename) ## Checks whether a file is viewable
|
||||||
|
{
|
||||||
|
global $ViewableFiles;
|
||||||
|
|
||||||
|
$extension = strtolower(substr(strrchr($filename, "."),1));
|
||||||
|
|
||||||
|
foreach(explode(" ", $ViewableFiles) as $type)
|
||||||
|
if ($extension == $type)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
function is_valid_name($input) ## Checks whether the directory- or filename is valid
|
||||||
|
{
|
||||||
|
if (strstr($input, "\\"))
|
||||||
|
return FALSE;
|
||||||
|
else if (strstr($input, "/"))
|
||||||
|
return FALSE;
|
||||||
|
else if (strstr($input, ":"))
|
||||||
|
return FALSE;
|
||||||
|
else if (strstr($input, "?"))
|
||||||
|
return FALSE;
|
||||||
|
else if (strstr($input, "*"))
|
||||||
|
return FALSE;
|
||||||
|
else if (strstr($input, "\""))
|
||||||
|
return FALSE;
|
||||||
|
else if (strstr($input, "<"))
|
||||||
|
return FALSE;
|
||||||
|
else if (strstr($input, ">"))
|
||||||
|
return FALSE;
|
||||||
|
else if (strstr($input, "|"))
|
||||||
|
return FALSE;
|
||||||
|
else
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_better_filesize($filesize) ## Converts filesize to KB/MB/GB/TB
|
||||||
|
{
|
||||||
|
$kilobyte = 1024;
|
||||||
|
$megabyte = 1048576;
|
||||||
|
$gigabyte = 1073741824;
|
||||||
|
$terabyte = 1099511627776;
|
||||||
|
|
||||||
|
if ($filesize >= $terabyte)
|
||||||
|
return number_format($filesize/$terabyte, 2, ',', '.')." TB";
|
||||||
|
else if ($filesize >= $gigabyte)
|
||||||
|
return number_format($filesize/$gigabyte, 2, ',', '.')." GB";
|
||||||
|
else if ($filesize >= $megabyte)
|
||||||
|
return number_format($filesize/$megabyte, 2, ',', '.')." MB";
|
||||||
|
else if ($filesize >= $kilobyte)
|
||||||
|
return number_format($filesize/$kilobyte, 2, ',', '.')." KB";
|
||||||
|
else
|
||||||
|
return number_format($filesize, 0, ',', '.')." B";
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_current_zoom_level($current_zoom_level, $zoom) ## Get current zoom level
|
||||||
|
{
|
||||||
|
global $ZoomArray;
|
||||||
|
|
||||||
|
reset($ZoomArray);
|
||||||
|
|
||||||
|
while(list($number, $zoom_level) = each($ZoomArray))
|
||||||
|
if ($zoom_level == $current_zoom_level)
|
||||||
|
if (($number+$zoom) < 0) return $number;
|
||||||
|
else if (($number+$zoom) >= count($ZoomArray)) return $number;
|
||||||
|
else return $number+$zoom;
|
||||||
|
}
|
||||||
|
|
||||||
|
function validate_path($path) ## Validate path
|
||||||
|
{
|
||||||
|
global $StrAccessDenied;
|
||||||
|
|
||||||
|
if (stristr($path, "../") || stristr($path, "..\\"))
|
||||||
|
return TRUE;
|
||||||
|
else
|
||||||
|
return stripslashes($path);
|
||||||
|
}
|
||||||
|
|
||||||
|
function authenticate_user() ## Authenticate user using cookies
|
||||||
|
{
|
||||||
|
global $username, $password;
|
||||||
|
|
||||||
|
if (isset($_COOKIE['cookie_username']) && $_COOKIE['cookie_username'] == $username && isset($_COOKIE['cookie_password']) && $_COOKIE['cookie_password'] == md5($password))
|
||||||
|
return TRUE;
|
||||||
|
else
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
function is_hidden_file($path) ## Checks whether the file is hidden.
|
||||||
|
{
|
||||||
|
global $hide_file_extension, $hide_file_string, $hide_directory_string;
|
||||||
|
|
||||||
|
$extension = strtolower(substr(strrchr($path, "."),1));
|
||||||
|
|
||||||
|
foreach ($hide_file_extension as $hidden_extension)
|
||||||
|
if ($hidden_extension == $extension)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
foreach ($hide_file_string as $hidden_string)
|
||||||
|
if (stristr(basename($path), $hidden_string))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
foreach ($hide_directory_string as $hidden_string)
|
||||||
|
if (stristr(dirname($path), $hidden_string))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
function is_hidden_directory($path) ## Checks whether the directory is hidden.
|
||||||
|
{
|
||||||
|
global $hide_directory_string;
|
||||||
|
|
||||||
|
foreach ($hide_directory_string as $hidden_string)
|
||||||
|
if (stristr($path, $hidden_string))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_mimetype($filename) ## Get MIME-type for file
|
||||||
|
{
|
||||||
|
global $MIMEtypes;
|
||||||
|
|
||||||
|
reset($MIMEtypes);
|
||||||
|
|
||||||
|
$extension = strtolower(substr(strrchr($filename, "."),1));
|
||||||
|
|
||||||
|
if ($extension == "")
|
||||||
|
return "Unknown/Unknown";
|
||||||
|
|
||||||
|
while (list($mimetype, $file_extensions) = each($MIMEtypes))
|
||||||
|
foreach (explode(" ", $file_extensions) as $file_extension)
|
||||||
|
if ($extension == $file_extension)
|
||||||
|
return $mimetype;
|
||||||
|
|
||||||
|
return "Unknown/Unknown";
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_linked_path($path,$base_url) ## Get path with links to each folder
|
||||||
|
{
|
||||||
|
$string = "<a href='$base_url'>.</a> / ";
|
||||||
|
$array = explode("/",htmlentities($path));
|
||||||
|
unset($array[count($array)-1]);
|
||||||
|
foreach ($array as $entry)
|
||||||
|
{
|
||||||
|
@$temppath .= $entry."/";
|
||||||
|
$string .= "<a href='$base_url&path=".htmlentities(rawurlencode($temppath))."'>$entry</a> / ";
|
||||||
|
}
|
||||||
|
|
||||||
|
return $string;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
34
root/opt/webshare-tools/phpfm/incl/header.inc.php
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
list($seconds, $microseconds) = explode(" ", microtime());
|
||||||
|
$time_start = $seconds + $microseconds;
|
||||||
|
|
||||||
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||||
|
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||||
|
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||||
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
|
header("Pragma: no-cache");
|
||||||
|
header("Content-Type: text/html; charset=$StrLanguageCharset");
|
||||||
|
|
||||||
|
if (isset($session_save_path)) session_save_path($session_save_path);
|
||||||
|
ini_set('magic_quotes_gpc', 1);
|
||||||
|
ini_set('session.use_trans_sid', 0);
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
clearstatcache();
|
||||||
|
session_start();
|
||||||
|
|
||||||
|
$base_url = "?".SID."&";
|
||||||
|
|
||||||
|
if (isset($_POST['input_username']) && isset($_POST['input_password']) && $_POST['input_username'] == $username && md5($_POST['input_password']) == md5($password))
|
||||||
|
{
|
||||||
|
$_SESSION['session_username'] = $_POST['input_username'];
|
||||||
|
$_SESSION['session_password'] = md5($_POST['input_password']);
|
||||||
|
}
|
||||||
|
else if (isset($_GET['action']) && $_GET['action'] == "logout")
|
||||||
|
{
|
||||||
|
$_SESSION = array();
|
||||||
|
session_destroy();
|
||||||
|
setcookie(session_name(),"",0,"/");
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
17
root/opt/webshare-tools/phpfm/incl/html.header.inc.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">";
|
||||||
|
|
||||||
|
print "<html>";
|
||||||
|
print "<head>";
|
||||||
|
print "<link rel='stylesheet' href='incl/phpfm.css' type='text/css'>";
|
||||||
|
print "</head>";
|
||||||
|
print "<body link='#0000FF' alink='#0000FF' vlink='#0000FF' bgcolor='#FFFFFF'>";
|
||||||
|
print "<center>";
|
||||||
|
print "<table class='top' cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td align='center'><font class='headline'></font></td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table><br />";
|
||||||
|
|
||||||
|
?>
|
18
root/opt/webshare-tools/phpfm/incl/html.header.inc.php.dist
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">";
|
||||||
|
|
||||||
|
print "<html>";
|
||||||
|
print "<head>";
|
||||||
|
print "<title>PHPFM ".VERSION." - a file manager written in PHP</title>";
|
||||||
|
print "<link rel='stylesheet' href='incl/phpfm.css' type='text/css'>";
|
||||||
|
print "</head>";
|
||||||
|
print "<body link='#0000FF' alink='#0000FF' vlink='#0000FF' bgcolor='#FFFFFF'>";
|
||||||
|
print "<center>";
|
||||||
|
print "<table class='top' cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td align='center'><font class='headline'>PHPFM ".VERSION."</font></td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table><br />";
|
||||||
|
|
||||||
|
?>
|
50
root/opt/webshare-tools/phpfm/incl/libfile.php
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
include("../conf/config.inc.php");
|
||||||
|
include("../incl/functions.inc.php");
|
||||||
|
include("../lang/$language.inc.php");
|
||||||
|
|
||||||
|
if (isset($_GET['action']) && $_GET['action'] == "download")
|
||||||
|
{
|
||||||
|
session_cache_limiter("public, post-check=50");
|
||||||
|
header("Cache-Control: private");
|
||||||
|
}
|
||||||
|
if (isset($session_save_path)) session_save_path($session_save_path);
|
||||||
|
|
||||||
|
if (isset($_GET['path'])) $path = validate_path($_GET['path']);
|
||||||
|
if (!isset($path)) $path = FALSE;
|
||||||
|
if ($path == "./" || $path == ".\\" || $path == "/" || $path == "\\") $path = FALSE;
|
||||||
|
|
||||||
|
if (isset($_GET['filename'])) $filename = basename(stripslashes($_GET['filename']));
|
||||||
|
|
||||||
|
if ($AllowDownload || $AllowView)
|
||||||
|
{
|
||||||
|
if (isset($_GET['filename']) && isset($_GET['action']) && is_file($home_directory.$path.$filename) || is_file("../".$home_directory.$path.$filename))
|
||||||
|
{
|
||||||
|
if (is_file($home_directory.$path.$filename) && !strstr($home_directory, "./") && !strstr($home_directory, ".\\"))
|
||||||
|
$fullpath = $home_directory.$path.$filename;
|
||||||
|
else if (is_file("../".$home_directory.$path.$filename))
|
||||||
|
$fullpath = "../".$home_directory.$path.$filename;
|
||||||
|
|
||||||
|
if (!$AllowDownload && $AllowView && !is_viewable_file($filename))
|
||||||
|
{
|
||||||
|
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
header("Pragma:");
|
||||||
|
header("Content-Type: ".get_mimetype($filename));
|
||||||
|
header("Content-Length: ".filesize($fullpath));
|
||||||
|
if ($_GET['action'] == "download");
|
||||||
|
header("Content-Disposition: attachment; filename=\"$filename\"");
|
||||||
|
|
||||||
|
readfile($fullpath);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrDownloadFail</font>";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
32
root/opt/webshare-tools/phpfm/incl/login.inc.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
print "<table class='index' width=500 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' align='center' height=21>";
|
||||||
|
print "<font class='iheadline'>$StrLoginSystem</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td valign='top'>";
|
||||||
|
|
||||||
|
print "<center><br />";
|
||||||
|
|
||||||
|
print "$StrLoginInfo<br />";
|
||||||
|
print "<form action='".$_SERVER['PHP_SELF']."' method='post' enctype='multipart/form-data'>";
|
||||||
|
|
||||||
|
print "<table class='upload'>";
|
||||||
|
print "<tr><td>$StrUsername</td><td><input name='input_username' size=20></td></tr>";
|
||||||
|
print "<tr><td>$StrPassword</td><td><input type='password' name='input_password' size=20></td></tr>";
|
||||||
|
print "<tr><td> </td><td><input class='button' type='submit' value='$StrLogIn'></td></tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
print "<input type='hidden' name=path value=\"".htmlentities($path)."\">";
|
||||||
|
print "</form>";
|
||||||
|
|
||||||
|
print "<br /><br /></center>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
?>
|
31
root/opt/webshare-tools/phpfm/incl/phpfm.css
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
body { margin : 0px; font-family : Tahoma, serif; font-size : 8pt; color : #000000; background-color: transparent; }
|
||||||
|
|
||||||
|
font.headline { font-family : Tahoma, serif; font-size : 25pt; color : #000000; font-weight : bold; background-color: transparent; }
|
||||||
|
font.iheadline { font-family : Tahoma, serif; font-size : 10pt; color : #FFFFFF; font-weight : bold; background-color: transparent; }
|
||||||
|
|
||||||
|
table.top { width: 100%; border-bottom : 1px solid #000000; background-color: transparent; }
|
||||||
|
table.bottom { width: 100%; border-top : 1px solid #000000; font-family : Tahoma, serif; font-size : 8pt; background-color: transparent; }
|
||||||
|
table.index { background-color : #EEEEEE; color : #000000; border : 1px solid #000000; font-family : Tahoma, serif; font-size : 8pt; }
|
||||||
|
table.directories { font-family : Tahoma, serif; font-size : 10pt; background-color: transparent; }
|
||||||
|
table.files { font-family : Tahoma, serif; font-size : 10pt; background-color: transparent; }
|
||||||
|
table.menu { font-family : Tahoma, serif; font-size : 10pt; background-color: transparent; }
|
||||||
|
table.upload { font-family : Tahoma, serif; font-size : 8pt; background-color: transparent; }
|
||||||
|
table.output { font-family : Tahoma, serif; font-size : 8pt; background-color : #EEEEEE; color : #000000; }
|
||||||
|
|
||||||
|
td.iheadline { background-color : #5485C9; color : #000000; border-bottom : 1px solid #000000; }
|
||||||
|
td.fbborder { border-right : 1px solid #000000; background-color: transparent; }
|
||||||
|
|
||||||
|
a:link { text-decoration : none; color : #000000; background-color: transparent; }
|
||||||
|
a:visited { text-decoration : none; color : #000000; background-color: transparent; }
|
||||||
|
a:hover { text-decoration : underline; color : #000000; background-color: transparent; }
|
||||||
|
|
||||||
|
a.bottom:link { text-decoration : none; color : #000088; background-color: transparent; }
|
||||||
|
a.bottom:visited { text-decoration : none; color : #000088; background-color: transparent; }
|
||||||
|
a.bottom:hover { text-decoration : underline; color : #000088; background-color: transparent; }
|
||||||
|
|
||||||
|
input { background-color : #DDDDDD; border : 1px solid #000000; font-family : Tahoma, serif; font-size : 8pt; color : #000000; }
|
||||||
|
input.button { width : 50px; }
|
||||||
|
input.bigbutton { width : 100px; }
|
||||||
|
textarea { background-color : #FFFFFF; color : #000000; border : 1px solid #000000; font-family : Tahoma, serif; font-size : 10pt; }
|
||||||
|
|
||||||
|
.bold { font-weight : bold; background-color: transparent; }
|
76
root/opt/webshare-tools/phpfm/incl/rename.inc.php
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
if ($AllowRename && isset($_GET['directory_name']) || $AllowRename && isset($_GET['filename']) || $AllowRename && isset($_POST['directory_name']) || $AllowRename && isset($_POST['filename']))
|
||||||
|
{
|
||||||
|
if (isset($_GET['rename']) && isset($_POST['directory_name']))
|
||||||
|
{
|
||||||
|
if (!is_valid_name(substr($new_directory_name, 0, -1)))
|
||||||
|
print "<font color='#CC0000'>$StrFolderInvalidName</font>";
|
||||||
|
else if (@file_exists($home_directory.$path.$new_directory_name))
|
||||||
|
print "<font color='#CC0000'>$StrAlreadyExists</font>";
|
||||||
|
else if (@rename($home_directory.$path.$directory_name, $home_directory.$path.$new_directory_name))
|
||||||
|
print "<font color='#009900'>$StrRenameFolderSuccess</font>";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<font color='#CC0000'>$StrRenameFolderFail</font><br /><br />";
|
||||||
|
print $StrRenameFolderFailHelp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (isset($_GET['rename']) && isset($_POST['filename']))
|
||||||
|
{
|
||||||
|
if (!is_valid_name($new_filename))
|
||||||
|
print "<font color='#CC0000'>$StrFileInvalidName</font>";
|
||||||
|
else if (@file_exists($home_directory.$path.$new_filename))
|
||||||
|
print "<font color='#CC0000'>$StrAlreadyExists</font>";
|
||||||
|
else if (@rename($home_directory.$path.$filename, $home_directory.$path.$new_filename))
|
||||||
|
print "<font color='#009900'>$StrRenameFileSuccess</font>";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<font color='#CC0000'>$StrRenameFileFail</font><br /><br />";
|
||||||
|
print $StrRenameFileFailHelp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<table class='index' width=500 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' height=21>";
|
||||||
|
if (isset($_GET['directory_name'])) print "<font class='iheadline'> $StrRenameFolder \"".htmlentities(basename($directory_name))."\"</font>";
|
||||||
|
else if (isset($_GET['filename'])) print "<font class='iheadline'> $StrRenameFile \"".htmlentities($filename)."\"</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "<td class='iheadline' align='right' height=21>";
|
||||||
|
print "<font class='iheadline'><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/back.gif' border=0 alt='$StrBack'></a></font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td valign='top' colspan=2>";
|
||||||
|
|
||||||
|
print "<center><br />";
|
||||||
|
|
||||||
|
if (isset($_GET['directory_name'])) print "$StrRenameFolderQuestion<br /><br />";
|
||||||
|
else if (isset($_GET['filename'])) print "$StrRenameFileQuestion<br /><br />";
|
||||||
|
print "<form action='$base_url&output=rename&rename=true' method='post'>";
|
||||||
|
if (isset($_GET['directory_name'])) print "<input name='new_directory_name' value=\"".htmlentities(basename($directory_name))."\" size=40> ";
|
||||||
|
else if (isset($_GET['filename'])) print "<input name='new_filename' value=\"".htmlentities($filename)."\" size=40> ";
|
||||||
|
print "<input class='bigbutton' type='submit' value='$StrRename'>";
|
||||||
|
if (isset($_GET['directory_name'])) print "<input type='hidden' name=directory_name value=\"".htmlentities($directory_name)."\">";
|
||||||
|
else if (isset($_GET['filename'])) print "<input type='hidden' name=filename value=\"".htmlentities($filename)."\">";
|
||||||
|
print "<input type='hidden' name=path value=\"".htmlentities($path)."\">";
|
||||||
|
print "</form>";
|
||||||
|
|
||||||
|
print "<br /><br /></center>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||||
|
|
||||||
|
?>
|
66
root/opt/webshare-tools/phpfm/incl/upload.inc.php
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
if ($AllowUpload && isset($_GET['upload']))
|
||||||
|
{
|
||||||
|
print "<table cellspacing=0 cellpadding=0 class='upload'>";
|
||||||
|
|
||||||
|
if (!isset($_FILES['userfile']))
|
||||||
|
// maximum post size reached
|
||||||
|
print $StrUploadFailPost;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for($i=0;$i<=3;$i++)
|
||||||
|
{
|
||||||
|
$_FILES['userfile']['name'][$i] = stripslashes($_FILES['userfile']['name'][$i]);
|
||||||
|
if (@move_uploaded_file($_FILES['userfile']['tmp_name'][$i], realpath($home_directory.$path)."/".$_FILES['userfile']['name'][$i]))
|
||||||
|
print "<tr><td width='250'>$StrUploading ".$_FILES['userfile']['name'][$i]."</td><td width='50' align='center'>[<font color='#009900'>$StrUploadSuccess</font>]</td></tr>";
|
||||||
|
else if ($_FILES['userfile']['name'][$i])
|
||||||
|
print "<tr><td width='250'>$StrUploading ".$_FILES['userfile']['name'][$i]."</td><td width='50' align='center'>[<font color='#CC0000'>$StrUploadFail</font>]</td></tr>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print "</table>";
|
||||||
|
}
|
||||||
|
|
||||||
|
else if ($AllowUpload)
|
||||||
|
{
|
||||||
|
print "<table class='index' width=500 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' height=21>";
|
||||||
|
print "<font class='iheadline'> $StrUploadFilesTo \"/".htmlentities($path)."\"</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "<td class='iheadline' align='right' height=21>";
|
||||||
|
print "<font class='iheadline'><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/back.gif' border=0 alt='$StrBack'></a></font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td valign='top' colspan=2>";
|
||||||
|
|
||||||
|
print "<center><br />";
|
||||||
|
|
||||||
|
print "$StrUploadQuestion<br />";
|
||||||
|
print "<form action='$base_url&output=upload&upload=true' method='post' enctype='multipart/form-data'>";
|
||||||
|
|
||||||
|
print "<table class='upload'>";
|
||||||
|
print "<tr><td>$StrFirstFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
|
||||||
|
print "<tr><td>$StrSecondFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
|
||||||
|
print "<tr><td>$StrThirdFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
|
||||||
|
print "<tr><td>$StrFourthFile</td><td><input type='file' name='userfile[]' size=30></td></tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
print "<input class='bigbutton' type='submit' value='$StrUpload'>";
|
||||||
|
print "<input type='hidden' name=path value=\"".htmlentities($path)."\">";
|
||||||
|
print "</form>";
|
||||||
|
|
||||||
|
print "<br /><br /></center>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||||
|
|
||||||
|
?>
|
85
root/opt/webshare-tools/phpfm/incl/view.inc.php
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!@include_once("./incl/auth.inc.php"))
|
||||||
|
include_once("../incl/auth.inc.php");
|
||||||
|
|
||||||
|
if ($AllowView && isset($_GET['filename']))
|
||||||
|
{
|
||||||
|
$filename = stripslashes($_GET['filename']);
|
||||||
|
|
||||||
|
print "<table class='index' width=800 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='iheadline' height=21>";
|
||||||
|
print "<font class='iheadline'> $StrViewing \"".htmlentities($filename)."\" $StrAt ".$_GET['size']."%</font>";
|
||||||
|
print "</td>";
|
||||||
|
print "<td class='iheadline' align='right' height=21>";
|
||||||
|
print "<font class='iheadline'><a href='$base_url&path=".htmlentities(rawurlencode($path))."'><img src='icon/back.gif' border=0 alt='$StrBack'></a></font>";
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td valign='top' colspan=2>";
|
||||||
|
|
||||||
|
print "<center><br />";
|
||||||
|
|
||||||
|
if (is_file($home_directory.$path.$filename) && is_viewable_file($filename))
|
||||||
|
{
|
||||||
|
$image_info = GetImageSize($home_directory.$path.$filename);
|
||||||
|
$size = $_GET['size'];
|
||||||
|
$zoom_in = $ZoomArray[get_current_zoom_level($size, 1)];
|
||||||
|
$zoom_out = $ZoomArray[get_current_zoom_level($size, -1)];
|
||||||
|
$width = $image_info[0] * $size / 100;
|
||||||
|
$height = $image_info[1] * $size / 100;
|
||||||
|
|
||||||
|
$files = array();
|
||||||
|
if ($open = opendir($home_directory.$path))
|
||||||
|
{
|
||||||
|
while ($file = readdir($open))
|
||||||
|
if (is_file($home_directory.$path.$file) && is_viewable_file($file))
|
||||||
|
$files[] = $file;
|
||||||
|
closedir($open);
|
||||||
|
sort($files);
|
||||||
|
|
||||||
|
if (count($files)>1)
|
||||||
|
{
|
||||||
|
for($i=0;$files[$i]!=$filename;$i++);
|
||||||
|
if ($i==0) $prev = $files[$i+count($files)-1];
|
||||||
|
else $prev = $files[$i-1];
|
||||||
|
if ($i==(count($files)-1)) $next = $files[$i-count($files)+1];
|
||||||
|
else $next = $files[$i+1];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$prev = $filename;
|
||||||
|
$next = $filename;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print "<table class='menu' cellpadding=2 cellspacing=0>";
|
||||||
|
print "<tr>";
|
||||||
|
print "<td align='center' valign='bottom'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($filename))."&action=view&size=$zoom_in'><img src='icon/plus.gif' width=11 height=11 border=0 alt='$StrZoomIn'> $StrZoomIn</a></td>";
|
||||||
|
print "<td align='center' valign='bottom'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($filename))."&action=view&size=$zoom_out'><img src='icon/minus.gif' width=11 height=11 border=0 alt='$StrZoomOut'> $StrZoomOut</a></td>";
|
||||||
|
print "<td align='center' valign='bottom'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($filename))."&action=view&size=100'><img src='icon/original.gif' width=11 height=11 border=0 alt='$StrOriginalSize'> $StrOriginalSize</a></td>";
|
||||||
|
print "<td align='center' valign='bottom'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($prev))."&action=view&size=$size'><img src='icon/previous.gif' width=11 height=11 border=0 alt='$StrPrevious'> $StrPrevious</a></td>";
|
||||||
|
print "<td align='center' valign='bottom'><a href='$base_url&path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($next))."&action=view&size=$size'><img src='icon/next.gif' width=11 height=11 border=0 alt='$StrNext'> $StrNext</a></td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table><br />";
|
||||||
|
print "<img src='incl/libfile.php?path=".htmlentities(rawurlencode($path))."&filename=".htmlentities(rawurlencode($filename))."&action=view' width='$width' height='$height' alt='$StrImage'>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<font color='#CC0000'>$StrViewFail</font><br /><br />";
|
||||||
|
print "$StrViewFailHelp";
|
||||||
|
}
|
||||||
|
|
||||||
|
print "<br /><br /></center>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
print "</tr>";
|
||||||
|
print "</table>";
|
||||||
|
|
||||||
|
print "<input type='hidden' name='path' value=\"".htmlentities($path)."\">";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
print "<font color='#CC0000'>$StrAccessDenied</font>";
|
||||||
|
|
||||||
|
?>
|
93
root/opt/webshare-tools/phpfm/index.php
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
define("VERSION", "0.2.3");
|
||||||
|
|
||||||
|
include("./conf/config.inc.php");
|
||||||
|
include("./incl/functions.inc.php");
|
||||||
|
include("./lang/$language.inc.php");
|
||||||
|
include("./incl/header.inc.php");
|
||||||
|
include("./incl/html.header.inc.php");
|
||||||
|
|
||||||
|
|
||||||
|
/* register directory/filename */
|
||||||
|
|
||||||
|
if (isset($_GET['directory_name']))
|
||||||
|
{
|
||||||
|
$directory_name = basename(stripslashes($_GET['directory_name']))."/";
|
||||||
|
}
|
||||||
|
if (isset($_GET['filename']))
|
||||||
|
{
|
||||||
|
$filename = basename(stripslashes($_GET['filename']));
|
||||||
|
}
|
||||||
|
if (isset($_POST['directory_name']))
|
||||||
|
{
|
||||||
|
$directory_name = basename(stripslashes($_POST['directory_name']))."/";
|
||||||
|
}
|
||||||
|
if (isset($_POST['filename']))
|
||||||
|
{
|
||||||
|
$filename = basename(stripslashes($_POST['filename']));
|
||||||
|
}
|
||||||
|
if (isset($_POST['new_directory_name']))
|
||||||
|
{
|
||||||
|
$new_directory_name = basename(stripslashes($_POST['new_directory_name']))."/";
|
||||||
|
}
|
||||||
|
if (isset($_POST['new_filename']))
|
||||||
|
{
|
||||||
|
$new_filename = basename(stripslashes($_POST['new_filename']));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* validate path */
|
||||||
|
|
||||||
|
if (isset($_GET['path']))
|
||||||
|
$path = validate_path($_GET['path']);
|
||||||
|
else if (isset($_POST['path']))
|
||||||
|
$path = validate_path($_POST['path']);
|
||||||
|
|
||||||
|
if (!isset($path) || $path == "./" || $path == ".\\" || $path == "/" || $path == "\\")
|
||||||
|
$path = false;
|
||||||
|
|
||||||
|
|
||||||
|
if (isset($_SESSION['session_username']) && $_SESSION['session_username'] == $username && isset($_SESSION['session_password']) && $_SESSION['session_password'] == md5($password) || !$phpfm_auth)
|
||||||
|
{
|
||||||
|
if (!(@opendir($home_directory.$path)) || (substr($home_directory, -1) != "/"))
|
||||||
|
{
|
||||||
|
print "<table class='output' width=400 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr><td align='center'>";
|
||||||
|
|
||||||
|
if (!(@opendir($home_directory)))
|
||||||
|
print "<font color='#CC0000'>$StrInvalidHomeFolder</font>";
|
||||||
|
else if (!(@opendir($home_directory.$path)))
|
||||||
|
print "<font color='#CC0000'>$StrInvalidPath</font>";
|
||||||
|
if (substr($home_directory, -1) != "/")
|
||||||
|
print " <font color='#CC0000'>$StrMissingTrailingSlash</font>";
|
||||||
|
|
||||||
|
print "</td></tr>";
|
||||||
|
print "</table><br />";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($_GET['action']) && is_file("incl/".$_GET['action'].".inc.php") && is_valid_name($_GET['action']))
|
||||||
|
include("./incl/".basename($_GET['action']).".inc.php");
|
||||||
|
else if (isset($_GET['output']) && is_file("incl/".$_GET['output'].".inc.php") && is_valid_name($_GET['output']))
|
||||||
|
{
|
||||||
|
print "<table class='output' width=400 cellpadding=0 cellspacing=0>";
|
||||||
|
print "<tr><td align='center'>";
|
||||||
|
include("./incl/".basename($_GET['output']).".inc.php");
|
||||||
|
print "</td></tr>";
|
||||||
|
print "</table><br />";
|
||||||
|
|
||||||
|
include("./incl/filebrowser.inc.php");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
include("./incl/filebrowser.inc.php");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
include("./incl/login.inc.php");
|
||||||
|
}
|
||||||
|
|
||||||
|
include("./incl/footer.inc.php");
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/bulgarian.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by Plamen Baruh (plamen@baruh.net) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "windows-1251";
|
||||||
|
|
||||||
|
$StrIndexOf = "Списък на";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Нова директория";
|
||||||
|
$StrMenuCreateFile = "Нов файл";
|
||||||
|
$StrMenuUploadFiles = "Качване на файл";
|
||||||
|
$StrMenuLogOut = "Изход";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Влизане в директория";
|
||||||
|
$StrRenameFolder = "Преименуване на директория";
|
||||||
|
$StrDeleteFolder = "Изтриване на директория";
|
||||||
|
|
||||||
|
$StrViewFile = "Отвори файл";
|
||||||
|
$StrEditFile = "Редактирай файл";
|
||||||
|
$StrRenameFile = "Преименувай файл";
|
||||||
|
$StrDownloadFile = "Свали файл";
|
||||||
|
$StrDeleteFile = "Изтрий файл";
|
||||||
|
|
||||||
|
$StrFile = "Файл";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Име";
|
||||||
|
$StrFileNameShort = "Име";
|
||||||
|
$StrFileSizeShort = "Големина";
|
||||||
|
$StrPermissionsShort = "Права";
|
||||||
|
$StrLastModifiedShort = "Промяна";
|
||||||
|
$StrEditShort = "О";
|
||||||
|
$StrViewShort = "Р";
|
||||||
|
$StrRenameShort = "П";
|
||||||
|
$StrDownloadShort = "С";
|
||||||
|
$StrDeleteShort = "И";
|
||||||
|
|
||||||
|
$StrBack = "Назад";
|
||||||
|
$StrYes = "Да";
|
||||||
|
$StrOr = "или";
|
||||||
|
$StrCancel = "Откажи";
|
||||||
|
|
||||||
|
$StrUsername = "Потрбителско име:";
|
||||||
|
$StrPassword = "Парола:";
|
||||||
|
$StrLogIn = "Влез";
|
||||||
|
$StrLoginSystem = "Вход в система:";
|
||||||
|
$StrLoginInfo = "Моля въведете вашето потребителско име и паролата ви за достъп:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Достъп отказан!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Грешен корен на дърво.";
|
||||||
|
$StrInvalidPath = "Грешен път.";
|
||||||
|
$StrMissingTrailingSlash = "(Липсва водещата наклонена черта)";
|
||||||
|
$StrAlreadyExists = "Файл или директория с тава име вече съществуват.";
|
||||||
|
$StrFolderInvalidName = "Невалидни име за файл или директория.";
|
||||||
|
$StrFileInvalidName = "Невалидно име за файл.";
|
||||||
|
$StrErrorOpeningFile = "Грешка при отваряне на файл.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Файлът е записан успешно!";
|
||||||
|
$StrSaveFileFail = "Грешка при записване на файл.";
|
||||||
|
$StrEditing = "Редактиране";
|
||||||
|
$StrFilename = "Име на файл:";
|
||||||
|
$StrRestoreOriginal = "Откажи промените";
|
||||||
|
$StrSaveAndExit = "Запиши & Излез";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Директорията не е намерена.";
|
||||||
|
$StrDeleteFileNotFound = "Файлът не е намерен.";
|
||||||
|
$StrDeleteFolderSuccess = "Директорията е изтрита успешно!";
|
||||||
|
$StrDeleteFileSuccess = "Файлът е изтрин успешно!";
|
||||||
|
$StrDeleteFolderFail = "Грешка при изтриване на директория.";
|
||||||
|
$StrDeleteFileFail = "Грешка при изтриване на файл.";
|
||||||
|
$StrDeleteFolderFailHelp = "Това може да се дължи на липса на права.";
|
||||||
|
$StrDeleteFileFailHelp = "Това може да се дължи на липса на права.";
|
||||||
|
$StrDeleteFolderQuestion = "Сигурни ли сте, че искате да изтриете директорията?";
|
||||||
|
$StrDeleteFileQuestion = "Сигурни ли сте, че искате да изтриете файлът?";
|
||||||
|
|
||||||
|
$StrRename = "Преименуване";
|
||||||
|
$StrRenameFolder = "Преименуване на директория";
|
||||||
|
$StrRenameFile = "Преименуване на файл";
|
||||||
|
$StrRenameFolderSuccess = "Директорията е преименувана успешно!";
|
||||||
|
$StrRenameFileSuccess = "Файлът е преименуван успешно!";
|
||||||
|
$StrRenameFolderFail = "Грешка при преименуване на директория.";
|
||||||
|
$StrRenameFileFail = "Грешка при преименуване на файл.";
|
||||||
|
$StrRenameFolderFailHelp = "Това може да се дължи на липса на права или грешно име на директирия.";
|
||||||
|
$StrRenameFileFailHelp = "Това може да се дължи на липса на права или грешно име на файл.";
|
||||||
|
$StrRenameFolderQuestion = "Моля изберете ново име за следната директиря:";
|
||||||
|
$StrRenameFileQuestion = "Моля изберете ново име за следния файл:";
|
||||||
|
|
||||||
|
$StrCreate = "Създване";
|
||||||
|
$StrCreateFolder = "Създаване на нова директория";
|
||||||
|
$StrCreateFile = "Създаване на нов файл";
|
||||||
|
$StrCreateFolderSuccess = "Директорията е създадена успешно!";
|
||||||
|
$StrCreateFileSuccess = "Файлът е създаден успешно!";
|
||||||
|
$StrCreateFolderFail = "Грешка при създаване на директория.";
|
||||||
|
$StrCreateFileFail = "Грешка при създаване на файл.";
|
||||||
|
$StrCreateFolderFailHelp = "Това може да се дължи на липса на права.";
|
||||||
|
$StrCreateFileFailHelp = "Това може да се дължи на липса на права.";
|
||||||
|
$StrCreateFolderQuestion = "Изберете име за новата директория:";
|
||||||
|
$StrCreateFileQuestion = "Изберете име за новият файл:";
|
||||||
|
|
||||||
|
$StrUpload = "Качване";
|
||||||
|
$StrUploadFilesTo = "Качване на файл в";
|
||||||
|
$StrUploading = "Качване";
|
||||||
|
$StrUploadSuccess = "ОК!";
|
||||||
|
$StrUploadFail = "ГРЕШКА!";
|
||||||
|
$StrUploadFailPost = "Максималната големина е достигната.";
|
||||||
|
$StrFirstFile = "1ви файл:";
|
||||||
|
$StrSecondFile = "2ри файл:";
|
||||||
|
$StrThirdFile = "3ти файл:";
|
||||||
|
$StrFourthFile = "4ти файл:";
|
||||||
|
$StrUploadQuestion = "Изберете файловте, които искате да качите:";
|
||||||
|
$StrUploadNote = "Забележка: Качените файлове ще бъдат сложени в:";
|
||||||
|
|
||||||
|
$StrDownload = "Сваляне";
|
||||||
|
$StrDownloadClickLink = "Натиснете долния линк за да започнете свалянето.";
|
||||||
|
$StrDownloadClickHere = "За сваляне натиснете тук";
|
||||||
|
$StrDownloadFail = "Грешка при отваряне на файл или грешно име на файл.";
|
||||||
|
|
||||||
|
$StrViewing = "Разглеждане";
|
||||||
|
$StrAt = "на";
|
||||||
|
$StrViewFail = "Грешка при товаряне на картинка.";
|
||||||
|
$StrViewFailHelp = "Грешка при отваряне на файл или файлът не е картинка.";
|
||||||
|
$StrImage = "Картинка";
|
||||||
|
$StrZoomIn = "Уголеми";
|
||||||
|
$StrZoomOut = "Намали";
|
||||||
|
$StrOriginalSize = "Оргинална големина";
|
||||||
|
$StrPrevious = "Назад";
|
||||||
|
$StrNext = "Напред";
|
||||||
|
|
||||||
|
?>
|
127
root/opt/webshare-tools/phpfm/lang/danish.inc.php
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by Morten Bojsen-Hansen (phpfm@zalon.dk) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Indeks af";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Opret ny mappe";
|
||||||
|
$StrMenuCreateFile = "Opret ny fil";
|
||||||
|
$StrMenuUploadFiles = "Overfør filer";
|
||||||
|
$StrMenuLogOut = "Log af";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Åben mappe";
|
||||||
|
$StrRenameFolder = "Omdøb mappe";
|
||||||
|
$StrDeleteFolder = "Slet mappe";
|
||||||
|
|
||||||
|
$StrViewFile = "Vis fil";
|
||||||
|
$StrEditFile = "Editer fil";
|
||||||
|
$StrRenameFile = "Omdøb fil";
|
||||||
|
$StrDownloadFile = "Hent fil";
|
||||||
|
$StrDeleteFile = "Slet fil";
|
||||||
|
|
||||||
|
$StrFile = "Fil";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Navn";
|
||||||
|
$StrFileNameShort = "Navn";
|
||||||
|
$StrFileSizeShort = "Str.";
|
||||||
|
$StrPermissionsShort = "Adgang";
|
||||||
|
$StrLastModifiedShort = "Ændret";
|
||||||
|
$StrEditShort = "Ed";
|
||||||
|
$StrViewShort = "Vi";
|
||||||
|
$StrRenameShort = "Om";
|
||||||
|
$StrDownloadShort = "He";
|
||||||
|
$StrDeleteShort = "Sl";
|
||||||
|
|
||||||
|
$StrBack = "Tilbage";
|
||||||
|
$StrYes = "Ja";
|
||||||
|
$StrOr = "eller";
|
||||||
|
$StrCancel = "Annuller";
|
||||||
|
|
||||||
|
$StrUsername = "Brugernavn:";
|
||||||
|
$StrPassword = "Adgangskode:";
|
||||||
|
$StrLogIn = "Log ind";
|
||||||
|
$StrLoginSystem = "Login system:";
|
||||||
|
$StrLoginInfo = "Indtast venligst brugernavn og adgangskode nedenfor:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Adgang nægtet!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Ugyldigt rod mappe.";
|
||||||
|
$StrInvalidPath = "Ugyldig sti.";
|
||||||
|
$StrMissingTrailingSlash = "(Manglende slut slash)";
|
||||||
|
$StrAlreadyExists = "En fil eller en mappe med det navn eksisterer allerede.";
|
||||||
|
$StrFolderInvalidName = "Ugyldig mappenavn.";
|
||||||
|
$StrFileInvalidName = "Ugyldig filnavn.";
|
||||||
|
$StrErrorOpeningFile = "Fejl ved åbning af fil.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Filen blev gemt med succes!";
|
||||||
|
$StrSaveFileFail = "Fejl under lagring af fil.";
|
||||||
|
$StrEditing = "Editerer";
|
||||||
|
$StrFilename = "Filnavn:";
|
||||||
|
$StrRestoreOriginal = "Genopret original";
|
||||||
|
$StrSaveAndExit = "Gem & luk";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Mappen kunne ikke findes.";
|
||||||
|
$StrDeleteFileNotFound = "Filen kunne ikke findes.";
|
||||||
|
$StrDeleteFolderSuccess = "Mappen blev slettet med succes!";
|
||||||
|
$StrDeleteFileSuccess = "Filen blev slettet med succes!";
|
||||||
|
$StrDeleteFolderFail = "Fejl under sletning af mappen.";
|
||||||
|
$StrDeleteFileFail = "Fejl under sletning af filen.";
|
||||||
|
$StrDeleteFolderFailHelp = "Dette kan være forudsaget af manglende rettigheder.";
|
||||||
|
$StrDeleteFileFailHelp = "Dette kan være forudsaget af manglende rettigheder.";
|
||||||
|
$StrDeleteFolderQuestion = "Er du sikker på du vil slette den følgende mappe?";
|
||||||
|
$StrDeleteFileQuestion = "Er du sikker på du vil slette den følgende fil?";
|
||||||
|
|
||||||
|
$StrRename = "Omdøb";
|
||||||
|
$StrRenameFolder = "Omdøb mappe";
|
||||||
|
$StrRenameFile = "Omdøb fil";
|
||||||
|
$StrRenameFolderSuccess = "Mappen blev omdøbt med succes!";
|
||||||
|
$StrRenameFileSuccess = "Filen blev omdøbt med succes!";
|
||||||
|
$StrRenameFolderFail = "Fejl under ombøbning af mappen.";
|
||||||
|
$StrRenameFileFail = "Fejl under ombøbning af filen.";
|
||||||
|
$StrRenameFolderFailHelp = "Dette kan være forudsaget af manglende rettigheder eller et ugyldigt mappenavn.";
|
||||||
|
$StrRenameFileFailHelp = "Dette kan være forudsaget af manglende rettigheder eller et ugyldigt filnavn.";
|
||||||
|
$StrRenameFolderQuestion = "Vælg venligst et nyt navn til den følgende mappe:";
|
||||||
|
$StrRenameFileQuestion = "Vælg venligst et nyt navn til den følgende fil:";
|
||||||
|
|
||||||
|
$StrCreate = "Opret";
|
||||||
|
$StrCreateFolder = "Opret ny mappe";
|
||||||
|
$StrCreateFile = "Opret ny fil";
|
||||||
|
$StrCreateFolderSuccess = "Mappen blev oprettet med succes!";
|
||||||
|
$StrCreateFileSuccess = "Filen blev oprettet med succes!";
|
||||||
|
$StrCreateFolderFail = "Fejl under oprettelse af mappen.";
|
||||||
|
$StrCreateFileFail = "Fejl under oprettelse af filen.";
|
||||||
|
$StrCreateFolderFailHelp = "Dette kan være forudsaget af manglende rettigheder.";
|
||||||
|
$StrCreateFileFailHelp = "Dette kan være forudsaget af manglende rettigheder.";
|
||||||
|
$StrCreateFolderQuestion = "Vælg venligst et navn til den nye mappe:";
|
||||||
|
$StrCreateFileQuestion = "Vælg venligst et navn til den nye fil:";
|
||||||
|
|
||||||
|
$StrUpload = "Overfør";
|
||||||
|
$StrUploadFilesTo = "Overfør filer til";
|
||||||
|
$StrUploading = "Overfører";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "FEJL!";
|
||||||
|
$StrUploadFailPost = "Maksimum størrelse af POST nået - læs docs/faq.txt for flere oplysninger.";
|
||||||
|
$StrFirstFile = "1. fil:";
|
||||||
|
$StrSecondFile = "2. fil:";
|
||||||
|
$StrThirdFile = "3. fil:";
|
||||||
|
$StrFourthFile = "4. fil:";
|
||||||
|
$StrUploadQuestion = "Vælg de filer du ønsker at overføre til serveren:";
|
||||||
|
|
||||||
|
$StrDownload = "Hent";
|
||||||
|
$StrDownloadClickLink = "Klil på linket nedenfor for at begynde med at hente filen.";
|
||||||
|
$StrDownloadClickHere = "Klik her for at hente filen";
|
||||||
|
$StrDownloadFail = "Fejl under åbning af filen eller ugyldigt filnavn.";
|
||||||
|
|
||||||
|
$StrViewing = "Viser";
|
||||||
|
$StrAt = "ved";
|
||||||
|
$StrViewFail = "Fejl under åbning af billedet.";
|
||||||
|
$StrViewFailHelp = "Filen eksisterer ikke eller er ikke et billede.";
|
||||||
|
$StrImage = "Billede";
|
||||||
|
$StrZoomIn = "Zoom ind";
|
||||||
|
$StrZoomOut = "Zoom ud";
|
||||||
|
$StrOriginalSize = "Original størrelse";
|
||||||
|
$StrPrevious = "Forrige";
|
||||||
|
$StrNext = "Næste";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/dutch.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by ? (?@?) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Index van";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Maak nieuwe directory";
|
||||||
|
$StrMenuCreateFile = "Maak nieuw bestand";
|
||||||
|
$StrMenuUploadFiles = "Upload bestanden";
|
||||||
|
$StrMenuLogOut = "Uitloggen";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Open directory";
|
||||||
|
$StrRenameFolder = "Wijzig directory naam";
|
||||||
|
$StrDeleteFolder = "Verwijder directory";
|
||||||
|
|
||||||
|
$StrViewFile = "Bekijk bestand";
|
||||||
|
$StrEditFile = "Bewerk bestand";
|
||||||
|
$StrRenameFile = "Wijzig bestandsnaam";
|
||||||
|
$StrDownloadFile = "Download bestand";
|
||||||
|
$StrDeleteFile = "Verwijder bestand";
|
||||||
|
|
||||||
|
$StrFile = "Bestand";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Naam";
|
||||||
|
$StrFileNameShort = "Naam";
|
||||||
|
$StrFileSizeShort = "Grootte";
|
||||||
|
$StrPermissionsShort = "Rechten";
|
||||||
|
$StrLastModifiedShort = "Gewijzigd";
|
||||||
|
$StrEditShort = "Ed";
|
||||||
|
$StrViewShort = "Vw";
|
||||||
|
$StrRenameShort = "Rn";
|
||||||
|
$StrDownloadShort = "Dl";
|
||||||
|
$StrDeleteShort = "Rm";
|
||||||
|
|
||||||
|
$StrBack = "Terug";
|
||||||
|
$StrYes = "Ja";
|
||||||
|
$StrOr = "of";
|
||||||
|
$StrCancel = "Cancel";
|
||||||
|
|
||||||
|
$StrUsername = "Gebruikersnaam:";
|
||||||
|
$StrPassword = "Paswoord:";
|
||||||
|
$StrLogIn = "Log in";
|
||||||
|
$StrLoginSystem = "Login systeem:";
|
||||||
|
$StrLoginInfo = "Geef hieronder uw gebruikersnaam en paswoord aub.:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Toegang geweigerd!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Ongeldige hoofd directory.";
|
||||||
|
$StrInvalidPath = "Ongeldige path.";
|
||||||
|
$StrMissingTrailingSlash = "(De for-slash ontbreekt)";
|
||||||
|
$StrAlreadyExists = "Er bestaat al een bestand of directory met deze naam.";
|
||||||
|
$StrFolderInvalidName = "Ongeldige directory naam.";
|
||||||
|
$StrFileInvalidName = "Ongeldige bestandsnaam.";
|
||||||
|
$StrErrorOpeningFile = "Fout bij het open van het bestand.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Bestand met succes opgeslagen!";
|
||||||
|
$StrSaveFileFail = "Bestands opslag mislukt.";
|
||||||
|
$StrEditing = "Wijzigen";
|
||||||
|
$StrFilename = "Bestandsnaam:";
|
||||||
|
$StrRestoreOriginal = "Herstel orgineel";
|
||||||
|
$StrSaveAndExit = "Opslaan en verlaten";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Directory niet gevonden.";
|
||||||
|
$StrDeleteFileNotFound = "Bestand niet gevonden.";
|
||||||
|
$StrDeleteFolderSuccess = "Directory met succes verwijderd!";
|
||||||
|
$StrDeleteFileSuccess = "Bestand met succes verwijderd!";
|
||||||
|
$StrDeleteFolderFail = "Verwijderen van directory mislukt.";
|
||||||
|
$StrDeleteFileFail = "Verwijderen van bestand mislukt.";
|
||||||
|
$StrDeleteFolderFailHelp = "De oorzaak hiervan kan te weinig gebruikersrechten zijn.";
|
||||||
|
$StrDeleteFileFailHelp = "De oorzaak hiervan kan te weinig gebruikersrechten zijn.";
|
||||||
|
$StrDeleteFolderQuestion = "Weet u zeker dat u deze directory wilt verwijderen?";
|
||||||
|
$StrDeleteFileQuestion = "Weet u zeker dat u dit bestand wilt verwijderen?";
|
||||||
|
|
||||||
|
$StrRename = "Naam hernoemen";
|
||||||
|
$StrRenameFolder = "Directory hernoemen";
|
||||||
|
$StrRenameFile = "Bestand hernoemen";
|
||||||
|
$StrRenameFolderSuccess = "Directory met succes hernoemd!";
|
||||||
|
$StrRenameFileSuccess = "Bestand met succes hernoemd!";
|
||||||
|
$StrRenameFolderFail = "Hernoemen van directory mislukt.";
|
||||||
|
$StrRenameFileFail = "Hernoemen van bestand mislukt.";
|
||||||
|
$StrRenameFolderFailHelp = "Dit kan veroorzaakt zijn door te weinig gebruikersrechten of foute directory naam.";
|
||||||
|
$StrRenameFileFailHelp = "Dit kan veroorzaakt zijn door te weinig gebruikersrechten of foute bestandsnaam.";
|
||||||
|
$StrRenameFolderQuestion = "Selecteer een nieuwe directory naam aub:";
|
||||||
|
$StrRenameFileQuestion = "Selecteer een nieuwe bestandsnaam aub:";
|
||||||
|
|
||||||
|
$StrCreate = "Maak";
|
||||||
|
$StrCreateFolder = "Maak nieuwe directory";
|
||||||
|
$StrCreateFile = "Maakn nieuw bestand";
|
||||||
|
$StrCreateFolderSuccess = "Directory met succes gemaakt!";
|
||||||
|
$StrCreateFileSuccess = "Bestand met succes gemaakt!";
|
||||||
|
$StrCreateFolderFail = "Maken van directory mislukt.";
|
||||||
|
$StrCreateFileFail = "Maken van bestand mislukt.";
|
||||||
|
$StrCreateFolderFailHelp = "De oorzaak kan zijn dat u te weinig gebruikersrechten heeft.";
|
||||||
|
$StrCreateFileFailHelp = "De oorzaak kan zijn dat u te weinig gebruikersrechten heeft.";
|
||||||
|
$StrCreateFolderQuestion = "Selecteer een naam voor de directory aub :";
|
||||||
|
$StrCreateFileQuestion = "Selecteer een naam voor het bestand aub:";
|
||||||
|
|
||||||
|
$StrUpload = "Upload";
|
||||||
|
$StrUploadFilesTo = "Upload bestanden naar";
|
||||||
|
$StrUploading = "Uploading";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "MISLUKT!";
|
||||||
|
$StrUploadFailPost = "Maximale upload grootte bereikt - bekijk docs/faq.txt voor meer informatie.";
|
||||||
|
$StrFirstFile = "1st bestand:";
|
||||||
|
$StrSecondFile = "2nd bestand:";
|
||||||
|
$StrThirdFile = "3rd bestand:";
|
||||||
|
$StrFourthFile = "4th bestand:";
|
||||||
|
$StrUploadQuestion = "Kies de bestanden die u wilt uploaden:";
|
||||||
|
$StrUploadNote = "Opmerking: Geuploade bestanden worden bewaard in:";
|
||||||
|
|
||||||
|
$StrDownload = "Download";
|
||||||
|
$StrDownloadClickLink = "Klik op de link hieronder om het bestand te downloaden.";
|
||||||
|
$StrDownloadClickHere = "Klik hier om het bestand te downloaden";
|
||||||
|
$StrDownloadFail = "Fout bij openen van het bestand, of ongeldige bestandsnaam.";
|
||||||
|
|
||||||
|
$StrViewing = "Bekijken";
|
||||||
|
$StrAt = "op";
|
||||||
|
$StrViewFail = "Fout bij openen afbeelding.";
|
||||||
|
$StrViewFailHelp = "Het bestand bestaat niet of het is geen afbeelding.";
|
||||||
|
$StrImage = "Afbeelding";
|
||||||
|
$StrZoomIn = "Inzoomen";
|
||||||
|
$StrZoomOut = "Uitzoemen";
|
||||||
|
$StrOriginalSize = "Originele grootte";
|
||||||
|
$StrPrevious = "Vorige";
|
||||||
|
$StrNext = "Volgende";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/english.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by Morten Bojsen-Hansen (phpfm@zalon.dk) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Index of";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Create new folder";
|
||||||
|
$StrMenuCreateFile = "Create new file";
|
||||||
|
$StrMenuUploadFiles = "Upload files";
|
||||||
|
$StrMenuLogOut = "Log out";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Open folder";
|
||||||
|
$StrRenameFolder = "Rename folder";
|
||||||
|
$StrDeleteFolder = "Delete folder";
|
||||||
|
|
||||||
|
$StrViewFile = "View file";
|
||||||
|
$StrEditFile = "Edit file";
|
||||||
|
$StrRenameFile = "Rename file";
|
||||||
|
$StrDownloadFile = "Download file";
|
||||||
|
$StrDeleteFile = "Delete file";
|
||||||
|
|
||||||
|
$StrFile = "File";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Name";
|
||||||
|
$StrFileNameShort = "Name";
|
||||||
|
$StrFileSizeShort = "Size";
|
||||||
|
$StrPermissionsShort = "Perm";
|
||||||
|
$StrLastModifiedShort = "Modified";
|
||||||
|
$StrEditShort = "Ed";
|
||||||
|
$StrViewShort = "Vw";
|
||||||
|
$StrRenameShort = "Rn";
|
||||||
|
$StrDownloadShort = "Dl";
|
||||||
|
$StrDeleteShort = "Rm";
|
||||||
|
|
||||||
|
$StrBack = "Back";
|
||||||
|
$StrYes = "Yes";
|
||||||
|
$StrOr = "or";
|
||||||
|
$StrCancel = "Cancel";
|
||||||
|
|
||||||
|
$StrUsername = "Username:";
|
||||||
|
$StrPassword = "Password:";
|
||||||
|
$StrLogIn = "Log in";
|
||||||
|
$StrLoginSystem = "Login system:";
|
||||||
|
$StrLoginInfo = "Please input your username and password below:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Access denied!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Invalid home folder.";
|
||||||
|
$StrInvalidPath = "Invalid path.";
|
||||||
|
$StrMissingTrailingSlash = "(Missing trailing slash)";
|
||||||
|
$StrAlreadyExists = "A file or folder with that name does already exist.";
|
||||||
|
$StrFolderInvalidName = "Invalid name of folder.";
|
||||||
|
$StrFileInvalidName = "Invalid filename.";
|
||||||
|
$StrErrorOpeningFile = "Error opening file.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "File saved successfully!";
|
||||||
|
$StrSaveFileFail = "Saving of file failed.";
|
||||||
|
$StrEditing = "Editing";
|
||||||
|
$StrFilename = "Filename:";
|
||||||
|
$StrRestoreOriginal = "Restore original";
|
||||||
|
$StrSaveAndExit = "Save & exit";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Folder not found.";
|
||||||
|
$StrDeleteFileNotFound = "File not found.";
|
||||||
|
$StrDeleteFolderSuccess = "Folder deleted successfully!";
|
||||||
|
$StrDeleteFileSuccess = "File delete successfully!";
|
||||||
|
$StrDeleteFolderFail = "Deleting of folder failed.";
|
||||||
|
$StrDeleteFileFail = "Deleting of file failed.";
|
||||||
|
$StrDeleteFolderFailHelp = "This might be caused by insufficient permissions.";
|
||||||
|
$StrDeleteFileFailHelp = "This might be caused by insufficient permissions.";
|
||||||
|
$StrDeleteFolderQuestion = "Are you sure you want to delete the following folder?";
|
||||||
|
$StrDeleteFileQuestion = "Are you sure you want to delete the following file?";
|
||||||
|
|
||||||
|
$StrRename = "Rename";
|
||||||
|
$StrRenameFolder = "Rename folder";
|
||||||
|
$StrRenameFile = "Rename file";
|
||||||
|
$StrRenameFolderSuccess = "Folder renamed successfully!";
|
||||||
|
$StrRenameFileSuccess = "File renamed successfully!";
|
||||||
|
$StrRenameFolderFail = "Renaming of folder failed.";
|
||||||
|
$StrRenameFileFail = "Renaming of file failed.";
|
||||||
|
$StrRenameFolderFailHelp = "This might be caused by insufficient permissions or an invalid name of the folder.";
|
||||||
|
$StrRenameFileFailHelp = "This might be caused by insufficient permissions or an invalid filename.";
|
||||||
|
$StrRenameFolderQuestion = "Please select a new name for the following folder:";
|
||||||
|
$StrRenameFileQuestion = "Please select a new name for the following file:";
|
||||||
|
|
||||||
|
$StrCreate = "Create";
|
||||||
|
$StrCreateFolder = "Create new folder";
|
||||||
|
$StrCreateFile = "Create new file";
|
||||||
|
$StrCreateFolderSuccess = "Folder created successfully!";
|
||||||
|
$StrCreateFileSuccess = "File created successfully!";
|
||||||
|
$StrCreateFolderFail = "Creation of folder failed.";
|
||||||
|
$StrCreateFileFail = "Creation of file failed.";
|
||||||
|
$StrCreateFolderFailHelp = "This might be caused by insufficient permissions.";
|
||||||
|
$StrCreateFileFailHelp = "This might be caused by insufficient permissions.";
|
||||||
|
$StrCreateFolderQuestion = "Please select a name for the new folder:";
|
||||||
|
$StrCreateFileQuestion = "Please select a name for the new file:";
|
||||||
|
|
||||||
|
$StrUpload = "Upload";
|
||||||
|
$StrUploadFilesTo = "Upload files to";
|
||||||
|
$StrUploading = "Uploading";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "FAILED!";
|
||||||
|
$StrUploadFailPost = "Maximum POST size reached - see docs/faq.txt for more information.";
|
||||||
|
$StrFirstFile = "1st file:";
|
||||||
|
$StrSecondFile = "2nd file:";
|
||||||
|
$StrThirdFile = "3rd file:";
|
||||||
|
$StrFourthFile = "4th file:";
|
||||||
|
$StrUploadQuestion = "Choose the files you wish to upload:";
|
||||||
|
$StrUploadNote = "Note: Uploaded files will be placed in:";
|
||||||
|
|
||||||
|
$StrDownload = "Download";
|
||||||
|
$StrDownloadClickLink = "Click on the link below to start downloading.";
|
||||||
|
$StrDownloadClickHere = "Click here to download";
|
||||||
|
$StrDownloadFail = "Error opening file or invalid filename.";
|
||||||
|
|
||||||
|
$StrViewing = "Viewing";
|
||||||
|
$StrAt = "at";
|
||||||
|
$StrViewFail = "Error opening image.";
|
||||||
|
$StrViewFailHelp = "File does not exist or is not an image file.";
|
||||||
|
$StrImage = "Image";
|
||||||
|
$StrZoomIn = "Zoom in";
|
||||||
|
$StrZoomOut = "Zoom out";
|
||||||
|
$StrOriginalSize = "Original size";
|
||||||
|
$StrPrevious = "Previous";
|
||||||
|
$StrNext = "Next";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/finnish.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by ? (?@?) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "..";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Uusi kansio";
|
||||||
|
$StrMenuCreateFile = "Uusi tiedosto";
|
||||||
|
$StrMenuUploadFiles = "Tuo tiedosto";
|
||||||
|
$StrMenuLogOut = "Kirjaudu ulos";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Avaa kansio";
|
||||||
|
$StrRenameFolder = "Nimeä kansio";
|
||||||
|
$StrDeleteFolder = "Poista kansio";
|
||||||
|
|
||||||
|
$StrViewFile = "View file";
|
||||||
|
$StrEditFile = "Editoi tiedostoa";
|
||||||
|
$StrRenameFile = "Uudelleennimeä";
|
||||||
|
$StrDownloadFile = "Hae omalle koneelle";
|
||||||
|
$StrDeleteFile = "Poista tiedosto";
|
||||||
|
|
||||||
|
$StrFile = "Tiedosto";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Nimi";
|
||||||
|
$StrFileNameShort = "Nimi";
|
||||||
|
$StrFileSizeShort = "Koko";
|
||||||
|
$StrPermissionsShort = "Chmod";
|
||||||
|
$StrLastModifiedShort = "Pvm";
|
||||||
|
$StrEditShort = "Ed";
|
||||||
|
$StrViewShort = "Vw";
|
||||||
|
$StrRenameShort = "Nm";
|
||||||
|
$StrDownloadShort = "Dl";
|
||||||
|
$StrDeleteShort = "Del";
|
||||||
|
|
||||||
|
$StrBack = "Takaisin";
|
||||||
|
$StrYes = "Kyllä";
|
||||||
|
$StrOr = "tai";
|
||||||
|
$StrCancel = "Peruuta";
|
||||||
|
|
||||||
|
$StrUsername = "Käyttäjä:";
|
||||||
|
$StrPassword = "Salasana:";
|
||||||
|
$StrLogIn = "Kirjaudu";
|
||||||
|
$StrLoginSystem = "Sisäänkirjautuminen:";
|
||||||
|
$StrLoginInfo = "Kirjoita käyttäjätunnuksesi ja salasanasi alle:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Pääsy kielletty!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Juurikansio ei kelpaa.";
|
||||||
|
$StrInvalidPath = "Kansiopolku ei kelpaa.";
|
||||||
|
$StrMissingTrailingSlash = "(Puuttuu /-merkki)";
|
||||||
|
$StrAlreadyExists = "Samanniminen kansio tai tiedosto on jo olemassa.";
|
||||||
|
$StrFolderInvalidName = "Kansion nimessä on virhe.";
|
||||||
|
$StrFileInvalidName = "Tiedoston nimi ei kelpaa.";
|
||||||
|
$StrErrorOpeningFile = "Tiedoston avaamisessa tapahtui virhe.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Tiedosto tallennettu!";
|
||||||
|
$StrSaveFileFail = "Tallennus epäonnistui.";
|
||||||
|
$StrEditing = "Editoidaan tiedostoa";
|
||||||
|
$StrFilename = "Tiedosto:";
|
||||||
|
$StrRestoreOriginal = "Palauta";
|
||||||
|
$StrSaveAndExit = "Tallenna & Lopeta";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Kansiota ei löydy.";
|
||||||
|
$StrDeleteFileNotFound = "Tiedostoa ei löydy.";
|
||||||
|
$StrDeleteFolderSuccess = "Kansio poistettu!";
|
||||||
|
$StrDeleteFileSuccess = "Tiedosto poistettu!";
|
||||||
|
$StrDeleteFolderFail = "Kansion poistaminen ei onnistunut.";
|
||||||
|
$StrDeleteFileFail = "Tiedoston poistaminen ei onnistunut.";
|
||||||
|
$StrDeleteFolderFailHelp = "Tämä saattaa johtua riittämättömistä oikeuksista.";
|
||||||
|
$StrDeleteFileFailHelp = "Tämä saattaa johtua riittämättömistä oikeuksista.";
|
||||||
|
$StrDeleteFolderQuestion = "Oletko varma, että haluat poistaa kansion?";
|
||||||
|
$StrDeleteFileQuestion = "Oletko varma, että haluat poistaa tiedoston?";
|
||||||
|
|
||||||
|
$StrRename = "Nimeä";
|
||||||
|
$StrRenameFolder = "Nimeä kansio";
|
||||||
|
$StrRenameFile = "Nimeä tiedosto";
|
||||||
|
$StrRenameFolderSuccess = "Kansio nimetty uudelleen!";
|
||||||
|
$StrRenameFileSuccess = "Tiedosto nimetty uudelleen!";
|
||||||
|
$StrRenameFolderFail = "Kansion nimeäminen epäonnistui.";
|
||||||
|
$StrRenameFileFail = "Tiedoston nimeäminen epäonnistui.";
|
||||||
|
$StrRenameFolderFailHelp = "Tämä saattaa johtua riittämättömistä oikeuksista tai vääristä merkeistä tiedostonimessä.";
|
||||||
|
$StrRenameFileFailHelp = "Tämä saattaa johtua riittämättömistä oikeuksista tai vääristä merkeistä tiedostonimessä.";
|
||||||
|
$StrRenameFolderQuestion = "Anna uusi nimi kansiolle:";
|
||||||
|
$StrRenameFileQuestion = "Anna uusi nimi tiedostolle:";
|
||||||
|
|
||||||
|
$StrCreate = "Luo";
|
||||||
|
$StrCreateFolder = "Uusi kansio";
|
||||||
|
$StrCreateFile = "Uusi tiedosto";
|
||||||
|
$StrCreateFolderSuccess = "Kansio luotu!";
|
||||||
|
$StrCreateFileSuccess = "Tiedosto luotu!";
|
||||||
|
$StrCreateFolderFail = "Kansion luonti epäonnistui.";
|
||||||
|
$StrCreateFileFail = "Tiedoston luonti epäonnistui.";
|
||||||
|
$StrCreateFolderFailHelp = "Tämä voi johtua riittämättömistä oikeuksista (chmod).";
|
||||||
|
$StrCreateFileFailHelp = "Tämä voi johtua riittämättömistä oikeuksista (chmod).";
|
||||||
|
$StrCreateFolderQuestion = "Uuden kansion nimi:";
|
||||||
|
$StrCreateFileQuestion = "Uuden tiedoston nimi:";
|
||||||
|
|
||||||
|
$StrUpload = "Tuo tiedosto";
|
||||||
|
$StrUploadFilesTo = "Tuo tiedostoja kansioon";
|
||||||
|
$StrUploading = "Tuodaan...";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "EPÄONNISTUI!";
|
||||||
|
$StrUploadFailPost = "Suurin mahdollinen POST-koko saavutettu - katso docs/faq.txt saadaksesi lisätietoja.";
|
||||||
|
$StrFirstFile = "1. Tiedosto:";
|
||||||
|
$StrSecondFile = "2. Tiedosto:";
|
||||||
|
$StrThirdFile = "3. Tiedosto:";
|
||||||
|
$StrFourthFile = "4. Tiedosto:";
|
||||||
|
$StrUploadQuestion = "Valitse tiedostot, jotka haluat lähettää serverille:";
|
||||||
|
$StrUploadNote = "Huomaa: Ladatut tiedostot menevät nyt kansioon:";
|
||||||
|
|
||||||
|
$StrDownload = "Hae";
|
||||||
|
$StrDownloadClickLink = "Klikkaa allaolevaa linkkiä tallentaaksesi tiedoston omalle koneellesi.";
|
||||||
|
$StrDownloadClickHere = "Paina tästä hakeaksesi tiedoston";
|
||||||
|
$StrDownloadFail = "Avaaminen ei onnistunut tai väärä tiedostonimi!";
|
||||||
|
|
||||||
|
$StrViewing = "Katsellaan tiedostoa";
|
||||||
|
$StrAt = " | ";
|
||||||
|
$StrViewFail = "Virhe kuvaa avattaessa.";
|
||||||
|
$StrViewFailHelp = "Tiedostoa ei ole tai se ei ole kuvatiedosto.";
|
||||||
|
$StrImage = "Kuva";
|
||||||
|
$StrZoomIn = "Suurenna";
|
||||||
|
$StrZoomOut = "Pienennä";
|
||||||
|
$StrOriginalSize = "Alkuperäinen koko";
|
||||||
|
$StrPrevious = "Edellinen";
|
||||||
|
$StrNext = "Seuraava";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/french.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by ? (?@?) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Contenu du répertoire ";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Créer un nouveau dossier";
|
||||||
|
$StrMenuCreateFile = "Créer un nouveau fichier";
|
||||||
|
$StrMenuUploadFiles = "Transférer un fichier";
|
||||||
|
$StrMenuLogOut = "Se déconnecter";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Parcourir le répertoire";
|
||||||
|
$StrRenameFolder = "Renommer le répertoire";
|
||||||
|
$StrDeleteFolder = "Supprimer le répertoire";
|
||||||
|
|
||||||
|
$StrViewFile = "Visualiser le fichier";
|
||||||
|
$StrEditFile = "Editer le fichier";
|
||||||
|
$StrRenameFile = "Renommer un fichier";
|
||||||
|
$StrDownloadFile = "Télécharger le fichier";
|
||||||
|
$StrDeleteFile = "Supprimer le fichier";
|
||||||
|
|
||||||
|
$StrFile = "Fichier";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Rep";
|
||||||
|
$StrFileNameShort = "Fich";
|
||||||
|
$StrFileSizeShort = "Taille";
|
||||||
|
$StrPermissionsShort = "Perm";
|
||||||
|
$StrLastModifiedShort = "Modifié";
|
||||||
|
$StrEditShort = "Edit";
|
||||||
|
$StrViewShort = "Visu";
|
||||||
|
$StrRenameShort = "Ren";
|
||||||
|
$StrDownloadShort = "Télé";
|
||||||
|
$StrDeleteShort = "Suppr";
|
||||||
|
|
||||||
|
$StrBack = "Retour";
|
||||||
|
$StrYes = "Oui";
|
||||||
|
$StrOr = "ou";
|
||||||
|
$StrCancel = "Annuler";
|
||||||
|
|
||||||
|
$StrUsername = "Identifiant :";
|
||||||
|
$StrPassword = "Mot de passe :";
|
||||||
|
$StrLogIn = "Valider";
|
||||||
|
$StrLoginSystem = "Système d'identification :";
|
||||||
|
$StrLoginInfo = "Veuillez saisir votre identifiant et mot de passe ci-dessous :";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Accès refusé!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Dossier racine non valide.";
|
||||||
|
$StrInvalidPath = "Chemin non valide.";
|
||||||
|
$StrMissingTrailingSlash = "(Manque un slash de fin)";
|
||||||
|
$StrAlreadyExists = "Un fichier ou répertoire du même nom existe déjà.";
|
||||||
|
$StrFolderInvalidName = "Nom de dossier non valide.";
|
||||||
|
$StrFileInvalidName = "Nom de fichier non valide.";
|
||||||
|
$StrErrorOpeningFile = "Erreur à l'ouverture du fichier.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Fichier sauvegardé!";
|
||||||
|
$StrSaveFileFail = "Sauvegarde du fichier non réussie.";
|
||||||
|
$StrEditing = "Edition en cours";
|
||||||
|
$StrFilename = "Nom du fichier:";
|
||||||
|
$StrRestoreOriginal = "Restaurer";
|
||||||
|
$StrSaveAndExit = "Sauvegarder";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Répertoire introuvable.";
|
||||||
|
$StrDeleteFileNotFound = "Fichier introuvable.";
|
||||||
|
$StrDeleteFolderSuccess = "Répertoire supprimé!";
|
||||||
|
$StrDeleteFileSuccess = "Fichier supprimé!";
|
||||||
|
$StrDeleteFolderFail = "Suppression du répertoire non réussie.";
|
||||||
|
$StrDeleteFileFail = "Suppression du fichier non réussie.";
|
||||||
|
$StrDeleteFolderFailHelp = "Il se peut que vous n'avez pas les droits nécessaires.";
|
||||||
|
$StrDeleteFileFailHelp = "Il se peut que vous n'avez pas les droits nécessaires.";
|
||||||
|
$StrDeleteFolderQuestion = "Etes vous sûr de vouloir supprimer le répertoire?";
|
||||||
|
$StrDeleteFileQuestion = "Etes vous sûr de vouloir supprimer le fichier?";
|
||||||
|
|
||||||
|
$StrRename = "Renommer";
|
||||||
|
$StrRenameFolder = "Renommer le répertoire";
|
||||||
|
$StrRenameFile = "Renommer le fichier";
|
||||||
|
$StrRenameFolderSuccess = "Répertoire renommé!";
|
||||||
|
$StrRenameFileSuccess = "Fichier renommé!";
|
||||||
|
$StrRenameFolderFail = "Echec du changement du nom de répertoire.";
|
||||||
|
$StrRenameFileFail = "Echec du changement du nom de fichier.";
|
||||||
|
$StrRenameFolderFailHelp = "Il se peut que vous n'avez pas les droits nécessaires ou un nom de répertoire invalide.";
|
||||||
|
$StrRenameFileFailHelp = "Il se peut que vous n'avez pas les droits nécessaires ou un nom de fichier invalide.";
|
||||||
|
$StrRenameFolderQuestion = "Modifiez le nom du répertoire :";
|
||||||
|
$StrRenameFileQuestion = "Modifiez le nom du fichier :";
|
||||||
|
|
||||||
|
$StrCreate = "Créer";
|
||||||
|
$StrCreateFolder = "Créer un répertoire";
|
||||||
|
$StrCreateFile = "Créer un fichier";
|
||||||
|
$StrCreateFolderSuccess = "Répertoire crée!";
|
||||||
|
$StrCreateFileSuccess = "Fichier crée!";
|
||||||
|
$StrCreateFolderFail = "Echec de la création du répertoire.";
|
||||||
|
$StrCreateFileFail = "Echec de la création du fichier.";
|
||||||
|
$StrCreateFolderFailHelp = "Il se peut que vous n'avez pas les droits nécessaires.";
|
||||||
|
$StrCreateFileFailHelp = "Il se peut que vous n'avez pas les droits nécessaires.";
|
||||||
|
$StrCreateFolderQuestion = "Saisissez un nom pour le répertoire à créer :";
|
||||||
|
$StrCreateFileQuestion = "Saisissez un nom pour le fichier à créer :";
|
||||||
|
|
||||||
|
$StrUpload = "Transfert";
|
||||||
|
$StrUploadFilesTo = "Transférer les fichiers vers";
|
||||||
|
$StrUploading = "Transfert en cours";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "ECHEC!";
|
||||||
|
$StrUploadFailPost = "Taille maximale pour un transfert de fichier atteint - voir docs/faq.txt pour plus d'informations.";
|
||||||
|
$StrFirstFile = "1er fichier :";
|
||||||
|
$StrSecondFile = "2ème fichier :";
|
||||||
|
$StrThirdFile = "3ème fichier :";
|
||||||
|
$StrFourthFile = "4ème fichier :";
|
||||||
|
$StrUploadQuestion = "Choisissez les fichiers que vous désires transferer :";
|
||||||
|
$StrUploadNote = "Note: les fichiers transférés seront placés dans le répertoire suivant :";
|
||||||
|
|
||||||
|
$StrDownload = "Téléchargement de ";
|
||||||
|
$StrDownloadClickLink = "Cliquez sur le lien ci-dessous pour démarrer le téléchargement.";
|
||||||
|
$StrDownloadClickHere = "Cliquez ici pour télécharger le fichier :";
|
||||||
|
$StrDownloadFail = "Erreur lors de l'ouverture du fichier ou nom de fichier non valide.";
|
||||||
|
|
||||||
|
$StrViewing = "Fichier en cours de consultation :";
|
||||||
|
$StrAt = "à";
|
||||||
|
$StrViewFail = "Erreur lors de l'ouverture de l'image.";
|
||||||
|
$StrViewFailHelp = "Fichier inexistant ou du mauvais type.";
|
||||||
|
$StrImage = "Image";
|
||||||
|
$StrZoomIn = "Afficher en plus grand";
|
||||||
|
$StrZoomOut = "Afficher en plus petit";
|
||||||
|
$StrOriginalSize = "Taille originale";
|
||||||
|
$StrPrevious = "Précédent";
|
||||||
|
$StrNext = "Suivant";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/french2.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by ? (?@?) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Index";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Créer un nouveau dossier";
|
||||||
|
$StrMenuCreateFile = "Créer un nouveau fichier";
|
||||||
|
$StrMenuUploadFiles = "Envoyer fichiers";
|
||||||
|
$StrMenuLogOut = "Déconnexion";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Ouvrir dossier";
|
||||||
|
$StrRenameFolder = "Renommer dossier";
|
||||||
|
$StrDeleteFolder = "Delete dossier";
|
||||||
|
|
||||||
|
$StrViewFile = "Afficher Fichier";
|
||||||
|
$StrEditFile = "Editer Fichier";
|
||||||
|
$StrRenameFile = "Renommer Fichier";
|
||||||
|
$StrDownloadFile = "Télécharger Fichier";
|
||||||
|
$StrDeleteFile = "Delete Fichier";
|
||||||
|
|
||||||
|
$StrFile = "Fichier";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Nom";
|
||||||
|
$StrFileNameShort = "Nom";
|
||||||
|
$StrFileSizeShort = "Taille";
|
||||||
|
$StrPermissionsShort = "Perm";
|
||||||
|
$StrLastModifiedShort = "Modifié";
|
||||||
|
$StrEditShort = "Ed";
|
||||||
|
$StrViewShort = "Aff";
|
||||||
|
$StrRenameShort = "Rn";
|
||||||
|
$StrDownloadShort = "Tel";
|
||||||
|
$StrDeleteShort = "Sup";
|
||||||
|
|
||||||
|
$StrBack = "Précédent";
|
||||||
|
$StrYes = "Oui";
|
||||||
|
$StrOr = "ou";
|
||||||
|
$StrCancel = "Annulé";
|
||||||
|
|
||||||
|
$StrUsername = "Login:";
|
||||||
|
$StrPassword = "Mot de passe:";
|
||||||
|
$StrLogIn = "Entrer";
|
||||||
|
$StrLoginSystem = "Login system:";
|
||||||
|
$StrLoginInfo = "Tapez votre nom et votre mot de passe:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Accès refusé!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Dossier racine invalide.";
|
||||||
|
$StrInvalidPath = "Chemin incorrect.";
|
||||||
|
$StrMissingTrailingSlash = "(Slash manquant)";
|
||||||
|
$StrAlreadyExists = "Un fichier ou dossier exite deja avec ce nom.";
|
||||||
|
$StrFolderInvalidName = "Nom de dossier incorrect.";
|
||||||
|
$StrFileInvalidName = "Nom de fichier incorrect.";
|
||||||
|
$StrErrorOpeningFile = "Erreur à l'ouverture du Fichier.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Fichier sauvegardé!";
|
||||||
|
$StrSaveFileFail = "Echec de sauvegarde du fichier.";
|
||||||
|
$StrEditing = "Edition";
|
||||||
|
$StrFilename = "Nom du fichier:";
|
||||||
|
$StrRestoreOriginal = "Restaurer la version originale";
|
||||||
|
$StrSaveAndExit = "Sauvegarder et quitter";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Dossier inexistant.";
|
||||||
|
$StrDeleteFileNotFound = "Fichier inexistant.";
|
||||||
|
$StrDeleteFolderSuccess = "Dossier effacé!";
|
||||||
|
$StrDeleteFileSuccess = "Fichier effacé!";
|
||||||
|
$StrDeleteFolderFail = "Echec de suppression de dossier.";
|
||||||
|
$StrDeleteFileFail = "Echec de suppression de fichier.";
|
||||||
|
$StrDeleteFolderFailHelp = "Cause possible:Permission insuffiante.";
|
||||||
|
$StrDeleteFileFailHelp = "Cause possible:Permission insuffiante.";
|
||||||
|
$StrDeleteFolderQuestion = "Voulez vous réellement effacer le dossier?";
|
||||||
|
$StrDeleteFileQuestion = "Voulez vous réellement effacer le dossier?";
|
||||||
|
|
||||||
|
$StrRename = "Renommer";
|
||||||
|
$StrRenameFolder = "Renommer dossier";
|
||||||
|
$StrRenameFile = "Renommer Fichier";
|
||||||
|
$StrRenameFolderSuccess = "Dossier renommé!";
|
||||||
|
$StrRenameFileSuccess = "Fichier renommé!";
|
||||||
|
$StrRenameFolderFail = "Echec de changement de nom de dossier.";
|
||||||
|
$StrRenameFileFail = "Echec de changement de nom de fichier.";
|
||||||
|
$StrRenameFolderFailHelp = "Cause possible:Permission insuffiante ou nom incorrect.";
|
||||||
|
$StrRenameFileFailHelp = "Cause possible:Permission insuffiante ou nom incorrect.";
|
||||||
|
$StrRenameFolderQuestion = "Selectionnez un nom pour le dossier suivant:";
|
||||||
|
$StrRenameFileQuestion = "Sélectionnez un nom pour le fichier suivant:";
|
||||||
|
|
||||||
|
$StrCreate = "Créer";
|
||||||
|
$StrCreateFolder = "Créer un nouveau dosier";
|
||||||
|
$StrCreateFile = "Créer un nouveau fichier";
|
||||||
|
$StrCreateFolderSuccess = "Dossier créer";
|
||||||
|
$StrCreateFileSuccess = "Fichier créer";
|
||||||
|
$StrCreateFolderFail = "Echec de creation du dossier.";
|
||||||
|
$StrCreateFileFail = "Echec de creation of Fichier.";
|
||||||
|
$StrCreateFolderFailHelp = "Cause possible:Permission insuffiante.";
|
||||||
|
$StrCreateFileFailHelp = "Cause possible:Permission insuffiante.";
|
||||||
|
$StrCreateFolderQuestion = "Selectionnez un nouveau nom pour le dossier:";
|
||||||
|
$StrCreateFileQuestion = "Selectionner un nouveau nom pour le fixhier:";
|
||||||
|
|
||||||
|
$StrUpload = "Envoi";
|
||||||
|
$StrUploadFilesTo = "Envoyer vers ";
|
||||||
|
$StrUploading = "Envoi en cours...";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "ECHEC!";
|
||||||
|
$StrUploadFailPost = "Maximum POST size reached - see docs/faq.txt for more information.";
|
||||||
|
$StrFirstFile = "1er Fichier:";
|
||||||
|
$StrSecondFile = "2eme Fichier:";
|
||||||
|
$StrThirdFile = "3eme Fichier:";
|
||||||
|
$StrFourthFile = "4eme Fichier:";
|
||||||
|
$StrUploadQuestion = "Choisir les fichiers a envoyer:";
|
||||||
|
$StrUploadNote = "Attention:le(s) fichier(s) seront envoyé(s) vers:";
|
||||||
|
|
||||||
|
$StrDownload = "Télécharger";
|
||||||
|
$StrDownloadClickLink = "Cliquez en dessous pour télécharger.";
|
||||||
|
$StrDownloadClickHere = "Cliquez ici pour télécharger";
|
||||||
|
$StrDownloadFail = "Nom invalide ou erreur d'ouverture.";
|
||||||
|
|
||||||
|
$StrViewing = "Affichage";
|
||||||
|
$StrAt = "a";
|
||||||
|
$StrViewFail = "Erreur lors de l'overture de l'image.";
|
||||||
|
$StrViewFailHelp = "Le fichier est inconnu ou ce n'est pas une image.";
|
||||||
|
$StrImage = "Image";
|
||||||
|
$StrZoomIn = "Zoomer";
|
||||||
|
$StrZoomOut = "Reduire";
|
||||||
|
$StrOriginalSize = "Taille originale";
|
||||||
|
$StrPrevious = "Précédent";
|
||||||
|
$StrNext = "Suivant";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/german.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by Claus Heuser (CHeuser@t-online.de) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Inhalt von";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Ordner erstellen";
|
||||||
|
$StrMenuCreateFile = "Datei erstellen";
|
||||||
|
$StrMenuUploadFiles = "Datei hochladen";
|
||||||
|
$StrMenuLogOut = "Abmelden";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Ordner öffnen";
|
||||||
|
$StrRenameFolder = "Ordner umbenennen";
|
||||||
|
$StrDeleteFolder = "Ordner löschen";
|
||||||
|
|
||||||
|
$StrViewFile = "Datei ansehen";
|
||||||
|
$StrEditFile = "Datei bearbeiten";
|
||||||
|
$StrRenameFile = "Datei umbenennen";
|
||||||
|
$StrDownloadFile = "Datei herunterladen";
|
||||||
|
$StrDeleteFile = "Datei löschen";
|
||||||
|
|
||||||
|
$StrFile = "Datei";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Name";
|
||||||
|
$StrFileNameShort = "Name";
|
||||||
|
$StrFileSizeShort = "Grösse";
|
||||||
|
$StrPermissionsShort = "Rechte";
|
||||||
|
$StrLastModifiedShort = "Geändert";
|
||||||
|
$StrEditShort = "B";
|
||||||
|
$StrViewShort = "A";
|
||||||
|
$StrRenameShort = "U";
|
||||||
|
$StrDownloadShort = "D";
|
||||||
|
$StrDeleteShort = "L";
|
||||||
|
|
||||||
|
$StrBack = "Zurück";
|
||||||
|
$StrYes = "OK";
|
||||||
|
$StrOr = "oder";
|
||||||
|
$StrCancel = "Abbrechen";
|
||||||
|
|
||||||
|
$StrUsername = "Benutzername:";
|
||||||
|
$StrPassword = "Passwort:";
|
||||||
|
$StrLogIn = "Anmelden";
|
||||||
|
$StrLoginSystem = "Login System:";
|
||||||
|
$StrLoginInfo = "Bitte geben Sie Ihren Benutzernamen und Ihr Kennwort ein:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Zugang verweigert!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Ungültiges Hauptverzeichnis!";
|
||||||
|
$StrInvalidPath = "Falscher Pfad!";
|
||||||
|
$StrMissingTrailingSlash = "(Fehlender führender Slash)";
|
||||||
|
$StrAlreadyExists = "Datei oder Ordner mit diesem Namen existiert bereits.";
|
||||||
|
$StrFolderInvalidName = "Ungültiger Ordnername.";
|
||||||
|
$StrFileInvalidName = "Ungültiger Dateiname.";
|
||||||
|
$StrErrorOpeningFile = "Fehler beim Öffnen der Datei.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Datei erfolgreich gespeichert!";
|
||||||
|
$StrSaveFileFail = "Datei konnte nicht gespeichert werden.";
|
||||||
|
$StrEditing = "Bearbeiten";
|
||||||
|
$StrFilename = "Dateiname:";
|
||||||
|
$StrRestoreOriginal = "Wiederherstellen";
|
||||||
|
$StrSaveAndExit = "Speichern";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Ordner nicht gefunden.";
|
||||||
|
$StrDeleteFileNotFound = "Datei nicht gefunden.";
|
||||||
|
$StrDeleteFolderSuccess = "Ordner wurde gelöscht!";
|
||||||
|
$StrDeleteFileSuccess = "Datei wurde gelöscht!";
|
||||||
|
$StrDeleteFolderFail = "Ordner konnte nicht gelöscht werden.";
|
||||||
|
$StrDeleteFileFail = "Datei konnte nicht gelöscht werden.";
|
||||||
|
$StrDeleteFolderFailHelp = "Überprüfen Sie Ihre Zugriffsrechte.";
|
||||||
|
$StrDeleteFileFailHelp = "Überprüfen Sie Ihre Zugriffsrechte.";
|
||||||
|
$StrDeleteFolderQuestion = "Wollen Sie diesen Ordner wirklich löschen?";
|
||||||
|
$StrDeleteFileQuestion = "Wollen Sie diese Datei wirklich löschen?";
|
||||||
|
|
||||||
|
$StrRename = "Umbenennen";
|
||||||
|
$StrRenameFolder = "Ordner umbenennen";
|
||||||
|
$StrRenameFile = "Datei umbenennen";
|
||||||
|
$StrRenameFolderSuccess = "Ordner wurde umbenannt!";
|
||||||
|
$StrRenameFileSuccess = "Datei wurde umbenannt!";
|
||||||
|
$StrRenameFolderFail = "Ordner konnte nicht umbenannt werden.";
|
||||||
|
$StrRenameFileFail = "Datei konnte nicht umbenannt werden.";
|
||||||
|
$StrRenameFolderFailHelp = "Eventuell sind Ihre Zugriffsrechte nicht ausreichend oder der Ordnername ist unzulässig.";
|
||||||
|
$StrRenameFileFailHelp = "Eventuell sind Ihre Zugriffsrechte nicht ausreichend oder der Ordnername ist unzulässig.";
|
||||||
|
$StrRenameFolderQuestion = "Bitte vergeben Sie einen neuen Namen für den Ordner:";
|
||||||
|
$StrRenameFileQuestion = "Bitte vergeben Sie einen neuen Namen für die Datei:";
|
||||||
|
|
||||||
|
$StrCreate = "Erstellen";
|
||||||
|
$StrCreateFolder = "Neuen Ordner erstellen";
|
||||||
|
$StrCreateFile = "Neue Datei erstellen";
|
||||||
|
$StrCreateFolderSuccess = "Ordner erstellt!";
|
||||||
|
$StrCreateFileSuccess = "Datei erstellt!";
|
||||||
|
$StrCreateFolderFail = "Fehler beim Erstellen des Ordners.";
|
||||||
|
$StrCreateFileFail = "Fehler beim Erstellen der Datei.";
|
||||||
|
$StrCreateFolderFailHelp = "Überprüfen Sie Ihre Zugriffsrechte.";
|
||||||
|
$StrCreateFileFailHelp = "Überprüfen Sie Ihre Zugriffsrechte.";
|
||||||
|
$StrCreateFolderQuestion = "Bitte geben Sie einen Namen für den neuen Ordner ein:";
|
||||||
|
$StrCreateFileQuestion = "Bitte geben Sie einen Namen für die neue Datei ein:";
|
||||||
|
|
||||||
|
$StrUpload = "Upload";
|
||||||
|
$StrUploadFilesTo = "Dateien hochladen nach";
|
||||||
|
$StrUploading = "Laden";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "FEHLER!";
|
||||||
|
$StrUploadFailPost = "Maximale Grösse erreicht - in docs/faq.txt erhalten Sie Informationen hierzu.";
|
||||||
|
$StrFirstFile = "1. Datei:";
|
||||||
|
$StrSecondFile = "2. Datei:";
|
||||||
|
$StrThirdFile = "3. Datei:";
|
||||||
|
$StrFourthFile = "4. Datei:";
|
||||||
|
$StrUploadQuestion = "Wählen Sie die Dateien zum Upload:";
|
||||||
|
$StrUploadNote = "Die Dateien werden geladen in:";
|
||||||
|
|
||||||
|
$StrDownload = "Download";
|
||||||
|
$StrDownloadClickLink = "Klicken Sie auf den Link, um den Download zu starten.";
|
||||||
|
$StrDownloadClickHere = "Klicken Sie hier zum Download";
|
||||||
|
$StrDownloadFail = "Fehler beim Öffnen der Datei oder unzulässiger Dateiname.";
|
||||||
|
|
||||||
|
$StrViewing = "Ansicht";
|
||||||
|
$StrAt = "mit";
|
||||||
|
$StrViewFail = "Fehler beim Öffnen des Bilds.";
|
||||||
|
$StrViewFailHelp = "Datei existiert nicht oder ist keine Bilddatei.";
|
||||||
|
$StrImage = "Bild";
|
||||||
|
$StrZoomIn = "Vergrössern";
|
||||||
|
$StrZoomOut = "Verkleinern";
|
||||||
|
$StrOriginalSize = "Originalgrösse";
|
||||||
|
$StrPrevious = "Vorheriges";
|
||||||
|
$StrNext = "Nächstes";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/italian.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by Antonio Manfredonio (manfrys@hotmail.com) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Indice";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Crea nuova cartella";
|
||||||
|
$StrMenuCreateFile = "Crea nuovo file";
|
||||||
|
$StrMenuUploadFiles = "Upload file";
|
||||||
|
$StrMenuLogOut = "Sconnetti";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Apri cartella";
|
||||||
|
$StrRenameFolder = "Rinomina cartella";
|
||||||
|
$StrDeleteFolder = "Elimina cartella";
|
||||||
|
|
||||||
|
$StrViewFile = "Visualizza file";
|
||||||
|
$StrEditFile = "Modifica file";
|
||||||
|
$StrRenameFile = "Rinomina file";
|
||||||
|
$StrDownloadFile = "Download file";
|
||||||
|
$StrDeleteFile = "Elimina file";
|
||||||
|
|
||||||
|
$StrFile = "File";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Nome";
|
||||||
|
$StrFileNameShort = "Nome";
|
||||||
|
$StrFileSizeShort = "Grandezza";
|
||||||
|
$StrPermissionsShort = "Perm";
|
||||||
|
$StrLastModifiedShort = "Modificato";
|
||||||
|
$StrEditShort = "Ed";
|
||||||
|
$StrViewShort = "Vi";
|
||||||
|
$StrRenameShort = "Ri";
|
||||||
|
$StrDownloadShort = "Dl";
|
||||||
|
$StrDeleteShort = "El";
|
||||||
|
|
||||||
|
$StrBack = "Indietro";
|
||||||
|
$StrYes = "Si";
|
||||||
|
$StrOr = "o";
|
||||||
|
$StrCancel = "Annulla";
|
||||||
|
|
||||||
|
$StrUsername = "Username:";
|
||||||
|
$StrPassword = "Password:";
|
||||||
|
$StrLogIn = "Accedi";
|
||||||
|
$StrLoginSystem = "Accedi al sistema:";
|
||||||
|
$StrLoginInfo = "Inserisci il tuo username e password nel box sottostante:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Accesso negato!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Directory principale non valida.";
|
||||||
|
$StrInvalidPath = "Percorso non valido.";
|
||||||
|
$StrMissingTrailingSlash = "(Slash omesso)";
|
||||||
|
$StrAlreadyExists = "Già esiste un file o una cartella con lo stesso nome.";
|
||||||
|
$StrFolderInvalidName = "Nome della cartella non valido.";
|
||||||
|
$StrFileInvalidName = "Nome del file non valido.";
|
||||||
|
$StrErrorOpeningFile = "Errore nell\'apertura del file.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "File salvato correttamente!";
|
||||||
|
$StrSaveFileFail = "Salvataggio del file non riuscito.";
|
||||||
|
$StrEditing = "Modifica";
|
||||||
|
$StrFilename = "Nome del file:";
|
||||||
|
$StrRestoreOriginal = "Ripristina originale";
|
||||||
|
$StrSaveAndExit = "Salva ed esci";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Cartella non trovata.";
|
||||||
|
$StrDeleteFileNotFound = "File non trovato.";
|
||||||
|
$StrDeleteFolderSuccess = "Cartella eliminata correttamente!";
|
||||||
|
$StrDeleteFileSuccess = "File eliminato correttamente!";
|
||||||
|
$StrDeleteFolderFail = "Eliminazione della cartella non riuscito.";
|
||||||
|
$StrDeleteFileFail = "Eliminazione del file non riuscito.";
|
||||||
|
$StrDeleteFolderFailHelp = "Non si hanno sufficienti permessi.";
|
||||||
|
$StrDeleteFileFailHelp = "Non si hanno sufficienti permessi.";
|
||||||
|
$StrDeleteFolderQuestion = "Sei sicuro di voler eliminare questa cartella?";
|
||||||
|
$StrDeleteFileQuestion = "Sei sicuro di voler elimina questo file?";
|
||||||
|
|
||||||
|
$StrRename = "Rinomina";
|
||||||
|
$StrRenameFolder = "Rinomina cartella";
|
||||||
|
$StrRenameFile = "Rinomina file";
|
||||||
|
$StrRenameFolderSuccess = "Cartella rinominata!";
|
||||||
|
$StrRenameFileSuccess = "File rinominato!";
|
||||||
|
$StrRenameFolderFail = "Fallita la rinominazione della cartella.";
|
||||||
|
$StrRenameFileFail = "Fallita la rinominazione del file.";
|
||||||
|
$StrRenameFolderFailHelp = "Non si hanno sufficienti permessi o nome cartella non valido.";
|
||||||
|
$StrRenameFileFailHelp = "Non si hanno sufficienti permessi o nome del file non valido.";
|
||||||
|
$StrRenameFolderQuestion = "Seleziona un nuovo nome per la cartella:";
|
||||||
|
$StrRenameFileQuestion = "Seleziona un nuovo nome per il file:";
|
||||||
|
|
||||||
|
$StrCreate = "Crea";
|
||||||
|
$StrCreateFolder = "Crea nuova cartella";
|
||||||
|
$StrCreateFile = "Crea nuovo file";
|
||||||
|
$StrCreateFolderSuccess = "Cartella creata!";
|
||||||
|
$StrCreateFileSuccess = "File creato!";
|
||||||
|
$StrCreateFolderFail = "Creazione nuova cartella non riuscito.";
|
||||||
|
$StrCreateFileFail = "Creazione del file non riuscito.";
|
||||||
|
$StrCreateFolderFailHelp = "Non si hanno sufficienti permessi.";
|
||||||
|
$StrCreateFileFailHelp = "Non si hanno sufficienti permessi.";
|
||||||
|
$StrCreateFolderQuestion = "Seleziona un nuovo nome per la cartella:";
|
||||||
|
$StrCreateFileQuestion = "Seleziona un nuovo nome per il file.:";
|
||||||
|
|
||||||
|
$StrUpload = "Upload";
|
||||||
|
$StrUploadFilesTo = "Upload i file in";
|
||||||
|
$StrUploading = "Upload in corso";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "FALLITO!";
|
||||||
|
$StrUploadFailPost = "Maximum POST size reached - see docs/faq.txt for more information.";
|
||||||
|
$StrFirstFile = "1° file:";
|
||||||
|
$StrSecondFile = "2° file:";
|
||||||
|
$StrThirdFile = "3° file:";
|
||||||
|
$StrFourthFile = "4° file:";
|
||||||
|
$StrUploadQuestion = "Scegli i file che vuoi uploadare:";
|
||||||
|
$StrUploadNote = "Nota: I file saranno uploadati in:";
|
||||||
|
|
||||||
|
$StrDownload = "Download";
|
||||||
|
$StrDownloadClickLink = "Clicca sul link sottostante per scaricare il file.";
|
||||||
|
$StrDownloadClickHere = "Clicca qui per scaricare";
|
||||||
|
$StrDownloadFail = "Errore di apertura file o nome file non valido.";
|
||||||
|
|
||||||
|
$StrViewing = "Visualizza";
|
||||||
|
$StrAt = "a";
|
||||||
|
$StrViewFail = "Errore apertura immagine.";
|
||||||
|
$StrViewFailHelp = "Il file non esiste o non è un immagine.";
|
||||||
|
$StrImage = "Immagine";
|
||||||
|
$StrZoomIn = "Zoom in";
|
||||||
|
$StrZoomOut = "Zoom out";
|
||||||
|
$StrOriginalSize = "Grandezza originale";
|
||||||
|
$StrPrevious = "Precedente";
|
||||||
|
$StrNext = "Successivo";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/portugues.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by ? (?@?) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Index of";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Criar uma nova directoria";
|
||||||
|
$StrMenuCreateFile = "Criar um novo ficheiro";
|
||||||
|
$StrMenuUploadFiles = "Enviar Ficheiros";
|
||||||
|
$StrMenuLogOut = "Sair";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Abrir a pasta";
|
||||||
|
$StrRenameFolder = "Renomear a pasta";
|
||||||
|
$StrDeleteFolder = "Apagar a pasta";
|
||||||
|
|
||||||
|
$StrViewFile = "Ver o ficheiro";
|
||||||
|
$StrEditFile = "Editar o ficheiro";
|
||||||
|
$StrRenameFile = "Renomear o ficheiro";
|
||||||
|
$StrDownloadFile = "Gravar o ficheiro";
|
||||||
|
$StrDeleteFile = "Apagar o ficheiro";
|
||||||
|
|
||||||
|
$StrFile = "Ficheiro";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Nome";
|
||||||
|
$StrFileNameShort = "Nome";
|
||||||
|
$StrFileSizeShort = "Tamanho";
|
||||||
|
$StrPermissionsShort = "Perm";
|
||||||
|
$StrLastModifiedShort = "Modificado";
|
||||||
|
$StrEditShort = "Ed";
|
||||||
|
$StrViewShort = "Vr";
|
||||||
|
$StrRenameShort = "Rn";
|
||||||
|
$StrDownloadShort = "Gr";
|
||||||
|
$StrDeleteShort = "Ap";
|
||||||
|
|
||||||
|
$StrBack = "Retroceder";
|
||||||
|
$StrYes = "Confirmar";
|
||||||
|
$StrOr = "ou";
|
||||||
|
$StrCancel = "Cancelar";
|
||||||
|
|
||||||
|
$StrUsername = "Utilizador:";
|
||||||
|
$StrPassword = "Palavra Passe:";
|
||||||
|
$StrLogIn = "Entrar";
|
||||||
|
$StrLoginSystem = "Tem de efectuar o LOGIN para entrar no sistema:";
|
||||||
|
$StrLoginInfo = "Introduza os seus dados de utilizador:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Accesso NEGADO!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "O Nome da pasta é inválido.";
|
||||||
|
$StrInvalidPath = "O Caminho é inválido.";
|
||||||
|
$StrMissingTrailingSlash = "(Missing trailing slash)";
|
||||||
|
$StrAlreadyExists = "Ja existe uma pasta ou um ficheiro com esse nome.";
|
||||||
|
$StrFolderInvalidName = "O Nome da pasta ou do ficheiro é inválido.";
|
||||||
|
$StrFileInvalidName = "Ficheiro inválido.";
|
||||||
|
$StrErrorOpeningFile = "Erro ao abrir o ficheiro.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "O Ficheiro foi gravado com sucesso!";
|
||||||
|
$StrSaveFileFail = "Ocorreu um ERRO ao gravar o ficheiro.";
|
||||||
|
$StrEditing = "Editar";
|
||||||
|
$StrFilename = "Ficheiro:";
|
||||||
|
$StrRestoreOriginal = "Restaurar original";
|
||||||
|
$StrSaveAndExit = "Gravar e Sair";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "A Pasta nao foi encontrada.";
|
||||||
|
$StrDeleteFileNotFound = "O Ficheiro nao foi encontrado.";
|
||||||
|
$StrDeleteFolderSuccess = "A Pasta foi apagada com sucesso!";
|
||||||
|
$StrDeleteFileSuccess = "O Ficheiro foi apagado com sucesso!";
|
||||||
|
$StrDeleteFolderFail = "Ocorreu um ERRO ao apagar a directoria.";
|
||||||
|
$StrDeleteFileFail = "Ocorreu um ERRO ao apagar o ficheiro.";
|
||||||
|
$StrDeleteFolderFailHelp = "Isto pode ser causado por permissões insuficientes.";
|
||||||
|
$StrDeleteFileFailHelp = "Isto pode ser causado por permissões insuficientes.";
|
||||||
|
$StrDeleteFolderQuestion = "Tem a certeza que deseja apagar a pasta seguinte?";
|
||||||
|
$StrDeleteFileQuestion = "Tem a certeza que deseja apagar a pasta seguinte?";
|
||||||
|
|
||||||
|
$StrRename = "Renomear";
|
||||||
|
$StrRenameFolder = "Renomear pasta";
|
||||||
|
$StrRenameFile = "Renomear ficheiro";
|
||||||
|
$StrRenameFolderSuccess = "A Pasta foi renomeada com sucesso!";
|
||||||
|
$StrRenameFileSuccess = "O Ficheiro foi renomeado com sucesso!";
|
||||||
|
$StrRenameFolderFail = "Ocorreu um ERRO ao apagar a pasta.";
|
||||||
|
$StrRenameFileFail = "Ocorreu um ERRO ao apagar o ficheiro.";
|
||||||
|
$StrRenameFolderFailHelp = "Isto pode ser causado por permissões insuficientes ou o nome da pasta é inválido.";
|
||||||
|
$StrRenameFileFailHelp = "Isto pode ser causado por permissões insuficientes ou o nome do ficheiro é inválido.";
|
||||||
|
$StrRenameFolderQuestion = "Escolha um novo nome para a seguinte pasta:";
|
||||||
|
$StrRenameFileQuestion = "Escolha um novo nome para o ficheiro:";
|
||||||
|
|
||||||
|
$StrCreate = "Criar";
|
||||||
|
$StrCreateFolder = "Criar uma nova pasta";
|
||||||
|
$StrCreateFile = "Criar um novo ficheiro";
|
||||||
|
$StrCreateFolderSuccess = "A Pasta foi criada com sucesso!";
|
||||||
|
$StrCreateFileSuccess = "O Ficheiro foi criado com sucesso!";
|
||||||
|
$StrCreateFolderFail = "Ocorreu um ERRO ao criar a pasta.";
|
||||||
|
$StrCreateFileFail = "Ocorreu um ERRO ao criar o ficheiro.";
|
||||||
|
$StrCreateFolderFailHelp = "Isto pode ser causado por permissões insuficientes .";
|
||||||
|
$StrCreateFileFailHelp = "Isto pode ser causado por permissões insuficientes .";
|
||||||
|
$StrCreateFolderQuestion = "Escolha um nome para a nova pasta:";
|
||||||
|
$StrCreateFileQuestion = "Escolha um nome para o novo ficheiro:";
|
||||||
|
|
||||||
|
$StrUpload = "Enviar";
|
||||||
|
$StrUploadFilesTo = "Os ficheiros serão enviados para";
|
||||||
|
$StrUploading = "A gravar...";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "Ocorreu um ERRO!";
|
||||||
|
$StrUploadFailPost = "Atingiu o limite máximo e não pode enviar mais ficheiros.";
|
||||||
|
$StrFirstFile = "1º Ficheiro:";
|
||||||
|
$StrSecondFile = "2º Ficheiro:";
|
||||||
|
$StrThirdFile = "3º Ficheiro:";
|
||||||
|
$StrFourthFile = "4º Ficheiro:";
|
||||||
|
$StrUploadQuestion = "Escolha os ficheiros que deseja enviar:";
|
||||||
|
$StrUploadNote = "Nota: Os ficheiros vão para a pasta:";
|
||||||
|
|
||||||
|
$StrDownload = "Gravar";
|
||||||
|
$StrDownloadClickLink = "Clicar aqui para gravar.";
|
||||||
|
$StrDownloadClickHere = "Clicar aqui para gravar";
|
||||||
|
$StrDownloadFail = "ERRO ao abrir o ficheiro ou o nome do ficheiro é inválido.";
|
||||||
|
|
||||||
|
$StrViewing = "Ver";
|
||||||
|
$StrAt = "at";
|
||||||
|
$StrViewFail = "Ocorreu um ERRO ao abrir a imagem.";
|
||||||
|
$StrViewFailHelp = "O ficheiro não existe ou não é um ficheiro de imagem.";
|
||||||
|
$StrImage = "Imagem";
|
||||||
|
$StrZoomIn = "Zoom in";
|
||||||
|
$StrZoomOut = "Zoom out";
|
||||||
|
$StrOriginalSize = "Tamanho original";
|
||||||
|
$StrPrevious = "Previsualizar";
|
||||||
|
$StrNext = "Seguinte";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/russian.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by Alexandrov Andrej (alexandrov@tb.by) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "windows-1251";
|
||||||
|
|
||||||
|
$StrIndexOf = "Index of";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Новая директория";
|
||||||
|
$StrMenuCreateFile = "Создать файл";
|
||||||
|
$StrMenuUploadFiles = "Загрузить файл на сервер";
|
||||||
|
$StrMenuLogOut = "Выйти";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Открыть папку";
|
||||||
|
$StrRenameFolder = "Переименовать папку";
|
||||||
|
$StrDeleteFolder = "Удалить папку";
|
||||||
|
|
||||||
|
$StrViewFile = "Просмотр файла";
|
||||||
|
$StrEditFile = "Редактировать файл";
|
||||||
|
$StrRenameFile = "Переименовать";
|
||||||
|
$StrDownloadFile = "Сгрузить файл";
|
||||||
|
$StrDeleteFile = "Удалить файл";
|
||||||
|
|
||||||
|
$StrFile = "Файл";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Имя";
|
||||||
|
$StrFileNameShort = "Имя файл";
|
||||||
|
$StrFileSizeShort = "Размер";
|
||||||
|
$StrPermissionsShort = "Права";
|
||||||
|
$StrLastModifiedShort = "Изменен";
|
||||||
|
$StrEditShort = "Ред";
|
||||||
|
$StrViewShort = "Прос";
|
||||||
|
$StrRenameShort = "Имя";
|
||||||
|
$StrDownloadShort = "Сгрз";
|
||||||
|
$StrDeleteShort = "Удал";
|
||||||
|
|
||||||
|
$StrBack = "Назад";
|
||||||
|
$StrYes = "Да";
|
||||||
|
$StrOr = "или";
|
||||||
|
$StrCancel = "Отмена";
|
||||||
|
|
||||||
|
$StrUsername = "Логин:";
|
||||||
|
$StrPassword = "Пароль:";
|
||||||
|
$StrLogIn = "Воити";
|
||||||
|
$StrLoginSystem = "Вход в систему:";
|
||||||
|
$StrLoginInfo = "Введите пожалуйста пароль и логин:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Доступ закрыт!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Ошибочная домашняя директория.";
|
||||||
|
$StrInvalidPath = "Ошибочный путь.";
|
||||||
|
$StrMissingTrailingSlash = "(Отсутствует слэш в пути)";
|
||||||
|
$StrAlreadyExists = "Такой файл или директория уже существует.";
|
||||||
|
$StrFolderInvalidName = "Неправильное имя папки.";
|
||||||
|
$StrFileInvalidName = "Неправильное имя файла.";
|
||||||
|
$StrErrorOpeningFile = "Ошибка открытия файла.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Файл сохранен!";
|
||||||
|
$StrSaveFileFail = "Ошибка сохранения файла.";
|
||||||
|
$StrEditing = "Редактирование";
|
||||||
|
$StrFilename = "Имя файла:";
|
||||||
|
$StrRestoreOriginal = "Восстановить";
|
||||||
|
$StrSaveAndExit = "Сохранить";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Папка не найдена.";
|
||||||
|
$StrDeleteFileNotFound = "Файл не найден.";
|
||||||
|
$StrDeleteFolderSuccess = "Папка удалена!";
|
||||||
|
$StrDeleteFileSuccess = "Файл удален!";
|
||||||
|
$StrDeleteFolderFail = "Ошибка удаления папки.";
|
||||||
|
$StrDeleteFileFail = "Ошибка удаления файла.";
|
||||||
|
$StrDeleteFolderFailHelp = "Возможно всё дело в ваших правах на папку.";
|
||||||
|
$StrDeleteFileFailHelp = "Возможно всё дело в ваших правах на файл.";
|
||||||
|
$StrDeleteFolderQuestion = "Вы действительно хотите удалить папку?";
|
||||||
|
$StrDeleteFileQuestion = "Вы действительно хотите удалить файл?";
|
||||||
|
|
||||||
|
$StrRename = "Переименовать";
|
||||||
|
$StrRenameFolder = "Переименовать папку";
|
||||||
|
$StrRenameFile = "Переименовать файл";
|
||||||
|
$StrRenameFolderSuccess = "Папка переименована!";
|
||||||
|
$StrRenameFileSuccess = "Файл переименован!";
|
||||||
|
$StrRenameFolderFail = "Не удалось переименовать папку.";
|
||||||
|
$StrRenameFileFail = "Не удалось переименовать файл.";
|
||||||
|
$StrRenameFolderFailHelp = "Возможно всё дело в ваших правах на папку или некорректном имени.";
|
||||||
|
$StrRenameFileFailHelp = "Возможно всё дело в ваших правах на файл или некорректном имени.";
|
||||||
|
$StrRenameFolderQuestion = "Выберите новое имя для следующей папки:";
|
||||||
|
$StrRenameFileQuestion = "Выберите новое имя для следующего файла:";
|
||||||
|
|
||||||
|
$StrCreate = "Создать";
|
||||||
|
$StrCreateFolder = "Создать папку";
|
||||||
|
$StrCreateFile = "Создать файл";
|
||||||
|
$StrCreateFolderSuccess = "Папка создана!";
|
||||||
|
$StrCreateFileSuccess = "Файл создан!";
|
||||||
|
$StrCreateFolderFail = "Ошибка создания папки.";
|
||||||
|
$StrCreateFileFail = "Ошибка создания файла.";
|
||||||
|
$StrCreateFolderFailHelp = "Возможно всё дело в ваших правах.";
|
||||||
|
$StrCreateFileFailHelp = "Возможно всё дело в ваших правах.";
|
||||||
|
$StrCreateFolderQuestion = "Выберите имя для новой папки:";
|
||||||
|
$StrCreateFileQuestion = "Выберите имя для нового файла:";
|
||||||
|
|
||||||
|
$StrUpload = "Загрузить на сервер";
|
||||||
|
$StrUploadFilesTo = "Загрузить файлы в";
|
||||||
|
$StrUploading = "Загрузка";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "Ошибка!";
|
||||||
|
$StrUploadFailPost = "Слишком большой размер файла / смотрите faq.txt";
|
||||||
|
$StrFirstFile = "1-й файл:";
|
||||||
|
$StrSecondFile = "2-й файл:";
|
||||||
|
$StrThirdFile = "3-й файл:";
|
||||||
|
$StrFourthFile = "4-й файл:";
|
||||||
|
$StrUploadQuestion = "Выберите файлы которые вы хотите загрузить:";
|
||||||
|
$StrUploadNote = "Внимание: Файлы будут помещены в:";
|
||||||
|
|
||||||
|
$StrDownload = "Сгрузить";
|
||||||
|
$StrDownloadClickLink = "Нажмите ссылку чтобы начать загрузку.";
|
||||||
|
$StrDownloadClickHere = "нажать здесь для загрузки";
|
||||||
|
$StrDownloadFail = "Ошибка открытия файла или неправильное имя.";
|
||||||
|
|
||||||
|
$StrViewing = "Просмотр";
|
||||||
|
$StrAt = "в";
|
||||||
|
$StrViewFail = "Ошибка открытия картинки.";
|
||||||
|
$StrViewFailHelp = "Файл не существует или это не картинка.";
|
||||||
|
$StrImage = "Картинка";
|
||||||
|
$StrZoomIn = "Ближе";
|
||||||
|
$StrZoomOut = "Дальше";
|
||||||
|
$StrOriginalSize = "Оригинальный размер";
|
||||||
|
$StrPrevious = "Предыдущий";
|
||||||
|
$StrNext = "Следующий";
|
||||||
|
|
||||||
|
?>
|
128
root/opt/webshare-tools/phpfm/lang/spanish.inc.php
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
/* translation by ? (?@?) */
|
||||||
|
|
||||||
|
$StrLanguageCharset = "ISO-8859-1";
|
||||||
|
|
||||||
|
$StrIndexOf = "Listado de";
|
||||||
|
|
||||||
|
$StrMenuCreateFolder = "Nueva Carpeta";
|
||||||
|
$StrMenuCreateFile = "Nuevo Archivo";
|
||||||
|
$StrMenuUploadFiles = "Subir Archivos";
|
||||||
|
$StrMenuLogOut = "Finalizar";
|
||||||
|
|
||||||
|
$StrOpenFolder = "Abrir Carpeta";
|
||||||
|
$StrRenameFolder = "Renombrar Carpeta";
|
||||||
|
$StrDeleteFolder = "Borrar Carpeta";
|
||||||
|
|
||||||
|
$StrViewFile = "Ver Archivo";
|
||||||
|
$StrEditFile = "Editar Archivo";
|
||||||
|
$StrRenameFile = "Renombrar Archivo";
|
||||||
|
$StrDownloadFile = "Bajar Archivo";
|
||||||
|
$StrDeleteFile = "Borrar Archivo";
|
||||||
|
|
||||||
|
$StrFile = "Archivo";
|
||||||
|
|
||||||
|
$StrFolderNameShort = "Nombre";
|
||||||
|
$StrFileNameShort = "Nombre";
|
||||||
|
$StrFileSizeShort = "Tamaño";
|
||||||
|
$StrPermissionsShort = "Permisos";
|
||||||
|
$StrLastModifiedShort = "Modificado";
|
||||||
|
$StrEditShort = "Ed";
|
||||||
|
$StrViewShort = "Ver";
|
||||||
|
$StrRenameShort = "Rn";
|
||||||
|
$StrDownloadShort = "Ba";
|
||||||
|
$StrDeleteShort = "Bo";
|
||||||
|
|
||||||
|
$StrBack = "Volver";
|
||||||
|
$StrYes = "Si";
|
||||||
|
$StrOr = "o";
|
||||||
|
$StrCancel = "Cancelar";
|
||||||
|
|
||||||
|
$StrUsername = "Nombre de usuario:";
|
||||||
|
$StrPassword = "Contraseña:";
|
||||||
|
$StrLogIn = "Ingresar";
|
||||||
|
$StrLoginSystem = "Ingresar:";
|
||||||
|
$StrLoginInfo = "Por favor, ingrese su nombre de usuario y contraseña:";
|
||||||
|
|
||||||
|
$StrAccessDenied = "Acceso Denegado!";
|
||||||
|
|
||||||
|
$StrInvalidHomeFolder = "Carpeta raiz invalida.";
|
||||||
|
$StrInvalidPath = "Ruta inavlida.";
|
||||||
|
$StrMissingTrailingSlash = "(Falta barra /)";
|
||||||
|
$StrAlreadyExists = "Ya existe un archivo o carpeta con ese nombre.";
|
||||||
|
$StrFolderInvalidName = "Nombre o carpeta invalido.";
|
||||||
|
$StrFileInvalidName = "Nombre de archivo invalido.";
|
||||||
|
$StrErrorOpeningFile = "Error al abrir el archivo.";
|
||||||
|
|
||||||
|
$StrSaveFileSuccess = "Archivo guardado!";
|
||||||
|
$StrSaveFileFail = "El archivo no se ha guardado.";
|
||||||
|
$StrEditing = "Editando";
|
||||||
|
$StrFilename = "Nombre de Archivo:";
|
||||||
|
$StrRestoreOriginal = "Recuperar original";
|
||||||
|
$StrSaveAndExit = "Guardar y salir";
|
||||||
|
|
||||||
|
$StrDeleteFolderNotFound = "Carpeta no encontrada.";
|
||||||
|
$StrDeleteFileNotFound = "Archivo no encontrado.";
|
||||||
|
$StrDeleteFolderSuccess = "La carpeta ha sido borrada!";
|
||||||
|
$StrDeleteFileSuccess = "El archivo ha sido borrado!";
|
||||||
|
$StrDeleteFolderFail = "La carpeta NO ha sido borrada.";
|
||||||
|
$StrDeleteFileFail = "El archivo NO ha sido borrado.";
|
||||||
|
$StrDeleteFolderFailHelp = "Permisos insuficientes.";
|
||||||
|
$StrDeleteFileFailHelp = "Permisos insuficientes.";
|
||||||
|
$StrDeleteFolderQuestion = "Esta seguro que desea borrar la siguiente carpeta?";
|
||||||
|
$StrDeleteFileQuestion = "Esta seguro que desea borrar el siguiente archivo?";
|
||||||
|
|
||||||
|
$StrRename = "Renombrar";
|
||||||
|
$StrRenameFolder = "Renombrar Carpeta";
|
||||||
|
$StrRenameFile = "Renombrar Archivo";
|
||||||
|
$StrRenameFolderSuccess = "La carpeta ha sido renombrada!";
|
||||||
|
$StrRenameFileSuccess = "El archivo ha sido renombrado!";
|
||||||
|
$StrRenameFolderFail = "La carpeta NO ha sido renombrada.";
|
||||||
|
$StrRenameFileFail = "El archivo NO ha sido renombrado.";
|
||||||
|
$StrRenameFolderFailHelp = "Permisos insuficientes o nombre de carpeta erroneo.";
|
||||||
|
$StrRenameFileFailHelp = "Permisos insuficientes o nombre de archivo erroneo.";
|
||||||
|
$StrRenameFolderQuestion = "Por favor, ingrese el nuevo nombre de la carpeta:";
|
||||||
|
$StrRenameFileQuestion = "Por favor, ingrese el nuevo nombre del archivo:";
|
||||||
|
|
||||||
|
$StrCreate = "Crear";
|
||||||
|
$StrCreateFolder = "Nueva Carpeta";
|
||||||
|
$StrCreateFile = "Nuevo Archivo";
|
||||||
|
$StrCreateFolderSuccess = "La carpeta ha sido creada!";
|
||||||
|
$StrCreateFileSuccess = "El archivo ha sido creado!";
|
||||||
|
$StrCreateFolderFail = "La carpeta NO ha sido creada.";
|
||||||
|
$StrCreateFileFail = "El archivo NO ha sido creado.";
|
||||||
|
$StrCreateFolderFailHelp = "Permisos insuficientes.";
|
||||||
|
$StrCreateFileFailHelp = "Permisos insuficientes.";
|
||||||
|
$StrCreateFolderQuestion = "Por favor, ingrese el nombre de la carpeta:";
|
||||||
|
$StrCreateFileQuestion = "Por favor, ingrese el nombre del archivo:";
|
||||||
|
|
||||||
|
$StrUpload = "Subir";
|
||||||
|
$StrUploadFilesTo = "Subir archivos a";
|
||||||
|
$StrUploading = "Subiendo";
|
||||||
|
$StrUploadSuccess = "OK!";
|
||||||
|
$StrUploadFail = "ERROR!";
|
||||||
|
$StrUploadFailPost = "El archivo que intenta subir es demasiado grande. Consulte docs/faq.txt para mas informacion.";
|
||||||
|
$StrFirstFile = "1er. archivo:";
|
||||||
|
$StrSecondFile = "2do. archivo:";
|
||||||
|
$StrThirdFile = "3er. archivo:";
|
||||||
|
$StrFourthFile = "4to. archivo:";
|
||||||
|
$StrUploadQuestion = "Elija los archivos que desea subir:";
|
||||||
|
$StrUploadNote = "Nota: Los archivos subidos seran guardados en:";
|
||||||
|
|
||||||
|
$StrDownload = "Bajar";
|
||||||
|
$StrDownloadClickLink = "Haga click en el siguiente link para bajar el archivo.";
|
||||||
|
$StrDownloadClickHere = "Haga click aqui para bajar el archivo";
|
||||||
|
$StrDownloadFail = "Error al abrir el archivo o nombre de archivo invalido.";
|
||||||
|
|
||||||
|
$StrViewing = "Ver";
|
||||||
|
$StrAt = "al";
|
||||||
|
$StrViewFail = "Error al abrir la imagen.";
|
||||||
|
$StrViewFailHelp = "El archivo no existe o no es un archivo de imagen.";
|
||||||
|
$StrImage = "Imagen";
|
||||||
|
$StrZoomIn = "Acercarse";
|
||||||
|
$StrZoomOut = "Alejarse";
|
||||||
|
$StrOriginalSize = "Tamaño original";
|
||||||
|
$StrPrevious = "Anterior";
|
||||||
|
$StrNext = "Siguiente";
|
||||||
|
|
||||||
|
?>
|
65
root/opt/webshare-tools/phpfm/readme.txt
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
Readme for PHPFM:
|
||||||
|
-------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
PHPFM - a file manager written in PHP
|
||||||
|
|
||||||
|
----------------------
|
||||||
|
http://phpfm.zalon.dk/
|
||||||
|
|
||||||
|
Copyright (C) 2002 Morten Bojsen-Hansen
|
||||||
|
Email: raz0@worldonline.dk
|
||||||
|
|
||||||
|
PHPFM is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
PHPFM is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with PHPFM; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
Summary:
|
||||||
|
PHPFM is meant to handle administration of a webserver or web hotel via HTTP.
|
||||||
|
It can currently:
|
||||||
|
- create, rename and delete folders.
|
||||||
|
- create, upload, rename, download and delete files.
|
||||||
|
- edit text files.
|
||||||
|
- view image files.
|
||||||
|
- sort files by name, size, permissions and last modification date both
|
||||||
|
ascending and descending.
|
||||||
|
- communicate in more languages.
|
||||||
|
|
||||||
|
License:
|
||||||
|
Check docs/license.txt for more information.
|
||||||
|
|
||||||
|
Download:
|
||||||
|
The newest version of PHPFM is always availible from http://phpfm.zalon.dk/
|
||||||
|
|
||||||
|
Requirements:
|
||||||
|
Check docs/requirements.txt for more information.
|
||||||
|
|
||||||
|
Installing:
|
||||||
|
Check docs/install.txt for more information.
|
||||||
|
|
||||||
|
Configurating:
|
||||||
|
Check docs/configurating.txt for more information.
|
||||||
|
|
||||||
|
Changelog:
|
||||||
|
Check docs/changelog.txt for more information.
|
||||||
|
|
||||||
|
Todo:
|
||||||
|
Check docs/todo.txt for more information.
|
||||||
|
|
||||||
|
Frequently Asked Questions (FAQ):
|
||||||
|
Check docs/faq.txt for more information.
|
||||||
|
|
||||||
|
|
||||||
|
Hope you will enjoy using PHPFM as
|
||||||
|
much as I enjoyed creating it!
|
||||||
|
|
||||||
|
Morten Bojsen-Hansen
|
0
root/opt/webshare/.gitignore
vendored
Normal file
122
smeserver-webshare.spec
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
# $Id: smeserver-webshare.spec,v 1.3 2022/08/02 03:48:34 jpp Exp $
|
||||||
|
# Authority: darrellmay
|
||||||
|
# Name: Darrell May
|
||||||
|
|
||||||
|
Summary: Webshare addon for SME Server
|
||||||
|
%define name smeserver-webshare
|
||||||
|
Name: %{name}
|
||||||
|
%define version 1.0.0
|
||||||
|
%define release 14
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}%{?dist}
|
||||||
|
License: GPL
|
||||||
|
Group: SME Server/addon
|
||||||
|
Source: %{name}-%{version}.tar.xz
|
||||||
|
BuildRoot: /var/tmp/%{name}-%{version}
|
||||||
|
BuildArchitectures: noarch
|
||||||
|
Requires: e-smith-base, perl-Apache-Htpasswd, perl-Crypt-PasswdMD5
|
||||||
|
BuildRequires: e-smith-devtools >= 1.13.1-03
|
||||||
|
AutoReqProv: no
|
||||||
|
Obsoletes: devinfo-mitel-webshare dmc-mitel-webshare
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 1.0.0-14.sme
|
||||||
|
- Roll up patches and move to git repo [SME: 12338]
|
||||||
|
|
||||||
|
* Sat Sep 07 2024 BogusDateBot
|
||||||
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||||||
|
by assuming the date is correct and changing the weekday.
|
||||||
|
|
||||||
|
* Mon Aug 01 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0.0-13.sme
|
||||||
|
- update to httpd 2.4 access syntax [SME: 12066]
|
||||||
|
thanks to Vasarhelyi Zsolt
|
||||||
|
- add to core backup [SME: 12030]
|
||||||
|
- add update event, use php-fpm [SME: 11078]
|
||||||
|
might need its dedicated pool
|
||||||
|
|
||||||
|
* Thu Mar 02 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-12.sme
|
||||||
|
- imported to SME9 [SME: 10129]
|
||||||
|
|
||||||
|
* Sat May 25 2013 JP Pialasse <tests@piaalsse.com> - 1.0.0-11.sme
|
||||||
|
- fix spacename problem with firefox [SME: 6256]
|
||||||
|
- fix password limited to 7 digits [SME: 7097]
|
||||||
|
- fix biggest error message for incorrect password [SME: 3601]
|
||||||
|
|
||||||
|
* Wed Oct 12 2011 Greg Swallow <greg@runlevel7.ca> - 1.0.0-10.sme
|
||||||
|
- Patch for added SME8 compatibility
|
||||||
|
- should fix [SME 3600], [SME 6256], [SME 6454]
|
||||||
|
|
||||||
|
* Mon Apr 21 2008 Shad L. Lords <slords@mail.com>
|
||||||
|
- Prep for import into buildsys
|
||||||
|
- Clean up spec
|
||||||
|
|
||||||
|
* Fri Dec 1 2006 Darrell May <dmay@myezserver.com>
|
||||||
|
- move htpasswd files to /home/e-smith/db/webshare
|
||||||
|
- ugraders must run: /etc/e-smith/events/actions/webshare-rebuild-htpasswd; signal-event ibay-modify
|
||||||
|
- [1.0.0-8]
|
||||||
|
* Thu Oct 12 2006 Darrell May <dmay@myezserver.com>
|
||||||
|
- updated httpd.conf fragment for SME 7 compliance
|
||||||
|
- Note: rewrite for full SME 7 support is still needed
|
||||||
|
- [1.0.0-7]
|
||||||
|
* Mon Jan 30 2006 Darrell May <dmay@myezserver.com>
|
||||||
|
- bugfix to support IE/https file downloads
|
||||||
|
- added to /incl/libfile.php 'header("Pragma:");'
|
||||||
|
- [1.0.0-6]
|
||||||
|
* Tue May 17 2005 Darrell May <dmay@myezserver.com>
|
||||||
|
- added support for numeric project names
|
||||||
|
- [1.0.0-5]
|
||||||
|
* Tue May 17 2005 Darrell May <dmay@myezserver.com>
|
||||||
|
- update to phpfm-0.2.3
|
||||||
|
- added NoDelete webshare create/config option
|
||||||
|
- [1.0.0-4]
|
||||||
|
* Thu May 12 2005 Darrell May <dmay@myezserver.com>
|
||||||
|
- bugfix webshare panel for SME 7.x
|
||||||
|
- [1.0.0-3]
|
||||||
|
* Fri Apr 22 2005 Darrell May <dmay@myezserver.com>
|
||||||
|
- added support for SME 7.x
|
||||||
|
- [1.0.0-2]
|
||||||
|
* Sun Feb 08 2004 Darrell May <dmay@myezserver.com>
|
||||||
|
- repackaged for SME Server 6.x
|
||||||
|
- [1.0.0-1]
|
||||||
|
* Sun Jan 12 2003 Darrell May <dmay@myezserver.com>
|
||||||
|
- added Requires: perl-Apache-Htpasswd
|
||||||
|
- [0.0.1-5]
|
||||||
|
* Sat Jan 11 2003 Darrell May <dmay@myezserver.com>
|
||||||
|
- name change obsolete devinfo-mitel-webshare
|
||||||
|
- updated webshare panel
|
||||||
|
- updated webshare-tools to use phpfm
|
||||||
|
- [0.0.1-4]
|
||||||
|
* Fri May 10 2002 Darrell May <dmay@myezserver.com>
|
||||||
|
- updated webshare panel
|
||||||
|
- updated webshare-tools scripts
|
||||||
|
- original public release
|
||||||
|
- [0.0.1-3]
|
||||||
|
* Thu May 09 2002 Darrell May <dmay@myezserver.com>
|
||||||
|
- added httpd.conf template and updated action scripts
|
||||||
|
- incorporated index.php from ruffdogs,com
|
||||||
|
- incorporate webshare panel and action scripts from Jon Blakely
|
||||||
|
- [0.0.1-2]
|
||||||
|
* Sun May 05 2002 Darrell May <dmay@myezserver.com>
|
||||||
|
- initial release
|
||||||
|
- [0.0.1-1]
|
||||||
|
|
||||||
|
%description
|
||||||
|
%name is an addon for SME Server that provides secure web accessible file and directory storage.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl createlinks
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
||||||
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
|
||||||
|
|
||||||
|
%clean
|
||||||
|
/bin/rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files -f %{name}-%{version}-filelist
|
||||||
|
%defattr(-,root,root)
|