Added first rework of webftp - module, please not, this still needs a hell lot of work, but anyway: fixes #819

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2011-06-23 10:30:59 +02:00
parent 6e84ca4ae4
commit 961aad43d1
22 changed files with 1992 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

View File

@@ -0,0 +1,357 @@
msgid ""
msgstr ""
"Project-Id-Version: Froxlor\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-06-23 10:05+0100\n"
"PO-Revision-Date: 2011-06-23 10:11+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"
#: smarty.c:2
msgid "Froxlor Server Management Panel"
msgstr "Froxlor Server Management Panel"
#: smarty.c:5
#: smarty.c:26
#: smarty.c:41
#: smarty.c:80
msgid "Success"
msgstr "Erfolgreich"
#: smarty.c:8
#: smarty.c:29
#: smarty.c:44
#: smarty.c:83
msgid "Error"
msgstr "Fehler"
#: smarty.c:11
msgid "Froxlor - WebFTP - Login"
msgstr "Froxlor - WebFTP - Login"
#: smarty.c:14
msgid "Username"
msgstr "Benutzername"
#: smarty.c:17
msgid "Password"
msgstr "Passwort"
#: smarty.c:20
msgid "Login"
msgstr "Login"
#: smarty.c:23
msgid "Editing"
msgstr "Bearbeiten"
#: smarty.c:32
#: smarty.c:50
msgid "Save file"
msgstr "Datei speichern"
#: smarty.c:35
#: smarty.c:53
msgid "Cancel"
msgstr "Abbrechen"
#: smarty.c:38
msgid "Creating a file in"
msgstr "Erstellt eine Datei in"
#: smarty.c:47
#: smarty.c:107
msgid "Filename"
msgstr "Dateiname"
#: smarty.c:56
#: smarty.c:62
#: smarty.c:71
#: smarty.c:146
msgid "Delete"
msgstr "Löschen"
#: smarty.c:59
#: smarty.c:65
#: smarty.c:74
msgid "Rename"
msgstr "Umbenennen"
#: smarty.c:68
msgid "Symbolic link to"
msgstr "Symlink nach"
#: smarty.c:77
msgid "Edit"
msgstr "Bearbeiten"
#: smarty.c:86
msgid "Basic operations"
msgstr "Standard Operationen"
#: smarty.c:89
msgid "Change dir"
msgstr "Verzeichnis wechseln"
#: smarty.c:92
msgid "Create dir"
msgstr "Verzeichnis erstellen"
#: smarty.c:95
msgid "Create new file in current directory"
msgstr "Neue Datei in aktuellem Verzeichnis erstellen"
#: smarty.c:98
msgid "Upload files"
msgstr "Dateien hochladen"
#: smarty.c:101
msgid "Upload file(s)"
msgstr "Datei(en) hochladen"
#: smarty.c:104
msgid "Rename / Move"
msgstr "Umbenennen / Verschieben"
#: smarty.c:110
msgid "Size"
msgstr "Größe"
#: smarty.c:113
msgid "Date"
msgstr "Datum"
#: smarty.c:116
msgid "Permissions"
msgstr "Berechtigungen"
#: smarty.c:119
msgid "User"
msgstr "Benutzer"
#: smarty.c:122
msgid "Group"
msgstr "Gruppe"
#: smarty.c:125
msgid "Options"
msgstr "Optionen"
#: smarty.c:128
msgid "Files"
msgstr "Dateien"
#: smarty.c:131
msgid "Complete filesize"
msgstr "Komplette Dateigröße"
#: smarty.c:134
msgid "Symlinks"
msgstr "Symlinks"
#: smarty.c:137
msgid "Directories"
msgstr "Verzeichnisse"
#: smarty.c:140
msgid "Complete directorysize"
msgstr "Komplette Verzeichnisgröße"
#: smarty.c:143
msgid "Selected file(s)"
msgstr "Markierte Datei(en)"
#: smarty.c:149
msgid "Change permission to"
msgstr "Berechtigungen ändern zu"
#: smarty.c:152
msgid "Move to"
msgstr "Verschieben nach"
#: smarty.c:155
msgid "Do it"
msgstr "Tu es"
#: smarty.c:158
msgid "the Froxlor Team"
msgstr "das Froxlor Team"
#: webftp.php:333
#: webftp.php:340
#: webftp.php:420
#, php-format
msgid "Directory change to '%1$s' failed!"
msgstr "Verzeichniswechsel nach '%1$s' fehlgeschlagen!"
#: webftp.php:347
#: webftp.php:359
#: webftp.php:365
#: webftp.php:416
#, php-format
msgid "current folder = [%1$s]"
msgstr "aktuelles Verzeichnis = [%1$s]"
#: webftp.php:461
#, php-format
msgid "<strong>File '%1$s' is to big!</strong> (max. %2$u bytes)<br />"
msgstr "<strong>Datei '%1$s' ist zu groß!</strong> (max. %2$u Bytes)<br />"
#: webftp.php:476
#, php-format
msgid "<br />File '%1$s' couldn't be uploaded!"
msgstr "<br />Datei '%1$s' konnte nicht hochgeladen werden!"
#: webftp.php:480
#, php-format
msgid "<br />File '%1$s' was successfully uploaded!"
msgstr "<br />Datei '%1$s' wurde erfolgreich hochgeladen!"
#: webftp.php:490
#, php-format
msgid "<br />Directory '%1$s' deleted!"
msgstr "<br />Verzeichnis '%1$s' gelöscht!"
#: webftp.php:494
#, php-format
msgid "<br />Directory '%1$s' couldn't be deleted!"
msgstr "<br />Verzeichnis '%1$s' konnt nicht gelöscht werden!"
#: webftp.php:500
#: webftp.php:617
#, php-format
msgid "<br />'%1$s' deleted!"
msgstr "<br />'%1$s' gelöscht!"
#: webftp.php:504
#: webftp.php:621
#, php-format
msgid "<br />'%1$s' couldn't be deleted!"
msgstr "<br />'%1$s' konnt nicht gelöscht werden!"
#: webftp.php:512
#, php-format
msgid "'%1$s' renamed to '%2$s'"
msgstr "'%1$s' wurde umbenannt noch '%2$s'"
#: webftp.php:516
#, php-format
msgid "'%1$s' couldn't be renamed to '%2$s'!"
msgstr "'%1$s' konnt nicht nach '%2$s' umbenannt werden"
#: webftp.php:521
#, php-format
msgid "File '%1$s' rename/move to"
msgstr "Datei '%1$s' verschoben nach"
#: webftp.php:527
#, php-format
msgid "Directory '%1$s' created"
msgstr "Verzeichnis '%1$s' erstellt"
#: webftp.php:531
#, php-format
msgid "Directory '%1$s' couldn't be created!"
msgstr "Verzeichnis '%1$s' konnte nicht erstellt werden!"
#: webftp.php:546
#: webftp.php:577
#, php-format
msgid "<br />The permission '%1$s' you entered is not valid!"
msgstr "<br />Die eingegebenen Berechtigungen '%1$s' sind nicht valide!"
#: webftp.php:553
#: webftp.php:588
#, php-format
msgid "<br />The permission of '%1$s' is set to '%2$s'!"
msgstr "<br />Die Berechtigungen von '%1$s' wurden auf '%2$s' gesetzt!"
#: webftp.php:557
#: webftp.php:592
#, php-format
msgid "<br />The permission of '%1$s' couldn't be set to '%2$s'!"
msgstr "<br />Die Berechtigungen für '%1$s' konnten nicht auf '%2$s' gesetzt werden "
#: webftp.php:641
#, php-format
msgid "<br />File '%1$s' moved"
msgstr "<br />Datei '%1$s' verschoben"
#: webftp.php:645
#, php-format
msgid "<br />File '%1$s' couldn't be moved"
msgstr "<br />Die Datei '%1$s' konnte nicht verschoben werden"
#: webftp.php:652
#, php-format
msgid "The directory '%1$s' doesn't exist"
msgstr "Das Verzeichnis '%1$s' existiert nicht"
#: webftp.php:696
#, php-format
msgid "File '%1$s' couldn't be downloaded!"
msgstr "Die Datei '%1$s' konnte nicht heruntergeladen werden!"
#: webftp.php:733
#, php-format
msgid "File '%1$s' couldn't be saved!"
msgstr "Die Datei '%1$s' konnte nicht gespeichert werden!"
#: webftp.php:737
#, php-format
msgid "File '%1$s' was saved succesfully!"
msgstr "Die Datei '%1$s' wurde erfolgreich gespeichert!"
#: webftp.php:744
#, php-format
msgid "Files with these extension can't be created/edited!"
msgstr "Dateien mit dieser Endung können nicht erstellt / bearbeitet werden!"
#: webftp.php:752
msgid "Please enter a filename!"
msgstr "Bitte einen Dateinamen eingeben!"
#: webftp.php:902
#, php-format
msgid "Connected to %1$s"
msgstr "Verbunden mit %1$s"
#: webftp.php:921
msgid "Do you really want to delete the selected files?"
msgstr "Sollen die markierten Dateien wirklich gelöscht werden?"
#: webftp.php:925
#, 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:930
#, 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:941
msgid "Logout"
msgstr "Logout"
#: webftp.php:943
msgid "Switch to BINARY mode"
msgstr "Auf BINARY - Modus wechseln"
#: webftp.php:945
msgid "Switch to ASCII mode"
msgstr "Auf ASCII - Modus wechseln"
#: webftp.php:947
msgid "Main"
msgstr "Hauptmenü"

