Compare commits
19 Commits
0.9.22-rc1
...
0.9.23-rc1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0b073a6f1 | ||
|
|
79f5ff4d35 | ||
|
|
8609b2394b | ||
|
|
5bb3c16312 | ||
|
|
df5d3ef66f | ||
|
|
a207f2f936 | ||
|
|
b0bd0836cd | ||
|
|
475377dd85 | ||
|
|
16776ce750 | ||
|
|
3861917dbc | ||
|
|
65891eff1c | ||
|
|
bf9306c641 | ||
|
|
666d0db550 | ||
|
|
6a41b30e70 | ||
|
|
0808bacb39 | ||
|
|
026f8503ab | ||
|
|
19a7e78ebe | ||
|
|
76fb0d2a20 | ||
|
|
a418e60556 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,2 @@
|
||||
templates_c/*
|
||||
cache/*
|
||||
packages/*
|
||||
temp/*
|
||||
|
||||
1
cache/.gitignore
vendored
Normal file
1
cache/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*
|
||||
0
cache/.keep
vendored
Normal file
0
cache/.keep
vendored
Normal file
@@ -468,7 +468,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('syste
|
||||
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('system', 'vmail_homedir', '/var/customers/mail/');
|
||||
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('system', 'bindconf_directory', '/etc/bind/');
|
||||
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('system', 'bindreload_command', '/etc/init.d/bind9 reload');
|
||||
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('panel', 'version', '0.9.22-rc1');
|
||||
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('panel', 'version', '0.9.23-rc1');
|
||||
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('system', 'hostname', 'SERVERNAME');
|
||||
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('login', 'maxloginattempts', '3');
|
||||
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('login', 'deactivatetime', '900');
|
||||
|
||||
@@ -1653,3 +1653,20 @@ if(isFroxlorVersion('0.9.22-svn2'))
|
||||
|
||||
updateToVersion('0.9.22-rc1');
|
||||
}
|
||||
|
||||
if(isFroxlorVersion('0.9.22-rc1'))
|
||||
{
|
||||
showUpdateStep("Updating from 0.9.22-rc1 to 0.9.22");
|
||||
lastStepStatus(0);
|
||||
|
||||
updateToVersion('0.9.22');
|
||||
}
|
||||
|
||||
if(isFroxlorVersion('0.9.22'))
|
||||
{
|
||||
showUpdateStep("Updating from 0.9.22 to 0.9.23-rc1");
|
||||
lastStepStatus(0);
|
||||
|
||||
updateToVersion('0.9.23-rc1');
|
||||
}
|
||||
|
||||
|
||||
@@ -149,6 +149,9 @@ class htmlform
|
||||
if(isset($data['size'])) {
|
||||
$extras .= ' size="'.$data['size'].'"';
|
||||
}
|
||||
if(isset($data['autocomplete'])) {
|
||||
$extras .= ' autocomplete="'.$data['autocomplete'].'"';
|
||||
}
|
||||
|
||||
// add support to save reloaded forms
|
||||
if (isset($data['value'])) {
|
||||
|
||||
@@ -78,7 +78,10 @@ class languageSelect
|
||||
# See for which language the codepages are compiled
|
||||
foreach ($this->availableLanguages as $lang)
|
||||
{
|
||||
preg_match_all("/[^|\w]".$lang.'.*/', `locale -a`, $matches);
|
||||
$tmplng = array();
|
||||
@exec("locale -a", $tmplng);
|
||||
$tmplng = join("\n", $tmplng);
|
||||
preg_match_all("/[^|\w]".$lang.'.*/', $tmplng, $matches);
|
||||
foreach($matches[0] as $m)
|
||||
{
|
||||
if(preg_match('/utf8/', $m))
|
||||
|
||||
@@ -105,7 +105,7 @@ class phpinterface_fpm
|
||||
$tmpdir = makeCorrectDir($this->_settings['phpfpm']['tmpdir'] . '/' . $this->_domain['loginname'] . '/');
|
||||
if(!is_dir($tmpdir))
|
||||
{
|
||||
safe_exec('mkdir -p ' . escapeshellarg($tmpdir));
|
||||
$this->getTempDir();
|
||||
}
|
||||
//$slowlog = makeCorrectFile($this->_settings['system']['logfiles_directory'] . $this->_domain['loginname'] . '/php-fpm_slow.log');
|
||||
|
||||
@@ -173,9 +173,9 @@ class phpinterface_fpm
|
||||
|
||||
/**
|
||||
* fpm-config file
|
||||
*
|
||||
*
|
||||
* @param boolean $createifnotexists create the directory if it does not exist
|
||||
*
|
||||
*
|
||||
* @return string the full path to the file
|
||||
*/
|
||||
public function getConfigFile($createifnotexists = true)
|
||||
@@ -193,9 +193,9 @@ class phpinterface_fpm
|
||||
|
||||
/**
|
||||
* return path of fpm-socket file
|
||||
*
|
||||
*
|
||||
* @param boolean $createifnotexists create the directory if it does not exist
|
||||
*
|
||||
*
|
||||
* @return string the full path to the socket
|
||||
*/
|
||||
public function getSocketFile($createifnotexists = true)
|
||||
@@ -214,9 +214,9 @@ class phpinterface_fpm
|
||||
|
||||
/**
|
||||
* fpm-temp directory
|
||||
*
|
||||
*
|
||||
* @param boolean $createifnotexists create the directory if it does not exist
|
||||
*
|
||||
*
|
||||
* @return string the directory
|
||||
*/
|
||||
public function getTempDir($createifnotexists = true)
|
||||
|
||||
@@ -32,7 +32,8 @@ return array(
|
||||
'admin_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'type' => 'password',
|
||||
'mandatory' => true
|
||||
'mandatory' => true,
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'admin_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -41,6 +41,7 @@ return array(
|
||||
'admin_password' => array(
|
||||
'label' => $lng['login']['password'].' ('.$lng['panel']['emptyfornochanges'].')',
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off',
|
||||
'visible' => ($result['adminid'] == $userinfo['userid'] ? false : true)
|
||||
),
|
||||
'admin_password_suggestion' => array(
|
||||
|
||||
@@ -47,6 +47,7 @@ return array(
|
||||
'new_customer_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'new_customer_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -52,7 +52,8 @@ return array(
|
||||
),
|
||||
'new_customer_password' => array(
|
||||
'label' => $lng['login']['password'].' ('.$lng['panel']['emptyfornochanges'].')',
|
||||
'type' => 'password'
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'new_customer_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -67,7 +67,7 @@ return array(
|
||||
'values' => array(
|
||||
array ('label' => $lng['panel']['yes'], 'value' => '1')
|
||||
),
|
||||
'value' => array()
|
||||
'value' => array($result['iswildcarddomain'])
|
||||
),
|
||||
'isemaildomain' => array(
|
||||
'visible' => ((( $result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2' ) && $result['parentdomainid'] != '0') ? true : false),
|
||||
|
||||
@@ -31,7 +31,8 @@ return array(
|
||||
),
|
||||
'email_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'type' => 'password'
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'email_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -36,7 +36,7 @@ return array(
|
||||
'type' => 'select',
|
||||
'select_var' => $domains
|
||||
),
|
||||
'pathedit' => array(
|
||||
'iscatchall' => array(
|
||||
'label' => $lng['emails']['iscatchall'],
|
||||
'type' => 'checkbox',
|
||||
'values' => array(
|
||||
|
||||
@@ -31,7 +31,8 @@ return array(
|
||||
),
|
||||
'email_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'type' => 'password'
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'email_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -37,7 +37,8 @@ return array(
|
||||
),
|
||||
'directory_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'type' => 'password'
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'directory_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -36,7 +36,8 @@ return array(
|
||||
),
|
||||
'directory_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'type' => 'password'
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'directory_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -44,6 +44,7 @@ return array(
|
||||
'ftp_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'ftp_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -39,6 +39,7 @@ return array(
|
||||
'label' => $lng['login']['password'],
|
||||
'desc' => $lng['ftp']['editpassdescription'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'ftp_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -36,6 +36,7 @@ return array(
|
||||
'mysql_password' => array(
|
||||
'label' => $lng['login']['password'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'mysql_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -42,6 +42,7 @@ return array(
|
||||
'mysql_password' => array(
|
||||
'label' => $lng['changepassword']['new_password_ifnotempty'],
|
||||
'type' => 'password',
|
||||
'autocomplete' => 'off'
|
||||
),
|
||||
'mysql_password_suggestion' => array(
|
||||
'label' => $lng['customer']['generated_pwd'],
|
||||
|
||||
@@ -55,7 +55,7 @@ function findIncludeClass($dirname, $classname)
|
||||
{
|
||||
if($filename != '.' && $filename != '..' && $filename != '')
|
||||
{
|
||||
if($filename == 'class.' . $classname . '.php' || $filename == 'abstract.' . $classname . '.php')
|
||||
if($filename == 'class.' . $classname . '.php' || $filename == 'abstract.' . $classname . '.php' || $filename == 'interface.' . $classname . '.php')
|
||||
{
|
||||
include($dirname . $filename);
|
||||
return;
|
||||
|
||||
@@ -73,6 +73,6 @@ define('PACKAGE_ENABLED', 2);
|
||||
|
||||
// VERSION INFO
|
||||
|
||||
$version = '0.9.22-rc1';
|
||||
$version = '0.9.23-rc1';
|
||||
$dbversion = '2';
|
||||
$branding = '';
|
||||
|
||||
@@ -243,7 +243,7 @@ $lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
$lng['question']['question'] = 'Security question';
|
||||
$lng['question']['admin_customer_reallydelete'] = 'Do you really want to delete the customer %s? This cannot be undone!';
|
||||
$lng['question']['admin_domain_reallydelete'] = 'Do you really want to delete the domain %s?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Do you really want to disable these security setting (OpenBasedir)?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Do you really want to disable this security setting OpenBasedir?';
|
||||
$lng['question']['admin_admin_reallydelete'] = 'Do you really want to delete the admin %s? Every customer and domain will be reassigned to your account.';
|
||||
$lng['question']['admin_template_reallydelete'] = 'Do you really want to delete the template \'%s\'?';
|
||||
$lng['question']['domains_reallydelete'] = 'Do you really want to delete the domain %s?';
|
||||
|
||||
@@ -243,7 +243,7 @@ $lng['error']['domainname'] = $lng['domains']['domainname'];
|
||||
$lng['question']['question'] = 'Sicherheitsabfrage';
|
||||
$lng['question']['admin_customer_reallydelete'] = 'Wollen Sie den Kunden %s wirklich löschen?<br />ACHTUNG! Alle Daten gehen unwiderruflich verloren! Nach dem Vorgang müssen Sie die Daten aus dem Dateisystem noch manuell entfernen.';
|
||||
$lng['question']['admin_domain_reallydelete'] = 'Wollen Sie die Domain %s wirklich löschen?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Wollen Sie diese wichtigen Sicherheitseinstellung (OpenBasedir) wirklich deaktivieren?';
|
||||
$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Wollen Sie diese wichtige Sicherheitseinstellung OpenBasedir wirklich deaktivieren?';
|
||||
$lng['question']['admin_admin_reallydelete'] = 'Wollen Sie den Admin %s wirklich löschen?<br />Alle Kunden und Domains werden Ihrem Account zugeteilt.';
|
||||
$lng['question']['admin_template_reallydelete'] = 'Wollen Sie die Vorlage \'%s\' wirklich löschen?';
|
||||
$lng['question']['domains_reallydelete'] = 'Wollen Sie die Domain %s wirklich löschen?';
|
||||
|
||||
Binary file not shown.
@@ -1,20 +1,22 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Froxlor\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-06-23 10:46+0100\n"
|
||||
"PO-Revision-Date: 2011-06-23 13:30+0100\n"
|
||||
"POT-Creation-Date: 2011-07-16 10:06+0200\n"
|
||||
"PO-Revision-Date: 2011-07-16 10:12+0100\n"
|
||||
"Last-Translator: Florian Aders <eleras@froxlor.org>\n"
|
||||
"Language-Team: The Froxlor team <team@froxlor.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
|
||||
"X-Poedit-Basepath: /home/florian/froxlor\n"
|
||||
"X-Poedit-Language: DE\n"
|
||||
"X-Poedit-Country: Germany\n"
|
||||
"X-Poedit-SearchPath-0: .\n"
|
||||
"X-Poedit-Language: German\n"
|
||||
"X-Poedit-Country: GERMANY\n"
|
||||
|
||||
#: smarty.c:2
|
||||
msgid "Froxlor Server Management Panel"
|
||||
@@ -24,6 +26,9 @@ msgstr "Froxlor Server Management Panel"
|
||||
#: smarty.c:26
|
||||
#: smarty.c:41
|
||||
#: smarty.c:80
|
||||
#: smarty.c:50
|
||||
#: smarty.c:59
|
||||
#: smarty.c:152
|
||||
msgid "Success"
|
||||
msgstr "Erfolgreich"
|
||||
|
||||
@@ -31,6 +36,9 @@ msgstr "Erfolgreich"
|
||||
#: smarty.c:29
|
||||
#: smarty.c:44
|
||||
#: smarty.c:83
|
||||
#: smarty.c:53
|
||||
#: smarty.c:62
|
||||
#: smarty.c:155
|
||||
msgid "Error"
|
||||
msgstr "Fehler"
|
||||
|
||||
@@ -51,25 +59,33 @@ msgid "Login"
|
||||
msgstr "Login"
|
||||
|
||||
#: smarty.c:23
|
||||
#: smarty.c:56
|
||||
msgid "Editing"
|
||||
msgstr "Bearbeiten"
|
||||
|
||||
#: smarty.c:32
|
||||
#: smarty.c:50
|
||||
#: smarty.c:65
|
||||
#: smarty.c:161
|
||||
msgid "Save file"
|
||||
msgstr "Datei speichern"
|
||||
|
||||
#: smarty.c:35
|
||||
#: smarty.c:53
|
||||
#: smarty.c:68
|
||||
#: smarty.c:164
|
||||
msgid "Cancel"
|
||||
msgstr "Abbrechen"
|
||||
|
||||
#: smarty.c:38
|
||||
#: smarty.c:149
|
||||
msgid "Creating a file in"
|
||||
msgstr "Erstellt eine Datei in"
|
||||
|
||||
#: smarty.c:47
|
||||
#: smarty.c:107
|
||||
#: smarty.c:77
|
||||
#: smarty.c:158
|
||||
msgid "Filename"
|
||||
msgstr "Dateiname"
|
||||
|
||||
@@ -77,122 +93,158 @@ msgstr "Dateiname"
|
||||
#: smarty.c:62
|
||||
#: smarty.c:71
|
||||
#: smarty.c:146
|
||||
#: smarty.c:26
|
||||
#: smarty.c:32
|
||||
#: smarty.c:41
|
||||
#: smarty.c:134
|
||||
msgid "Delete"
|
||||
msgstr "Löschen"
|
||||
|
||||
#: smarty.c:59
|
||||
#: smarty.c:65
|
||||
#: smarty.c:74
|
||||
#: smarty.c:29
|
||||
#: smarty.c:35
|
||||
#: smarty.c:44
|
||||
msgid "Rename"
|
||||
msgstr "Umbenennen"
|
||||
|
||||
#: smarty.c:68
|
||||
#: smarty.c:47
|
||||
msgid "Symbolic link to"
|
||||
msgstr "Symlink nach"
|
||||
|
||||
#: smarty.c:77
|
||||
#: smarty.c:38
|
||||
msgid "Edit"
|
||||
msgstr "Bearbeiten"
|
||||
|
||||
#: smarty.c:86
|
||||
#: smarty.c:113
|
||||
msgid "Basic operations"
|
||||
msgstr "Standard Operationen"
|
||||
|
||||
#: smarty.c:89
|
||||
#: smarty.c:116
|
||||
msgid "Change dir"
|
||||
msgstr "Verzeichnis wechseln"
|
||||
|
||||
#: smarty.c:92
|
||||
#: smarty.c:119
|
||||
msgid "Create dir"
|
||||
msgstr "Verzeichnis erstellen"
|
||||
|
||||
#: smarty.c:95
|
||||
#: smarty.c:122
|
||||
msgid "Create new file in current directory"
|
||||
msgstr "Neue Datei in aktuellem Verzeichnis erstellen"
|
||||
|
||||
#: smarty.c:98
|
||||
#: smarty.c:125
|
||||
msgid "Upload files"
|
||||
msgstr "Dateien hochladen"
|
||||
|
||||
#: smarty.c:101
|
||||
#: smarty.c:128
|
||||
msgid "Upload file(s)"
|
||||
msgstr "Datei(en) hochladen"
|
||||
|
||||
#: smarty.c:104
|
||||
#: smarty.c:146
|
||||
msgid "Rename / Move"
|
||||
msgstr "Umbenennen / Verschieben"
|
||||
|
||||
#: smarty.c:110
|
||||
#: smarty.c:80
|
||||
msgid "Size"
|
||||
msgstr "Größe"
|
||||
|
||||
#: smarty.c:113
|
||||
#: smarty.c:83
|
||||
msgid "Date"
|
||||
msgstr "Datum"
|
||||
|
||||
#: smarty.c:116
|
||||
#: smarty.c:86
|
||||
msgid "Permissions"
|
||||
msgstr "Berechtigungen"
|
||||
|
||||
#: smarty.c:119
|
||||
#: smarty.c:89
|
||||
msgid "User"
|
||||
msgstr "Benutzer"
|
||||
|
||||
#: smarty.c:122
|
||||
#: smarty.c:92
|
||||
msgid "Group"
|
||||
msgstr "Gruppe"
|
||||
|
||||
#: smarty.c:125
|
||||
#: smarty.c:95
|
||||
msgid "Options"
|
||||
msgstr "Optionen"
|
||||
|
||||
#: smarty.c:128
|
||||
#: smarty.c:98
|
||||
msgid "Files"
|
||||
msgstr "Dateien"
|
||||
|
||||
#: smarty.c:131
|
||||
#: smarty.c:101
|
||||
msgid "Complete filesize"
|
||||
msgstr "Komplette Dateigröße"
|
||||
|
||||
#: smarty.c:134
|
||||
#: smarty.c:104
|
||||
msgid "Symlinks"
|
||||
msgstr "Symlinks"
|
||||
|
||||
#: smarty.c:137
|
||||
#: smarty.c:107
|
||||
msgid "Directories"
|
||||
msgstr "Verzeichnisse"
|
||||
|
||||
#: smarty.c:140
|
||||
#: smarty.c:110
|
||||
msgid "Complete directorysize"
|
||||
msgstr "Komplette Verzeichnisgröße"
|
||||
|
||||
#: smarty.c:143
|
||||
#: smarty.c:131
|
||||
msgid "Selected file(s)"
|
||||
msgstr "Markierte Datei(en)"
|
||||
|
||||
#: smarty.c:149
|
||||
#: smarty.c:137
|
||||
msgid "Change permission to"
|
||||
msgstr "Berechtigungen ändern zu"
|
||||
|
||||
#: smarty.c:152
|
||||
#: smarty.c:140
|
||||
msgid "Move to"
|
||||
msgstr "Verschieben nach"
|
||||
|
||||
#: smarty.c:155
|
||||
#: smarty.c:143
|
||||
msgid "Do it"
|
||||
msgstr "Tu es"
|
||||
|
||||
#: smarty.c:158
|
||||
#: smarty.c:23
|
||||
msgid "the Froxlor Team"
|
||||
msgstr "das Froxlor Team"
|
||||
|
||||
#: webftp.php:231
|
||||
#: webftp.php:177
|
||||
msgid "Successfully logged out"
|
||||
msgstr "Erfolgreich ausgeloggt"
|
||||
|
||||
#: webftp.php:343
|
||||
#: webftp.php:350
|
||||
#: webftp.php:430
|
||||
#: webftp.php:289
|
||||
#: webftp.php:296
|
||||
#: webftp.php:376
|
||||
#, php-format
|
||||
msgid "Directory change to '%1$s' failed!"
|
||||
msgstr "Verzeichniswechsel nach '%1$s' fehlgeschlagen!"
|
||||
@@ -201,6 +253,10 @@ msgstr "Verzeichniswechsel nach '%1$s' fehlgeschlagen!"
|
||||
#: webftp.php:369
|
||||
#: webftp.php:375
|
||||
#: webftp.php:426
|
||||
#: webftp.php:303
|
||||
#: webftp.php:315
|
||||
#: webftp.php:321
|
||||
#: webftp.php:372
|
||||
#, php-format
|
||||
msgid "current folder = [%1$s]"
|
||||
msgstr "aktuelles Verzeichnis = [%1$s]"
|
||||
@@ -243,26 +299,31 @@ msgid "<br />'%1$s' couldn't be deleted!"
|
||||
msgstr "<br />'%1$s' konnt nicht gelöscht werden!"
|
||||
|
||||
#: webftp.php:522
|
||||
#: webftp.php:468
|
||||
#, php-format
|
||||
msgid "'%1$s' renamed to '%2$s'"
|
||||
msgstr "'%1$s' wurde umbenannt noch '%2$s'"
|
||||
msgstr "'%1$s' wurde umbenannt nach '%2$s'"
|
||||
|
||||
#: webftp.php:526
|
||||
#: webftp.php:472
|
||||
#, php-format
|
||||
msgid "'%1$s' couldn't be renamed to '%2$s'!"
|
||||
msgstr "'%1$s' konnt nicht nach '%2$s' umbenannt werden"
|
||||
msgstr "'%1$s' konnte nicht nach '%2$s' umbenannt werden"
|
||||
|
||||
#: webftp.php:531
|
||||
#: webftp.php:477
|
||||
#, php-format
|
||||
msgid "File '%1$s' rename/move to"
|
||||
msgstr "Datei '%1$s' verschoben nach"
|
||||
|
||||
#: webftp.php:537
|
||||
#: webftp.php:483
|
||||
#, php-format
|
||||
msgid "Directory '%1$s' created"
|
||||
msgstr "Verzeichnis '%1$s' erstellt"
|
||||
|
||||
#: webftp.php:541
|
||||
#: webftp.php:487
|
||||
#, php-format
|
||||
msgid "Directory '%1$s' couldn't be created!"
|
||||
msgstr "Verzeichnis '%1$s' konnte nicht erstellt werden!"
|
||||
@@ -296,21 +357,25 @@ msgid "<br />File '%1$s' couldn't be moved"
|
||||
msgstr "<br />Die Datei '%1$s' konnte nicht verschoben werden"
|
||||
|
||||
#: webftp.php:662
|
||||
#: webftp.php:608
|
||||
#, php-format
|
||||
msgid "The directory '%1$s' doesn't exist"
|
||||
msgstr "Das Verzeichnis '%1$s' existiert nicht"
|
||||
|
||||
#: webftp.php:706
|
||||
#: webftp.php:652
|
||||
#, php-format
|
||||
msgid "File '%1$s' couldn't be downloaded!"
|
||||
msgstr "Die Datei '%1$s' konnte nicht heruntergeladen werden!"
|
||||
|
||||
#: webftp.php:743
|
||||
#: webftp.php:689
|
||||
#, php-format
|
||||
msgid "File '%1$s' couldn't be saved!"
|
||||
msgstr "Die Datei '%1$s' konnte nicht gespeichert werden!"
|
||||
|
||||
#: webftp.php:747
|
||||
#: webftp.php:693
|
||||
#, php-format
|
||||
msgid "File '%1$s' was saved succesfully!"
|
||||
msgstr "Die Datei '%1$s' wurde erfolgreich gespeichert!"
|
||||
@@ -321,45 +386,133 @@ msgid "Files with these extension can't be created/edited!"
|
||||
msgstr "Dateien mit dieser Endung können nicht erstellt / bearbeitet werden!"
|
||||
|
||||
#: webftp.php:762
|
||||
#: webftp.php:708
|
||||
msgid "Please enter a filename!"
|
||||
msgstr "Bitte einen Dateinamen eingeben!"
|
||||
|
||||
#: webftp.php:912
|
||||
#: webftp.php:858
|
||||
#, php-format
|
||||
msgid "Connected to %1$s"
|
||||
msgstr "Verbunden mit %1$s"
|
||||
|
||||
#: webftp.php:931
|
||||
#: webftp.php:877
|
||||
msgid "Do you really want to delete the selected files?"
|
||||
msgstr "Sollen die markierten Dateien wirklich gelöscht werden?"
|
||||
|
||||
#: webftp.php:935
|
||||
#: webftp.php:881
|
||||
#, php-format
|
||||
msgid "Do you really want to move the selected files to '%1$s'?"
|
||||
msgstr "Sollen die markierten Dateien wirklich nach '%1$s' verschoben werden?"
|
||||
|
||||
#: webftp.php:940
|
||||
#: webftp.php:886
|
||||
#, php-format
|
||||
msgid "Do you really want to set the permission of the selected files to '%1$s'?"
|
||||
msgstr "Sollen die Berechtigungen der markierten Dateien wirklich auf '%1$s' geändert werden?"
|
||||
|
||||
#: webftp.php:951
|
||||
#: webftp.php:897
|
||||
msgid "Logout"
|
||||
msgstr "Abmelden"
|
||||
|
||||
#: webftp.php:953
|
||||
#: webftp.php:899
|
||||
msgid "Switch to BINARY mode"
|
||||
msgstr "Auf BINARY - Modus wechseln"
|
||||
|
||||
#: webftp.php:955
|
||||
#: webftp.php:901
|
||||
msgid "Switch to ASCII mode"
|
||||
msgstr "Auf ASCII - Modus wechseln"
|
||||
|
||||
#: webftp.php:957
|
||||
#: webftp.php:903
|
||||
msgid "Main"
|
||||
msgstr "Hauptmenü"
|
||||
|
||||
#: webftp.php:963
|
||||
#: webftp.php:909
|
||||
msgid "Login failed, please try again"
|
||||
msgstr "Login fehlgeschlagen, bitte erneut versuchen"
|
||||
|
||||
#: webftp.php:417
|
||||
#, php-format
|
||||
msgid "File '%1$s' is to big! (max. %2$u bytes)"
|
||||
msgstr "Die Datei '%1$s' ist zu groß! (Max. %2$u Bytes)"
|
||||
|
||||
#: webftp.php:432
|
||||
#, php-format
|
||||
msgid "File '%1$s' couldn't be uploaded!"
|
||||
msgstr "Die Datei '%1$s' konnte nicht hochgeladen werden"
|
||||
|
||||
#: webftp.php:436
|
||||
#, php-format
|
||||
msgid "File '%1$s' was successfully uploaded!"
|
||||
msgstr "Die Datei '%1$s' wurde erfolgreich hochgeladen!"
|
||||
|
||||
#: webftp.php:446
|
||||
#, php-format
|
||||
msgid "Directory '%1$s' deleted!"
|
||||
msgstr "Das Verzeichnis '%1$s' wurde gelöscht!"
|
||||
|
||||
#: webftp.php:450
|
||||
#, php-format
|
||||
msgid "Directory '%1$s' couldn't be deleted!"
|
||||
msgstr "Das Verzeichnis '%1$s' konnte nicht gelöscht werden!"
|
||||
|
||||
#: webftp.php:456
|
||||
#: webftp.php:573
|
||||
#, php-format
|
||||
msgid "'%1$s' deleted!"
|
||||
msgstr "'%1$s' wurde gelöscht!"
|
||||
|
||||
#: webftp.php:460
|
||||
#: webftp.php:577
|
||||
#, php-format
|
||||
msgid "'%1$s' couldn't be deleted!"
|
||||
msgstr "'%1$s' konnte nicht gelöscht werden!"
|
||||
|
||||
#: webftp.php:502
|
||||
#: webftp.php:533
|
||||
#, php-format
|
||||
msgid "The permission '%1$s' you entered is not valid!"
|
||||
msgstr "Die eingegebene Berechtigung '%1$s' ist ungültig!"
|
||||
|
||||
#: webftp.php:509
|
||||
#: webftp.php:544
|
||||
#, php-format
|
||||
msgid "The permission of '%1$s' is set to '%2$s'!"
|
||||
msgstr "Die Berechtigung von '%1$s' wurde auf '%2$s' gesetzt!"
|
||||
|
||||
#: webftp.php:513
|
||||
#: webftp.php:548
|
||||
#, php-format
|
||||
msgid "The permission of '%1$s' couldn't be set to '%2$s'!"
|
||||
msgstr "Die Berechtigung von '%1$s' konnte nicht auf '%2$s' gesetzt werden!"
|
||||
|
||||
#: webftp.php:597
|
||||
#, php-format
|
||||
msgid "File '%1$s' moved"
|
||||
msgstr "Die Datei '%1$s' wurde verschoben"
|
||||
|
||||
#: webftp.php:601
|
||||
#, php-format
|
||||
msgid "File '%1$s' couldn't be moved"
|
||||
msgstr "Die Datei '%1$s' konnte nicht verschoben werden"
|
||||
|
||||
#: webftp.php:700
|
||||
#, php-format
|
||||
msgid "Files with this extension can't be created/edited!"
|
||||
msgstr "Dateien mit dieser Endung können nicht erstellt / bearbeitet werden!"
|
||||
|
||||
#: smarty.c:71
|
||||
msgid "Yes"
|
||||
msgstr "Ja"
|
||||
|
||||
#: smarty.c:74
|
||||
msgid "No"
|
||||
msgstr "Nein"
|
||||
|
||||
|
||||
350
locales/en/LC_MESSAGES/default.po
Normal file
350
locales/en/LC_MESSAGES/default.po
Normal file
@@ -0,0 +1,350 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-07-16 10:04+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: webftp.php:177
|
||||
msgid "Successfully logged out"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:289 webftp.php:296 webftp.php:376
|
||||
#, php-format
|
||||
msgid "Directory change to '%1$s' failed!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:303 webftp.php:315 webftp.php:321 webftp.php:372
|
||||
#, php-format
|
||||
msgid "current folder = [%1$s]"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:417
|
||||
#, php-format
|
||||
msgid "File '%1$s' is to big! (max. %2$u bytes)"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:432
|
||||
#, php-format
|
||||
msgid "File '%1$s' couldn't be uploaded!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:436
|
||||
#, php-format
|
||||
msgid "File '%1$s' was successfully uploaded!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:446
|
||||
#, php-format
|
||||
msgid "Directory '%1$s' deleted!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:450
|
||||
#, php-format
|
||||
msgid "Directory '%1$s' couldn't be deleted!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:456 webftp.php:573
|
||||
#, php-format
|
||||
msgid "'%1$s' deleted!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:460 webftp.php:577
|
||||
#, php-format
|
||||
msgid "'%1$s' couldn't be deleted!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:468
|
||||
#, php-format
|
||||
msgid "'%1$s' renamed to '%2$s'"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:472
|
||||
#, php-format
|
||||
msgid "'%1$s' couldn't be renamed to '%2$s'!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:477
|
||||
#, php-format
|
||||
msgid "File '%1$s' rename/move to"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:483
|
||||
#, php-format
|
||||
msgid "Directory '%1$s' created"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:487
|
||||
#, php-format
|
||||
msgid "Directory '%1$s' couldn't be created!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:502 webftp.php:533
|
||||
#, php-format
|
||||
msgid "The permission '%1$s' you entered is not valid!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:509 webftp.php:544
|
||||
#, php-format
|
||||
msgid "The permission of '%1$s' is set to '%2$s'!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:513 webftp.php:548
|
||||
#, php-format
|
||||
msgid "The permission of '%1$s' couldn't be set to '%2$s'!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:597
|
||||
#, php-format
|
||||
msgid "File '%1$s' moved"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:601
|
||||
#, php-format
|
||||
msgid "File '%1$s' couldn't be moved"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:608
|
||||
#, php-format
|
||||
msgid "The directory '%1$s' doesn't exist"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:652
|
||||
#, php-format
|
||||
msgid "File '%1$s' couldn't be downloaded!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:689
|
||||
#, php-format
|
||||
msgid "File '%1$s' couldn't be saved!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:693
|
||||
#, php-format
|
||||
msgid "File '%1$s' was saved succesfully!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:700
|
||||
#, php-format
|
||||
msgid "Files with this extension can't be created/edited!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:708
|
||||
msgid "Please enter a filename!"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:858
|
||||
#, php-format
|
||||
msgid "Connected to %1$s"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:877
|
||||
msgid "Do you really want to delete the selected files?"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:881
|
||||
#, php-format
|
||||
msgid "Do you really want to move the selected files to '%1$s'?"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:886
|
||||
#, php-format
|
||||
msgid ""
|
||||
"Do you really want to set the permission of the selected files to '%1$s'?"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:897
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:899
|
||||
msgid "Switch to BINARY mode"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:901
|
||||
msgid "Switch to ASCII mode"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:903
|
||||
msgid "Main"
|
||||
msgstr ""
|
||||
|
||||
#: webftp.php:909
|
||||
msgid "Login failed, please try again"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:2
|
||||
msgid "Froxlor Server Management Panel"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:5 smarty.c:50 smarty.c:59 smarty.c:152
|
||||
msgid "Success"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:8 smarty.c:53 smarty.c:62 smarty.c:155
|
||||
msgid "Error"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:11
|
||||
msgid "Froxlor - WebFTP - Login"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:14
|
||||
msgid "Username"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:17
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:20
|
||||
msgid "Login"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:23
|
||||
msgid "the Froxlor Team"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:26 smarty.c:32 smarty.c:41 smarty.c:134
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:29 smarty.c:35 smarty.c:44
|
||||
msgid "Rename"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:38
|
||||
msgid "Edit"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:47
|
||||
msgid "Symbolic link to"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:56
|
||||
msgid "Editing"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:65 smarty.c:161
|
||||
msgid "Save file"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:68 smarty.c:164
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:71
|
||||
msgid "Yes"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:74
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:77 smarty.c:158
|
||||
msgid "Filename"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:80
|
||||
msgid "Size"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:83
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:86
|
||||
msgid "Permissions"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:89
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:92
|
||||
msgid "Group"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:95
|
||||
msgid "Options"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:98
|
||||
msgid "Files"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:101
|
||||
msgid "Complete filesize"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:104
|
||||
msgid "Symlinks"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:107
|
||||
msgid "Directories"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:110
|
||||
msgid "Complete directorysize"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:113
|
||||
msgid "Basic operations"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:116
|
||||
msgid "Change dir"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:119
|
||||
msgid "Create dir"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:122
|
||||
msgid "Create new file in current directory"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:125
|
||||
msgid "Upload files"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:128
|
||||
msgid "Upload file(s)"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:131
|
||||
msgid "Selected file(s)"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:137
|
||||
msgid "Change permission to"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:140
|
||||
msgid "Move to"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:143
|
||||
msgid "Do it"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:146
|
||||
msgid "Rename / Move"
|
||||
msgstr ""
|
||||
|
||||
#: smarty.c:149
|
||||
msgid "Creating a file in"
|
||||
msgstr ""
|
||||
@@ -41,7 +41,7 @@ if($settings['system']['backup_enabled'] == '1'){
|
||||
|
||||
// create backup dir an set rights
|
||||
if(!file_exists($row['documentroot'] . $settings['system']['backup_dir'])){
|
||||
safe_exec('install -d ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . ' -o ' . escapeshellarg($ftp_row['uid']) . ' -g ' . escapeshellarg($ftp_row['gid']) . ' -m ' . '0500');
|
||||
safe_exec('install -d ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . ' -o ' . escapeshellarg($ftp_row['uid']) . ' -g ' . escapeshellarg($ftp_row['gid']) . ' -m ' . '0500');
|
||||
}
|
||||
|
||||
// create customers html backup
|
||||
@@ -51,7 +51,7 @@ if($settings['system']['backup_enabled'] == '1'){
|
||||
$dbs_result = $db->query("SELECT databasename FROM `" . TABLE_PANEL_DATABASES . "` WHERE `customerid` = '" . $db->escape($row['customerid']) . "';");
|
||||
while($dbs_row = $db->fetch_array($dbs_result)){
|
||||
// create customers sql backup
|
||||
safe_exec(escapeshellarg($settings['system']['backup_mysqldump_path']) . ' --opt --allow-keywords -u ' . $sql_root[0]['user'] . ' -p' . $sql_root[0]['password'] . ' -h ' . $sql_root[0]['host'] . ' ' . escapeshellarg($dbs_row['databasename']) . ' -r ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . '/' . escapeshellarg($dbs_row['databasename']) . '.sql' );
|
||||
safe_exec(escapeshellarg($settings['system']['backup_mysqldump_path']) . ' --opt --force --allow-keywords -u ' . $sql_root[0]['user'] . ' -p' . $sql_root[0]['password'] . ' -h ' . $sql_root[0]['host'] . ' ' . escapeshellarg($dbs_row['databasename']) . ' -r ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . '/' . escapeshellarg($dbs_row['databasename']) . '.sql' );
|
||||
// compress sql backup
|
||||
safe_exec('tar -C ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . ' -c -z -f ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . '/' . escapeshellarg($dbs_row['databasename']) . '.tar.gz ' . escapeshellarg($dbs_row['databasename']) . '.sql');
|
||||
// remove uncompresed sql files
|
||||
@@ -70,18 +70,8 @@ if($settings['system']['backup_enabled'] == '1'){
|
||||
}
|
||||
}
|
||||
|
||||
// set correct user
|
||||
if($settings['system']['mod_fcgid'] == 1){
|
||||
$user = $row['loginname'];
|
||||
$group = $row['loginname'];
|
||||
}
|
||||
else {
|
||||
$user = $row['guid'];
|
||||
$group = $row['guid'];
|
||||
}
|
||||
|
||||
// chown & chmod files to prevent manipulation
|
||||
safe_exec('chown ' . escapeshellarg($user) . ':' . escapeshellarg($group) . ' ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . '/*');
|
||||
safe_exec('chown ' . escapeshellarg($row['guid']) . ':' . escapeshellarg($row['guid']) . ' ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . '/*');
|
||||
safe_exec('chmod 0400 ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . '/*');
|
||||
|
||||
// create ftp backup user
|
||||
|
||||
@@ -324,6 +324,20 @@ while($row = $db->fetch_array($result_tasks))
|
||||
safe_exec('rm -rf '.escapeshellarg($maildir));
|
||||
}
|
||||
|
||||
/*
|
||||
* remove tmpdir if it exists
|
||||
*/
|
||||
$tmpdir = makeCorrectDir($settings['system']['mod_fcgid_tmpdir'] . '/' . $row['data']['loginname'] . '/');
|
||||
|
||||
if (is_dir($tmpdir)
|
||||
&& $tmpdir != "/"
|
||||
&& $tmpdir != $settings['system']['mod_fcgid_tmpdir']
|
||||
&& substr($tmpdir, 0, strlen($settings['system']['mod_fcgid_tmpdir'])) == $settings['system']['mod_fcgid_tmpdir'])
|
||||
{
|
||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: rm -rf ' . escapeshellarg($tmpdir));
|
||||
safe_exec('rm -rf '.escapeshellarg($tmpdir));
|
||||
}
|
||||
|
||||
/*
|
||||
* see if we have some php-fcgid leftovers if used
|
||||
* and remove them, #200
|
||||
|
||||
292
smarty.c
292
smarty.c
@@ -1,159 +1,165 @@
|
||||
/* templates/Froxlor/login/login_ftp.tpl */
|
||||
/* templates//Froxlor/login/login_ftp.tpl */
|
||||
gettext("Froxlor Server Management Panel");
|
||||
|
||||
/* templates/Froxlor/login/login_ftp.tpl */
|
||||
/* templates//Froxlor/login/login_ftp.tpl */
|
||||
gettext("Success");
|
||||
|
||||
/* templates/Froxlor/login/login_ftp.tpl */
|
||||
/* templates//Froxlor/login/login_ftp.tpl */
|
||||
gettext("Error");
|
||||
|
||||
/* templates/Froxlor/login/login_ftp.tpl */
|
||||
/* templates//Froxlor/login/login_ftp.tpl */
|
||||
gettext("Froxlor - WebFTP - Login");
|
||||
|
||||
/* templates/Froxlor/login/login_ftp.tpl */
|
||||
/* templates//Froxlor/login/login_ftp.tpl */
|
||||
gettext("Username");
|
||||
|
||||
/* templates/Froxlor/login/login_ftp.tpl */
|
||||
/* templates//Froxlor/login/login_ftp.tpl */
|
||||
gettext("Password");
|
||||
|
||||
/* templates/Froxlor/login/login_ftp.tpl */
|
||||
/* templates//Froxlor/login/login_ftp.tpl */
|
||||
gettext("Login");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Editing");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Success");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Error");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Save file");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Cancel");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Creating a file in");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Success");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Error");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Filename");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Save file");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Cancel");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_dir_row.tpl */
|
||||
gettext("Delete");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_dir_row.tpl */
|
||||
gettext("Rename");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_link_row.tpl */
|
||||
gettext("Delete");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_link_row.tpl */
|
||||
gettext("Rename");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_link_row.tpl */
|
||||
gettext("Symbolic link to");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_file_row.tpl */
|
||||
gettext("Delete");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_file_row.tpl */
|
||||
gettext("Rename");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_file_row.tpl */
|
||||
gettext("Edit");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_header.tpl */
|
||||
gettext("Success");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_header.tpl */
|
||||
gettext("Error");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Basic operations");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Change dir");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Create dir");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Create new file in current directory");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Upload files");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Upload file(s)");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_rename.tpl */
|
||||
gettext("Rename / Move");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Filename");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Size");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Date");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Permissions");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("User");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Group");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Options");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Files");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Complete filesize");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Symlinks");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Directories");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Complete directorysize");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Selected file(s)");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Delete");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Change permission to");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Move to");
|
||||
|
||||
/* templates/Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Do it");
|
||||
|
||||
/* templates/Froxlor/index.tpl */
|
||||
/* templates//Froxlor/index.tpl */
|
||||
gettext("the Froxlor Team");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_dir_row.tpl */
|
||||
gettext("Delete");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_dir_row.tpl */
|
||||
gettext("Rename");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_file_row.tpl */
|
||||
gettext("Delete");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_file_row.tpl */
|
||||
gettext("Rename");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_file_row.tpl */
|
||||
gettext("Edit");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_link_row.tpl */
|
||||
gettext("Delete");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_link_row.tpl */
|
||||
gettext("Rename");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_link_row.tpl */
|
||||
gettext("Symbolic link to");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_header.tpl */
|
||||
gettext("Success");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_header.tpl */
|
||||
gettext("Error");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Editing");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Success");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Error");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Save file");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit.tpl */
|
||||
gettext("Cancel");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_prompt.tpl */
|
||||
gettext("Yes");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_prompt.tpl */
|
||||
gettext("No");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Filename");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Size");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Date");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Permissions");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("User");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Group");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Options");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Files");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Complete filesize");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Symlinks");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Directories");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main.tpl */
|
||||
gettext("Complete directorysize");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Basic operations");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Change dir");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Create dir");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Create new file in current directory");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Upload files");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_additional.tpl */
|
||||
gettext("Upload file(s)");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Selected file(s)");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Delete");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Change permission to");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Move to");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_multiple.tpl */
|
||||
gettext("Do it");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_main_rename.tpl */
|
||||
gettext("Rename / Move");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Creating a file in");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Success");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Error");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Filename");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Save file");
|
||||
|
||||
/* templates//Froxlor/webftp/webftp_edit_new.tpl */
|
||||
gettext("Cancel");
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</section>
|
||||
<section class="dboarditem bradiusodd">
|
||||
<h2>{t}Upload files{/t}</h2>
|
||||
<form name="putForm" envtype="multipart/form-data" method="POST" action="webftp.php">
|
||||
<form name="putForm" enctype="multipart/form-data" method="POST" action="webftp.php">
|
||||
<input type="hidden" name="action" value="put" />
|
||||
<input type="hidden" name="currentDir" value="{$currentDir}" />
|
||||
<input type="hidden" name="mode" value="{$mode}" />
|
||||
@@ -77,4 +77,4 @@
|
||||
</form>
|
||||
</section>
|
||||
<br />
|
||||
<section class="dboarditemfull bradiusodd">
|
||||
<section class="dboarditemfull bradiusodd">
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
{if isset($successmessage)}
|
||||
<div class="successcontainer bradius">
|
||||
<div class="successtitle">{t}Success{/t}</div>
|
||||
<div class="success">{$successmessage}</div>
|
||||
<div class="success">{$successmessage|escape:'htmlall'|nl2br}</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($errormessage)}
|
||||
<div class="errorcontainer bradius">
|
||||
<div class="errortitle">{t}Error{/t}</div>
|
||||
<div class="error">{$errormessage}</div>
|
||||
<div class="error">{$errormessage|escape:'htmlall'|nl2br}</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -8,7 +8,7 @@ font-weight: bold;
|
||||
</style>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="10" align="left"><span class="Stil1">{$action_text}</span></td>
|
||||
<td colspan="10" align="left"><span class="Stil1">{$action_text|escape:'htmlall'|nl2br}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="10" align="left">
|
||||
@@ -19,9 +19,8 @@ font-weight: bold;
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="10" align="left"><input type="submit" NAME="yes" VALUE="$language[temp_prompt_yes]"><input type="submit" NAME="no" VALUE="$language[temp_prompt_no]">
|
||||
</td>
|
||||
<td colspan="10" align="left"><input type="submit" name="yes" value="{t}Yes{/t}"><input type="submit" name="no" value="{t}No{/t}"></td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
1
templates_c/.gitignore
vendored
Normal file
1
templates_c/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*
|
||||
0
templates_c/.keep
Normal file
0
templates_c/.keep
Normal file
93
webftp.php
93
webftp.php
@@ -17,6 +17,8 @@
|
||||
// Configuration
|
||||
// Server to connect to:
|
||||
$server = 'localhost';
|
||||
// Connect to the FTP - server via SSL or not
|
||||
$useSsl = false;
|
||||
|
||||
// Temporary directory on the server (need write permissions)
|
||||
$downloadDir = "/tmp/";
|
||||
@@ -30,6 +32,8 @@ $editFileNoExtension = true;
|
||||
$default_mode = "FTP_BINARY";
|
||||
// Max. uploadsize (0 = unlimited)
|
||||
$MAX_FILE_SIZE = 1907300;
|
||||
// The color of a marked row
|
||||
$marked_color = '#FFC2CA';
|
||||
|
||||
header("Content-Type: text/html; charset=utf-8");
|
||||
|
||||
@@ -97,6 +101,7 @@ if ($db->connect_error)
|
||||
}
|
||||
|
||||
$settings = array();
|
||||
/*
|
||||
// Let's get the theme we need
|
||||
if ($result = $db->query("SELECT `value` FROM `panel_settings` WHERE `varname` = 'default_theme'"))
|
||||
{
|
||||
@@ -107,6 +112,9 @@ else
|
||||
// Default will be Froxlor ;)
|
||||
$settings['panel']['default_theme'] = 'Froxlor';
|
||||
}
|
||||
*/
|
||||
# Until we have other themes: enforce the Froxlor - layout
|
||||
$settings['panel']['default_theme'] = 'Froxlor';
|
||||
|
||||
# Initialize Smarty
|
||||
include('./lib/classes/Smarty/Smarty.class.php');
|
||||
@@ -187,7 +195,14 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
$_SESSION['password'] = $_POST['password'];
|
||||
}
|
||||
|
||||
$connection = @ftp_connect($_SESSION['server']);
|
||||
if ($useSsl)
|
||||
{
|
||||
$connection = @ftp_ssl_connect($_SESSION['server']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$connection = @ftp_connect($_SESSION['server']);
|
||||
}
|
||||
$loggedOn = @ftp_login($connection, $_SESSION['user'], $_SESSION['password']);
|
||||
$systype = @ftp_systype($connection);
|
||||
$pasv = @ftp_pasv($connection, false);
|
||||
@@ -367,7 +382,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage = sprintf(_('Directory change to \'%1$s\' failed!'), $file);
|
||||
$errormessage = sprintf(_('Directory change to \'%1$s\' failed!') . "\n", $file);
|
||||
}
|
||||
break;
|
||||
case "get": // Datei dwonload
|
||||
@@ -408,7 +423,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
{
|
||||
if(file_exists($_FILES[$myFile]['tmp_name']) && ($_FILES[$myFile]['size'] > $MAX_FILE_SIZE && $MAX_FILE_SIZE!=0))
|
||||
{
|
||||
$errormessage .= sprintf(_('<strong>File \'%1$s\' is to big!</strong> (max. %2$u bytes)<br />'), $_FILES[$myFile]['name'], $MAX_FILE_SIZE);
|
||||
$errormessage .= sprintf(_('File \'%1$s\' is to big! (max. %2$u bytes)') . "\n", $_FILES[$myFile]['name'], $MAX_FILE_SIZE);
|
||||
}
|
||||
elseif(file_exists($_FILES[$myFile]['tmp_name']))
|
||||
{
|
||||
@@ -423,11 +438,11 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
|
||||
if(!$uploadStatus)
|
||||
{
|
||||
$errormessage .= sprintf(_('<br />File \'%1$s\' couldn\'t be uploaded!'), $_FILES[$myFile]['name']);
|
||||
$errormessage .= sprintf(_('File \'%1$s\' couldn\'t be uploaded!') . "\n", $_FILES[$myFile]['name']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$successmessage .= sprintf(_('<br />File \'%1$s\' was successfully uploaded!'), $_FILES[$myFile]['name']);
|
||||
$successmessage .= sprintf(_('File \'%1$s\' was successfully uploaded!') . "\n", $_FILES[$myFile]['name']);
|
||||
}
|
||||
|
||||
unlink($_FILES[$myFile]['tmp_name']);
|
||||
@@ -437,21 +452,21 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
case "deldir": // Ordner löschen
|
||||
if(ftp_rmdir($connection, html_entity_decode($file)))
|
||||
{
|
||||
$successmessage = sprintf(_('<br />Directory \'%1$s\' deleted!'), $file);
|
||||
$successmessage = sprintf(_('Directory \'%1$s\' deleted!') . "\n", $file);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage = sprintf(_('<br />Directory \'%1$s\' couldn\'t be deleted!'), $file);
|
||||
$errormessage = sprintf(_('Directory \'%1$s\' couldn\'t be deleted!') . "\n", $file);
|
||||
}
|
||||
break;
|
||||
case "delfile": // Datei löschen
|
||||
if (@ftp_delete($connection, $file))
|
||||
{
|
||||
$successmessage = sprintf(_('<br />\'%1$s\' deleted!'), $file);
|
||||
$successmessage = sprintf(_('\'%1$s\' deleted!') . "\n", $file);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage = sprintf(_('<br />\'%1$s\' couldn\'t be deleted!'), $file);
|
||||
$errormessage = sprintf(_('\'%1$s\' couldn\'t be deleted!') . "\n", $file);
|
||||
}
|
||||
break;
|
||||
case "rename": // Datei umbennenen
|
||||
@@ -459,26 +474,26 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
{
|
||||
if (@ftp_rename($connection, $file, $_POST['file2']))
|
||||
{
|
||||
$successmessage = sprintf(_('\'%1$s\' renamed to \'%2$s\''), $file, $_POST['file2']);
|
||||
$successmessage = sprintf(_('\'%1$s\' renamed to \'%2$s\'') . "\n", $file, $_POST['file2']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage = sprintf(_('\'%1$s\' couldn\'t be renamed to \'%2$s\'!'), $file, $_POST['file2']);
|
||||
$errormessage = sprintf(_('\'%1$s\' couldn\'t be renamed to \'%2$s\'!') . "\n", $file, $_POST['file2']);
|
||||
}
|
||||
}
|
||||
elseif($_GET['op']=="show")
|
||||
{
|
||||
$smarty->assign('rename_text', sprintf(_('File \'%1$s\' rename/move to'), $file));
|
||||
$smarty->assign('rename_text', sprintf(_('File \'%1$s\' rename/move to') . "\n", $file));
|
||||
}
|
||||
break;
|
||||
case "createdir": // neuen Ordner erstellen
|
||||
if(@ftp_mkdir($connection, $file))
|
||||
{
|
||||
$successmessage = sprintf(_('Directory \'%1$s\' created'), $file);
|
||||
$successmessage = sprintf(_('Directory \'%1$s\' created') . "\n", $file);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage = sprintf(_('Directory \'%1$s\' couldn\'t be created!'), $file);
|
||||
$errormessage = sprintf(_('Directory \'%1$s\' couldn\'t be created!') . "\n", $file);
|
||||
}
|
||||
break;
|
||||
case "chmod": // Berechtigungen setzen
|
||||
@@ -493,18 +508,18 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
}
|
||||
if ($wrongchmod || strlen($_POST['chmod']) > 3)
|
||||
{
|
||||
$errormessage = sprintf(_('<br />The permission \'%1$s\' you entered is not valid!'), $_POST['file2']);
|
||||
$errormessage = sprintf(_('The permission \'%1$s\' you entered is not valid!') . "\n", $_POST['file2']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$command = "chmod {$_POST['file2']} {$_POST['file']}";
|
||||
if(!$wrongchmod && ftp_site($connection,$command))
|
||||
{
|
||||
$successmessage = sprintf(_('<br />The permission of \'%1$s\' is set to \'%2$s\'!'), $file, $_POST['file2']);
|
||||
$successmessage = sprintf(_('The permission of \'%1$s\' is set to \'%2$s\'!') . "\n", $file, $_POST['file2']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage = sprintf(_('<br />The permission of \'%1$s\' couldn\'t be set to \'%2$s\'!'), $file, $_POST['file2']);
|
||||
$errormessage = sprintf(_('The permission of \'%1$s\' couldn\'t be set to \'%2$s\'!') . "\n", $file, $_POST['file2']);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -524,7 +539,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
}
|
||||
if($wrongchmod || strlen($_POST['chmod'])>3)
|
||||
{
|
||||
$errormessage .= sprintf(_('<br />The permission \'%1$s\' you entered is not valid!'), $_POST['file2']);
|
||||
$errormessage .= sprintf(_('The permission \'%1$s\' you entered is not valid!') . "\n", $_POST['file2']);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -535,11 +550,11 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
$command = "chmod $_POST[chmod] ".$myName;
|
||||
if (ftp_site($connection,$command))
|
||||
{
|
||||
$successmessage .= sprintf(_('<br />The permission of \'%1$s\' is set to \'%2$s\'!'), $myName, $_POST['chmod']);
|
||||
$successmessage .= sprintf(_('The permission of \'%1$s\' is set to \'%2$s\'!') . "\n", $myName, $_POST['chmod']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage .= sprintf(_('<br />The permission of \'%1$s\' couldn\'t be set to \'%2$s\'!'), $myName, $_POST['chmod']);
|
||||
$errormessage .= sprintf(_('The permission of \'%1$s\' couldn\'t be set to \'%2$s\'!') . "\n", $myName, $_POST['chmod']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -564,11 +579,11 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
|
||||
if($del_status)
|
||||
{
|
||||
$successmessage .= sprintf(_('<br />\'%1$s\' deleted!'), $myName);
|
||||
$successmessage .= sprintf(_('\'%1$s\' deleted!') . "\n", $myName);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage .= sprintf(_('<br />\'%1$s\' couldn\'t be deleted!'), $myName);
|
||||
$errormessage .= sprintf(_('\'%1$s\' couldn\'t be deleted!') . "\n", $myName);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -588,18 +603,18 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
{
|
||||
if(ftp_rename($connection, $myName,$_POST['move_to'].$myName))
|
||||
{
|
||||
$successmessage .= sprintf(_('<br />File \'%1$s\' moved'), $myName);
|
||||
$successmessage .= sprintf(_('File \'%1$s\' moved') . "\n", $myName);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage .= sprintf(_('<br />File \'%1$s\' couldn\'t be moved'), $myName);
|
||||
$errormessage .= sprintf(_('File \'%1$s\' couldn\'t be moved') . "\n", $myName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage = sprintf(_('The directory \'%1$s\' doesn\'t exist'), $_POST['move_to']);
|
||||
$errormessage = sprintf(_('The directory \'%1$s\' doesn\'t exist') . "\n", $_POST['move_to']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -643,7 +658,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
if(!$downloadStatus)
|
||||
{
|
||||
fclose($fp);
|
||||
$errormessage = sprintf(_('File \'%1$s\' couldn\'t be downloaded!'), $file);
|
||||
$errormessage = sprintf(_('File \'%1$s\' couldn\'t be downloaded!') . "\n", $file);
|
||||
$myFileContent = '';
|
||||
}
|
||||
else
|
||||
@@ -680,18 +695,18 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
|
||||
if(!$uploadStatus)
|
||||
{
|
||||
$errormessage = sprintf(_('File \'%1$s\' couldn\'t be saved!'), $file);
|
||||
$errormessage = sprintf(_('File \'%1$s\' couldn\'t be saved!') . "\n", $file);
|
||||
}
|
||||
else
|
||||
{
|
||||
$successmessage = sprintf(_('File \'%1$s\' was saved succesfully!'), $file);
|
||||
$successmessage = sprintf(_('File \'%1$s\' was saved succesfully!') . "\n", $file);
|
||||
}
|
||||
unlink($downloadDir . killslashes(html_entity_decode($file))."_".$s);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$errormessage = sprintf(_('Files with these extension can\'t be created/edited!'), $file);
|
||||
$errormessage = sprintf(_('Files with this extension can\'t be created/edited!') . "\n", $file);
|
||||
}
|
||||
|
||||
if((isset($_GET['op']) && $_GET['op'] != "new") && (isset($_POST['op']) && $_POST['op'] != "new"))
|
||||
@@ -699,7 +714,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
if($file == "")
|
||||
{
|
||||
$editAble = false;
|
||||
$errormessage = _('Please enter a filename!');
|
||||
$errormessage = _('Please enter a filename!') . "\n";
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -762,7 +777,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
$countArray['dirsize'] += $myDir['size'];
|
||||
$fileAction = "cd";
|
||||
$fileName = $myDir["name"];
|
||||
if(is_array($file) && val_in_array($fileName, $file))
|
||||
if(is_array($file) && in_array($fileName, $file))
|
||||
{
|
||||
$smarty->assign('checked', 'checked');
|
||||
$smarty->assign('checked_color', "bgcolor=\"".$marked_color."\"");
|
||||
@@ -786,7 +801,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
$countArray['link']++;
|
||||
$fileAction = "cd";
|
||||
$fileName = $myDir["target"];
|
||||
if (is_array($file) && val_in_array($fileName, $file))
|
||||
if (is_array($file) && in_array($fileName, $file))
|
||||
{
|
||||
$smarty->assign('checked', 'checked');
|
||||
$smarty->assign('checked_color', "bgcolor=\"".$marked_color."\"");
|
||||
@@ -811,7 +826,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
$countArray['filesize'] += $myDir['size'];
|
||||
$fileAction = "get";
|
||||
$fileName = $myDir["name"];
|
||||
if (is_array($file) && val_in_array($fileName, $file))
|
||||
if (is_array($file) && in_array($fileName, $file))
|
||||
{
|
||||
$smarty->assign('checked', 'checked');
|
||||
$smarty->assign('checked_color', "bgcolor=\"".$marked_color."\"");
|
||||
@@ -856,7 +871,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
|
||||
if($action == "rename" && $_GET['op']=="show")
|
||||
{
|
||||
$body .= $smarty->fetch('webftp/webftp_main_rename');
|
||||
$body .= $smarty->fetch('webftp/webftp_main_rename.tpl');
|
||||
}
|
||||
$smarty->assign('output_dir', $output_dir);
|
||||
$smarty->assign('output_link', $output_link);
|
||||
@@ -868,20 +883,20 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
{
|
||||
if($_POST['op']=="delete")
|
||||
{
|
||||
$smarty->assign('action_text', _('Do you really want to delete the selected files?'));
|
||||
$smarty->assign('action_text', _('Do you really want to delete the selected files?') . "\n");
|
||||
}
|
||||
elseif($_POST['op']=="move")
|
||||
{
|
||||
$smarty->assign('action_text', sprintf(_('Do you really want to move the selected files to \'%1$s\'?'), $_POST['move_to']));
|
||||
$smarty->assign('action_text', sprintf(_('Do you really want to move the selected files to \'%1$s\'?') . "\n", $_POST['move_to']));
|
||||
$smarty->assign('move_to', $_POST['move_to']);
|
||||
}
|
||||
elseif($_POST['op']=="chmod")
|
||||
{
|
||||
$smarty->assign('action_text', sprintf(_('Do you really want to set the permission of the selected files to \'%1$s\'?'), $_POST['chmod']));
|
||||
$smarty->assign('action_text', sprintf(_('Do you really want to set the permission of the selected files to \'%1$s\'?') . "\n", $_POST['chmod']));
|
||||
$smarty->assign('chmod', $_POST['chmod']);
|
||||
}
|
||||
$smarty->assign('op', $_POST['op']);
|
||||
$body .= $smarty->fetch('webftp/webftp_main_prompt');
|
||||
$body .= $smarty->fetch('webftp/webftp_main_prompt.tpl');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -900,7 +915,7 @@ elseif ((!empty($_POST['loginname']) && !empty($_POST['password'])) || (!empty($
|
||||
}
|
||||
else
|
||||
{
|
||||
$smarty->assign('errormessage', _('Login failed, please try again'));
|
||||
$smarty->assign('errormessage', _('Login failed, please try again') . "\n");
|
||||
session_destroy();
|
||||
$body = $smarty->fetch('login/login_ftp.tpl');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user