159
smarty.c Normal file
View File

@@ -0,0 +1,159 @@
/* templates/Froxlor/login/login_ftp.tpl */
gettext("Froxlor Server Management Panel");
/* templates/Froxlor/login/login_ftp.tpl */
gettext("Success");
/* templates/Froxlor/login/login_ftp.tpl */
gettext("Error");
/* templates/Froxlor/login/login_ftp.tpl */
gettext("Froxlor - WebFTP - Login");
/* templates/Froxlor/login/login_ftp.tpl */
gettext("Username");
/* templates/Froxlor/login/login_ftp.tpl */
gettext("Password");
/* 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 */
gettext("the Froxlor Team");

View File

@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="Default-Style" content="text/css" />
{if $settings.panel.no_robots == 0}
<meta name="robots" content="noindex, nofollow, noarchive" />
<meta name="GOOGLEBOT" content="nosnippet" />
{/if}
<link rel="stylesheet" href="templates/Froxlor/froxlor.css" />
<!--[if IE]><link rel="stylesheet" href="templates/Froxlor/froxlor_ie.css" /><![endif]-->
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script type="text/javascript" src="templates/Froxlor/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/Froxlor/js/froxlor.js"></script>
<title>{$title}Froxlor Server Management Panel</title>
</head>
<body>
{if $loggedin == 1}
<header class="topheader">
<hgroup>
<h1>Froxlor Server Management Panel</h1>
</hgroup>
<img src="{$header_logo}" alt="Froxlor Server Management Panel" />
</header>
<nav>{$navigation}</nav>
{/if}
{if $loggedin}
<div class="main bradiusodd">
{else}
<div class="loginpage">
{/if}
{$body}
</div>
<footer>
<span>Froxlor
{if ($settings.admin.show_version_login == '1' && $loggedin == 0) || ($settings.admin.show_version_footer == '1' && $loggedin == 1)}
{$version}{$branding}
{/if}
&copy; 2009-{$current_year} by <a href="http://www.froxlor.org/" rel="external">{t}the Froxlor Team{/t}</a>
</span>
</footer>
</body>
</html>

View File

@@ -0,0 +1,41 @@
<article class="login bradius">
<header class="dark">
<img src="{$header_logo}" alt="{t}Froxlor Server Management Panel{/t}" />
</header>
{if isset($successmessage)}
<div class="successcontainer bradius">
<div class="successtitle">{t}Success{/t}</div>
<div class="success">{$successmessage}</div>
</div>
{/if}
{if isset($message)}
<div class="errorcontainer bradius">
<div class="errortitle">{t}Error{/t}</div>
<div class="error">{$message}</div>
</div>
{/if}
<section class="loginsec">
<form method="post" action="webftp.php" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>{t}Froxlor - WebFTP - Login{/t}</legend>
<p>
<label for="loginname">{t}Username{/t}:</label>&nbsp;
<input type="text" name="loginname" id="loginname" value="" required/>
</p>
<p>
<label for="password">{t}Password{/t}:</label>&nbsp;
<input type="password" name="password" id="password" required/>
</p>
<p class="submit">
<input type="hidden" name="send" value="send" />
<input type="submit" value="{t}Login{/t}" />
</p>
</fieldset>
</form>
<aside>&nbsp;</aside>
</section>
</article>

View File

@@ -0,0 +1,33 @@
<article>
<header>
<h2>
<img src="images/Froxlor/icons/group_edit.png" alt="" />&nbsp;
{t}Editing{/t}: <a href="webftp.php?action=cd&amp;file={$currentDir}">{$currentDir}</a>/{$file} ({$mode})
</h2>
</header>
{if isset($successmessage)}
<div class="successcontainer bradius">
<div class="successtitle">{t}Success{/t}</div>
<div class="success">{$successmessage}</div>
</div>
{/if}
{if isset($errormessage)}
<div class="errorcontainer bradius">
<div class="errortitle">{t}Error{/t}</div>
<div class="error">{$errormessage}</div>
</div>
{/if}
<section >
<form name="editForm" method="POST" action="webftp.php">
<input type="hidden" name="action" value="edit" />
<input type="hidden" name="op" value="save" />
<input type="hidden" name="currentDir" value="{$currentDir}" />
<input type="hidden" name="file" value="{$file}" />
<input type="hidden" name="mode" value="{$mode}" />
<textarea name="fileContent" cols="80" rows="40" wrap="OFF" id="fileContent">{$myFileContent}</textarea>
<br>
<input type="submit" name="Submit" value="{t}Save file{/t}" />
<input type="button" name="Submit2" value="{t}Cancel{/t}" onClick="javascript:document.location.href='webftp.php?action=cd&amp;file={$currentDir}'" />
</form>
</section>
</article>

View File

@@ -0,0 +1,34 @@
<article>
<header>
<h2>
<img src="images/Froxlor/icons/group_edit.png" alt="" />&nbsp;
{t}Creating a file in{/t}: <a href="webftp.php?action=cd&amp;file={$currentDir}">{$currentDir}</a> ({$mode})
</h2>
</header>
{if isset($successmessage)}
<div class="successcontainer bradius">
<div class="successtitle">{t}Success{/t}</div>
<div class="success">{$successmessage}</div>
</div>
{/if}
{if isset($errormessage)}
<div class="errorcontainer bradius">
<div class="errortitle">{t}Error{/t}</div>
<div class="error">{$errormessage}</div>
</div>
{/if}
<section >
<form name="editForm" method="POST" action="webftp.php">
<input type="hidden" name="action" value="edit" />
<input type="hidden" name="op" value="save" />
<input type="hidden" name="currentDir" value="{$currentDir}">
<input type="hidden" name="mode" name="{$mode}">
<textarea name="fileContent" cols="80" rows="40" id="fileContent"></textarea>
<br />
<legend for="filename">{t}Filename{/t}:</legend>
<input type="text" id="filename" name="file" value="{$file}" />
<input type="submit" name="Submit" value="{t}Save file{/t}" />
<input type="button" name="Submit2" value="{t}Cancel{/t}" onClick="javascript:document.location.href='webftp.php?action=cd&amp;file={$currentDir}'" />
</form>
</section>
</article>

View File

@@ -0,0 +1,43 @@
<form name="putmForm" method="POST" action="webftp.php">
<input type="hidden" name="op" value="delete"/>
<input type="hidden" name="action" value="multiple" />
<input type="hidden" name="currentDir" value="{$currentDir}" />
<input type="hidden" name="mode" value="{$mode}" />
<table class="bradiusodd">
<thead>
<tr>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>{t}Filename{/t}</th>
<th>{t}Size{/t}</th>
<th>{t}Date{/t}</th>
<th>{t}Permissions{/t}</th>
<th>{t}User{/t}</th>
<th>{t}Group{/t}</th>
<th colspan="4">{t}Options{/t}</th>
</tr>
</thead>
<tbody>
<tr>
<td>&nbsp;</td>
<td>
<a href="webftp.php?action=cd&amp;file=..&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/parent.gif" height="20" width="20" align="top" border="0"></a>
</td>
<td align="left" colspan="10">
<a href="webftp.php?action=cd&amp;file=..&amp;currentDir={$currentDir}">..</a>
</td>
</tr>
{$output_dir}
{$output_link}
{$output_file}
</tbody>
<tfoot>
<tr>
<td colspan="12">
{t}Files{/t}: <strong>{$countArray.file}</strong>; {t}Complete filesize{/t}: <strong>{$countArray.filesize}</strong>; {t}Symlinks{/t}: <strong>{$countArray.link}</strong>; {t}Directories{/t}: <strong>{$countArray.dir}</strong>; {t}Complete directorysize{/t}: <strong>{$countArray.dirsize}</strong>
</td>
</tr>
</tfoot>
</table>
<br />
<hr />

View File

@@ -0,0 +1,80 @@
<article>
<section class="dboarditem bradiusodd">
<h2>{t}Basic operations{/t}</h2>
<table>
<tr>
<td>
<form name="cdDirect" method="POST" action="webftp.php">
<input type="hidden" name="action" value="cddirect" />
<input type="hidden" name="currentDir" value="{$currentDir}" />
<input type="text" name="file" value="" style="width:170px;" />
<input name="submit" type="submit" style="width: 150;" value="{t}Change dir{/t}" />
</form>
</td>
</tr>
<tr>
<td>
<form name="dirinput" method="POST" action="webftp.php">
<input type="hidden" name="action" value="createdir" />
<input type="hidden" name="currentDir" value="{$currentDir}" style="width=150;" />
<input type="hidden" name="mode" value="{$mode}" />
<input type="text" name="file" value="" style="width:170px;" />
<input name="submit" type="submit" style="width: 150;" value="{t}Create dir{/t}" />
</form>
</td>
</tr>
<tr>
<td>
<form name="newfile" method="POST" action="webftp.php">
<input type="hidden" name="currentDir" value="{$currentDir}" />
<input type="hidden" name="action" value="edit" />
<input type="hidden" name="op" value="new" />
<input type="text" name="file" value="file.txt" style="width:170px;" />
<input name="submit" type="submit" style="width: 150;" value="{t}Create new file in current directory{/t}">
</form>
</td>
</tr>
</table>
</section>
<section class="dboarditem bradiusodd">
<h2>{t}Upload files{/t}</h2>
<form name="putForm" envtype="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}" />
<table>
<tr>
<td valign="top">
<input type="file" name="file1" />
</td>
</tr>
<tr>
<td valign="top">
<input type="file" name="file2" />
</td>
</tr>
<tr>
<td valign="top">
<input type="file" name="file3" />
</td>
</tr>
<tr>
<td valign="top">
<input type="file" name="file4" />
</td>
</tr>
<tr>
<td valign="top">
<input type="file" name="file5" />
</td>
</tr>
<tr>
<td valign="top">
<input name="submit2" type="submit" style="width: 150;" value="{t}Upload file(s){/t}">
</td>
</tr>
</table>
</form>
</section>
<br />
<section class="dboarditemfull bradiusodd">

View File

@@ -0,0 +1,14 @@
<tr {$checked_color}>
<td><input type="checkbox" name="file[]" value="{$myDir.name}" {$checked} /></td>
<td><a href="webftp.php?action=cd&amp;file={$myDir.name}&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/folder.gif" align="top" border="0" /></a></td>
<td><a href="webftp.php?action=cd&amp;file={$myDir.name}&amp;currentDir={$currentDir}">{$myDir.name}</a></td>
<td align=right>{$myDir.size}</td>
<td>{$myDir.date}</td>
<td>{$myDir.perms}</td>
<td>{$myDir.user}</td>
<td>{$myDir.group}</td>
<td><a href="webftp.php?action=deldir&amp;file={$myDir.name}&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/delete.png" border="0" alt="{t}Delete{/t}" /></a></td>
<td><a href="webftp.php?action=rename&amp;op=show&amp;file={$myDir.name}&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/rename.gif" border="0" alt="{t}Rename{/t}" /></a></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

View File

@@ -0,0 +1,14 @@
<tr {$checked_color}>
<td><input type="checkbox" name="file[]" value="{$myDir.name}" {$checked} /></td>
<td><a href="webftp.php?action=get&amp;file={$myDir.name}&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/file.gif" align="top" border="0" /></a></td>
<td><a href="webftp.php?action=get&amp;file={$myDir.name}&amp;currentDir={$currentDir}">{$myDir.name}</a></td>
<td align=right>{$myDir.size}</td>
<td>{$myDir.date}</td>
<td>{$myDir.perms}</td>
<td>{$myDir.user}</td>
<td>{$myDir.group}</td>
<td><a href="webftp.php?action=delfile&amp;file={$myDir.name}&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/delete.png" border="0" alt="{t}Delete{/t}"></a></td>
<td><a href="webftp.php?action=rename&amp;op=show&amp;file={$myDir.name}&currentDir={$currentDir}"><img src="{$image_folder}/icons/rename.gif" border="0" alt="{t}Rename{/t}"></a></td>
<td>{if $editable}<a href="webftp.php?action=edit&amp;op=open&amp;file={$myDir.name}&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/edit.png" border="0" alt="{t}Edit{/t}"></a>{/if}</td>
<td>&nbsp;</td>
</tr>

View File

@@ -0,0 +1,19 @@
<article>
<header>
<h2>
<img src="images/Froxlor/icons/group_edit.png" alt="" />&nbsp;
{$connected_to} ({$mode})
</h2>
</header>
{if isset($successmessage)}
<div class="successcontainer bradius">
<div class="successtitle">{t}Success{/t}</div>
<div class="success">{$successmessage}</div>
</div>
{/if}
{if isset($errormessage)}
<div class="errorcontainer bradius">
<div class="errortitle">{t}Error{/t}</div>
<div class="error">{$errormessage}</div>
</div>
{/if}

View File

@@ -0,0 +1,13 @@
<tr {$checked_color}>
<td><input type="checkbox" name="file[]" value="{$myDir.name}" {$checked} /></td>
<td><a href="webftp.php?action=cd&amp;file={$myDir.name}&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/link.gif" align="top" border="0" /></a></td>
<td><a href="webftp.php?action=cd&amp;file={$myDir.name}&amp;currentDir={$currentDir}">{$myDir.name}</a></td>
<td align=right>{$myDir.size}</td>
<td>{$myDir.date}</td>
<td>{$myDir.perms}</td>
<td>{$myDir.user}</td>
<td>{$myDir.group}</td>
<td><a href="webftp.php?action=deldir&amp;file={$myDir.name}&amp;currentDir={$currentDir}"><img src="{$image_folder}/icons/delete.png" border="0" alt="{t}Delete{/t}"></a></td>
<td><a href="webftp.php?action=rename&amp;op=show&amp;file={$myDir.name}&currentDir={$currentDir}"><img src="{$image_folder}/icons/rename.gif" border="0" alt="{t}Rename{/t}"></a></td>
<td colspan="2">{t}Symbolic link to{/t}: {$myDir.target}&nbsp;</td>
</tr>

View File

@@ -0,0 +1,30 @@
<table cellpadding="0" cellspacing="0">
<tr>
<td colspan="10" align="left">{t}Selected file(s){/t}:</td>
</tr>
<tr>
<td colspan="10" align="left">
<input type="radio" name="op" value="delete" />{t}Delete{/t}
</td>
</tr>
<tr>
<td colspan="10" align="left">
<input name="op" type="radio" value="chmod" />
<input type="text" name="chmod" value="755" maxlength="3" size="5" />{t}Change permission to{/t}
</td>
</tr>
<tr>
<td colspan="10" align="left">
<input name="op" type="radio" value="move" checked="checked" />
<input name="move_to" type="text" id="move_to" value="{$currentDir}" size="30" />{t}Move to{/t}
</td>
</tr>
<tr>
<td colspan="10" align="left">
<input type="submit" name="submit" value="{t}Do it{/t}" />
</td>
</tr>
</table>
</form>
</section>
</article>

View File

@@ -0,0 +1,27 @@
<style type="text/css">
<!--
.Stil1 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
<table cellpadding="0" cellspacing="0">
<tr>
<td colspan="10" align="left"><span class="Stil1">{$action_text}</span></td>
</tr>
<tr>
<td colspan="10" align="left">
&nbsp;<input type="hidden" name="chmod" value="{$chmod}" />
<input type="hidden" name="move_to" value="{$move_to}" />
<input type="hidden" name="action" value="multiple">
<input type="hidden" name="op" value="{$op}" />
</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>
</tr>
</tr>
</table>
</form>

View File

@@ -0,0 +1,20 @@
<table border="0" cellspacing="2" cellpadding="2">
<form name="rename" method="post" action="webftp.php">
<tr>
<td>
<input type="hidden" name="op" value="do" />
<input type="hidden" name="action" value="rename" />
<input type="hidden" name="file" value="{$file}" />
<input type="hidden" name="currentDir" value="{$currentDir}" />
{$rename_text}
</td>
<td>
<input type="text" name="file2" value="{$file}" />
</td>
<td>
<input type="submit" name="submit" value="{t}Rename / Move{/t}">
</td>
</tr>
</form>
</table>
<hr />

1062
webftp.php Normal file

File diff suppressed because it is too large Load Diff