Moved the Agents into their own repo. Kept the agent.pl just for reference
|
|
@ -1,37 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/admin1.template.php begin -->
|
||||
|
||||
<input type="hidden" name="input_admin_username" value="<?php echo $input_admin_username; ?>" />
|
||||
<input type="hidden" name="input_admin_password" value="<?php echo $input_admin_password; ?>" />
|
||||
|
||||
<h2><?php echo __("Version information"); ?></h2><br />
|
||||
<div style="border: 1px solid black; background-color: #DDDDDD; margin-top: 10px; margin-<?php echo __("left"); ?>: 100px; margin-<?php echo __("right"); ?>: 100px; padding: 10px;">
|
||||
<table border="0" cellspacing="2" cellpadding="2"><tr><td>
|
||||
<script type="text/javascript"><!--
|
||||
var current_build = <?php echo $application_build_nr; ?>;
|
||||
if (typeof(latest_stable_build)!="undefined" && typeof(latest_beta_build)!="undefined") {
|
||||
if (latest_stable_build > current_build) {
|
||||
document.write('There is a <a href="' + latest_stable_url + '"> new stable version<\/a> of net2ftp available for download (' + latest_stable_version + ').<br \/>');
|
||||
}
|
||||
else if (latest_beta_build > current_build) {
|
||||
document.write('There is a <a href="' + latest_beta_url + '">new beta version<\/a> of net2ftp available for download (' + latest_beta_version + ').<br \/>');
|
||||
}
|
||||
else {
|
||||
document.write('<?php echo __("This version of net2ftp is up-to-date."); ?><br />');
|
||||
}
|
||||
}
|
||||
else {
|
||||
document.write('<?php echo __("The latest version information could not be retrieved from the net2ftp.com server. Check the security settings of your browser, which may prevent the loading of a small file from the net2ftp.com server."); ?><br />');
|
||||
}
|
||||
//--></script>
|
||||
</td></tr></table>
|
||||
</div><br /><br />
|
||||
<h2><?php echo __("Logging"); ?></h2><br />
|
||||
<?php echo __("Date from:"); ?> <input type="text" name="datefrom" value="<?php echo $datefrom; ?>" /> <?php echo __("to:"); ?> <input type="text" name="dateto" value="<?php echo $dateto; ?>" />
|
||||
<input type="button" class="button" value="<?php echo __("View logs"); ?>" onclick="document.forms['AdminForm'].state.value='admin_viewlogs'; document.forms['AdminForm'].submit();" />
|
||||
<input type="button" class="button" value="<?php echo __("Empty logs"); ?>" onclick="document.forms['AdminForm'].state.value='admin_emptylogs'; document.forms['AdminForm'].submit();" /><br />
|
||||
<br /><br />
|
||||
<h2><?php echo __("Setup MySQL tables"); ?></h2><br />
|
||||
<input type="button" class="smallbutton" value="<?php echo __("Go"); ?>" onclick="document.forms['AdminForm'].state.value='admin_createtables'; document.forms['AdminForm'].submit();" /> <?php echo __("Create the MySQL database tables"); ?><br /><br />
|
||||
|
||||
<!-- Template /skins/blue/admin1.template.php end -->
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/admin_createtables1.template.php begin -->
|
||||
|
||||
<input type="hidden" name="input_admin_username" value="<?php echo $input_admin_username; ?>" />
|
||||
<input type="hidden" name="input_admin_password" value="<?php echo $input_admin_password; ?>" />
|
||||
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["admin_createtables"]); $i++) {
|
||||
echo $net2ftp_output["admin_createtables"][$i] . "<br />\n";
|
||||
} // end for ?>
|
||||
|
||||
<?php echo __("Please enter your MySQL settings:"); ?><br /><br />
|
||||
|
||||
<table>
|
||||
<tr><td><?php echo __("MySQL username"); ?></td><td> <input type="text" name="dbusername2" value="<?php echo $dbusername2; ?>" /></td></tr>
|
||||
<tr><td><?php echo __("MySQL password"); ?></td><td> <input type="password" name="dbpassword2" value="<?php echo $dbpassword2; ?>" /></td></tr>
|
||||
<tr><td><?php echo __("MySQL database"); ?></td><td> <input type="text" name="dbname2" value="<?php echo $dbname2; ?>" /></td></tr>
|
||||
<tr><td><?php echo __("MySQL server"); ?></td> <td> <input type="text" name="dbserver2" value="<?php echo $dbserver2; ?>" /></td></tr>
|
||||
</table><br /><br />
|
||||
|
||||
<?php echo __("This SQL query is going to be executed:"); ?><br /><br />
|
||||
<textarea name="text" class="edit" rows="10" cols="100" wrap="off">
|
||||
<?php echo $sqlquerystring; ?>
|
||||
</textarea><br /><br />
|
||||
|
||||
<!-- Template /skins/blue/admin_createtables1.template.php end -->
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/admin_createtables2.template.php begin -->
|
||||
|
||||
<input type="hidden" name="input_admin_username" value="<?php echo $input_admin_username; ?>" />
|
||||
<input type="hidden" name="input_admin_password" value="<?php echo $input_admin_password; ?>" />
|
||||
<input type="hidden" name="dbusername2" value="<?php echo $dbusername2_html; ?>" />
|
||||
<input type="hidden" name="dbpassword2" value="<?php echo $dbpassword2_html; ?>" />
|
||||
<input type="hidden" name="dbname2" value="<?php echo $dbname2_html; ?>" />
|
||||
<input type="hidden" name="dbserver2" value="<?php echo $dbserver2_html; ?>" />
|
||||
|
||||
<div class="header31"><?php echo __("Settings used:"); ?></div>
|
||||
<?php echo __("MySQL username"); ?>: <?php echo $dbusername2; ?><br />
|
||||
<?php echo __("MySQL password length"); ?>: <?php echo $dbpassword2_length; ?><br />
|
||||
<?php echo __("MySQL database"); ?>: <?php echo $dbname2; ?><br />
|
||||
<?php echo __("MySQL server"); ?>: <?php echo $dbserver2; ?><br /><br />
|
||||
|
||||
<div class="header31"><?php echo __("Results:"); ?></div>
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["admin_createtables"]); $i++) {
|
||||
echo $net2ftp_output["admin_createtables"][$i] . "<br />\n";
|
||||
} // end for ?>
|
||||
<!-- Template /skins/blue/admin_createtables2.template.php end -->
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/admin_emptylogs2.template.php begin -->
|
||||
|
||||
<input type="hidden" name="input_admin_username" value="<?php echo $input_admin_username; ?>" />
|
||||
<input type="hidden" name="input_admin_password" value="<?php echo $input_admin_password; ?>" />
|
||||
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["admin_emptylogs"]); $i++) {
|
||||
echo $net2ftp_output["admin_emptylogs"][$i] . "<br />\n";
|
||||
} // end for ?>
|
||||
|
||||
<!-- Template /skins/blue/admin_emptylogs2.template.php end -->
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/admin_viewlogs1.template.php begin -->
|
||||
|
||||
<input type="hidden" name="input_admin_username" value="<?php echo $input_admin_username; ?>" />
|
||||
<input type="hidden" name="input_admin_password" value="<?php echo $input_admin_password; ?>" />
|
||||
|
||||
<?php echo $table1; ?>
|
||||
<br /><br />
|
||||
|
||||
<?php echo $table2; ?>
|
||||
<br /><br />
|
||||
|
||||
<?php echo $table3; ?>
|
||||
<br /><br />
|
||||
|
||||
<?php echo $table4; ?>
|
||||
<br /><br />
|
||||
|
||||
<!-- Template /skins/blue/admin_viewlogs1.template.php end -->
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/advanced1.template.php begin -->
|
||||
|
||||
<div class="header31"><?php echo __("Advanced FTP functions"); ?></div><br />
|
||||
|
||||
<?php if (function_exists("ftp_raw") == true) { ?>
|
||||
<input type="button" class="button" value="<?php echo __("Go"); ?>" onclick="document.forms['AdvancedForm'].state.value='raw'; document.forms['AdvancedForm'].submit();" />
|
||||
<?php } else { ?>
|
||||
<input type="button" class="button" value="<?php echo __("Disabled"); ?>" disabled title="<?php echo __("This function is available on PHP 5 only"); ?>" />
|
||||
<?php } ?>
|
||||
<?php echo __("Send arbitrary FTP commands to the FTP server"); ?><br /><br />
|
||||
|
||||
<div class="header31"><?php echo __("Troubleshooting functions"); ?></div><br />
|
||||
<input type="button" class="smallbutton" value="<?php echo __("Go"); ?>" onclick="document.forms['AdvancedForm'].state.value='advanced_webserver'; document.forms['AdvancedForm'].submit();" /> <?php echo __("Troubleshoot net2ftp on this webserver"); ?><br /><br />
|
||||
<input type="button" class="smallbutton" value="<?php echo __("Go"); ?>" onclick="document.forms['AdvancedForm'].state.value='advanced_ftpserver'; document.forms['AdvancedForm'].submit();" /> <?php echo __("Troubleshoot an FTP server"); ?><br /><br />
|
||||
<input type="button" class="smallbutton" value="<?php echo __("Go"); ?>" onclick="document.forms['AdvancedForm'].state.value='advanced_parsing'; document.forms['AdvancedForm'].submit();" /> <?php echo __("Test the net2ftp list parsing rules"); ?><br /><br />
|
||||
|
||||
<!-- Template /skins/blue/advanced1.template.php end -->
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/advanced_ftpserver1.template.php begin -->
|
||||
<?php echo __("Connection settings:"); ?>
|
||||
<table border="0" cellspacing="2" cellpadding="2" style="margin-<?php echo __("left"); ?>: 20px;">
|
||||
<tr>
|
||||
<td><?php echo __("FTP server"); ?></td>
|
||||
<td><input type="text" class="input" name="troubleshoot_ftpserver" value="<?php echo $net2ftp_globals["ftpserver_html"]; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("FTP server port"); ?></td>
|
||||
<td><input type="text" class="input" size="3" maxlength="5" name="troubleshoot_ftpserverport" value="<?php echo $net2ftp_globals["ftpserverport_html"]; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Username"); ?></td>
|
||||
<td><input type="text" class="input" name="troubleshoot_username" value="<?php echo $net2ftp_globals["username_html"]; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Password"); ?></td>
|
||||
<td><input type="password" class="input" name="troubleshoot_password" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Passive mode"); ?></td>
|
||||
<td><input type="checkbox" class="input" name="troubleshoot_passivemode" value="yes"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Directory"); ?></td>
|
||||
<td><input type="text" class="input" name="troubleshoot_directory" value="<?php echo $net2ftp_globals["directory_html"]; ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Template /skins/blue/advanced_ftpserver1.template.php end -->
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/advanced_ftpserver2.template.php begin -->
|
||||
|
||||
<table border="0" cellspacing="2" cellpadding="2">
|
||||
<tr>
|
||||
<td><?php echo __("FTP server"); ?></td>
|
||||
<td><?php echo $troubleshoot_ftpserver_html; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("FTP server port"); ?></td>
|
||||
<td><?php echo $troubleshoot_ftpserverport_html; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Username"); ?></td>
|
||||
<td><?php echo $troubleshoot_username_html; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Password length"); ?></td>
|
||||
<td><?php echo strlen($troubleshoot_password); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Passive mode"); ?></td>
|
||||
<td><?php echo $troubleshoot_passivemode_html; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Directory"); ?></td>
|
||||
<td><?php echo $troubleshoot_directory_html; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<?php echo __("Connecting to the FTP server: "); ?>
|
||||
<?php if ($conn_id == true) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Logging into the FTP server: "); ?>
|
||||
<?php if ($ftp_login_result == true) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Setting the passive mode: "); ?>
|
||||
<?php if ($ftp_pasv_result == true) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Getting the FTP server system type: "); ?>
|
||||
<?php if ($ftp_systype_result != false) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo $ftp_systype_result; ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Changing to the directory %1\$s: ", $troubleshoot_directory); ?>
|
||||
<?php if ($ftp_chdir_result == true) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Getting the raw list of directories and files: "); ?><br />
|
||||
<?php print_r($ftp_rawlist_result); ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Getting the raw list of directories and files: "); ?><br />
|
||||
<?php for($i=0; $i<count($parsedlist); $i++) {
|
||||
echo "<u>Line $i</u><br />\n";
|
||||
print_r($parsedlist[$i]);
|
||||
echo "<br />";
|
||||
} // End for
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- Template /skins/blue/advanced_ftpserver2.template.php end -->
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/advanced_parsing.template.php begin -->
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["advanced_parsing"]); $i++) {
|
||||
echo $net2ftp_output["advanced_parsing"][$i] . "\n";
|
||||
} // end for ?>
|
||||
<!-- Template /skins/blue/advanced_parsing.template.php end -->
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/advanced_webserver1.template.php begin -->
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<?php echo __("Checking if the FTP module of PHP is installed: "); ?>
|
||||
<?php if (function_exists("ftp_connect") == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("yes"); ?></span> <?php }
|
||||
else { ?> <span style="color: red; font-weight: bold;"><?php echo __("no - please install it!"); ?></span> <?php } ?>
|
||||
</li>
|
||||
<li><?php echo __("Checking the permissions of the directory on the web server: a small file will be written to the /temp folder and then deleted."); ?></li>
|
||||
<li><ul>
|
||||
<li>
|
||||
<?php echo __("Creating filename: "); ?>
|
||||
<?php if ($tempfilename == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK. Filename: %1\$s", $tempfilename); ?></span> <?php }
|
||||
else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span> <?php } ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Opening the file in write mode: "); ?>
|
||||
<?php if ($handle == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span> <?php }
|
||||
else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK. Check the permissions of the %1\$s directory"); ?></span> <?php } ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Writing some text to the file: "); ?>
|
||||
<?php if ($success1 == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span> <?php }
|
||||
else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span> <?php } ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Closing the file: "); ?>
|
||||
<?php if ($success2 == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span> <?php }
|
||||
else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span> <?php } ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Deleting the file: "); ?>
|
||||
<?php if ($success3 == true) { ?> <span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span> <?php }
|
||||
else { ?> <span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span> <?php } ?>
|
||||
</li>
|
||||
|
||||
</ul></li>
|
||||
|
||||
<li><?php echo __("Testing the FTP functions"); ?></li>
|
||||
<li><ul>
|
||||
<li>
|
||||
<?php echo __("Connecting to a test FTP server: "); ?>
|
||||
<?php if ($conn_id == true) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Logging into the FTP server: "); ?>
|
||||
<?php if ($ftp_login_result == true) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Setting the passive mode: "); ?>
|
||||
<?php if ($ftp_pasv_result == true) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Getting the FTP server system type: "); ?>
|
||||
<?php if ($ftp_systype_result != false) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo $ftp_systype_result; ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Changing to the directory %1\$s: ", $troubleshoot_directory); ?>
|
||||
<?php if ($ftp_chdir_result == true) { ?>
|
||||
<span style="color: green; font-weight: bold;"><?php echo __("OK"); ?></span>
|
||||
<?php } else { ?>
|
||||
<span style="color: red; font-weight: bold;"><?php echo __("not OK"); ?></span>
|
||||
<?php } // end if else ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Getting the raw list of directories and files: "); ?><br />
|
||||
<?php print_r($ftp_rawlist_result); ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<?php echo __("Getting the raw list of directories and files: "); ?><br />
|
||||
<?php for($i=0; $i<count($parsedlist); $i++) {
|
||||
echo "<u>Line $i</u><br />\n";
|
||||
print_r($parsedlist[$i]);
|
||||
echo "<br />";
|
||||
} // End for
|
||||
?>
|
||||
</li>
|
||||
</ul></li>
|
||||
|
||||
<!-- Template /skins/blue/advanced_webserver1.template.php end -->
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/shinra/bookmark1.template.php begin -->
|
||||
|
||||
<?php if ($net2ftp_globals["browser_agent"] == "Chrome") { ?>
|
||||
<?php echo __("Drag and drop one of the links below to the bookmarks bar"); ?>
|
||||
<?php } elseif ($net2ftp_globals["browser_agent"] == "IE") { ?>
|
||||
<?php echo __("Right-click on one of the links below and choose \"Add to Favorites...\""); ?>
|
||||
<?php } elseif ($net2ftp_globals["browser_agent"] == "Safari") { ?>
|
||||
<?php echo __("Right-click on one the links below and choose \"Add Link to Bookmarks...\""); ?>
|
||||
<?php } elseif ($net2ftp_globals["browser_agent"] == "Opera") { ?>
|
||||
<?php echo __("Right-click on one of the links below and choose \"Bookmark link...\""); ?>
|
||||
<?php } else { ?>
|
||||
<?php echo __("Right-click on one of the links below and choose \"Bookmark This Link...\""); ?>
|
||||
<?php } ?>
|
||||
<br /><br />
|
||||
<ul>
|
||||
<li>
|
||||
<?php echo __("One click access (net2ftp won't ask for a password - less safe)"); ?> <a href="<?php echo $url_withpw; ?>"><?php echo $text; ?></a>
|
||||
<br /><br />
|
||||
</li>
|
||||
<li>
|
||||
<?php echo __("Two click access (net2ftp will ask for a password - safer)"); ?> <a href="<?php echo $url_withoutpw; ?>"><?php echo $text; ?></a><br />
|
||||
<?php echo __("Note: when you will use this bookmark, a popup window will ask you for your username and password."); ?><br />
|
||||
<br /><br />
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- Template /skins/shinra/bookmark1.template.php end -->
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/browse_main.template.php begin -->
|
||||
<?php
|
||||
if ($net2ftp_globals["viewmode"] != "icons") {
|
||||
require_once($net2ftp_globals["application_skinsdir"] . "/blue/browse_main_details.template.php");
|
||||
}
|
||||
else {
|
||||
require_once($net2ftp_globals["application_skinsdir"] . "/blue/browse_main_icons.template.php");
|
||||
}
|
||||
?>
|
||||
<!-- Template /skins/blue/browse_main.template.php end -->
|
||||
|
|
@ -1,336 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/browse_main_details.template.php begin -->
|
||||
|
||||
<script type="text/javascript"><!--\n";
|
||||
function setColor_js(i, checkbox_hidden) {
|
||||
// i contains the row number
|
||||
// checkbox_hidden determines if the row has a checkbox, or hidden properties
|
||||
|
||||
// Set the colors for the rows
|
||||
if (i%2 == 1) { bgcolor_true = '#ABABAB'; fontcolor_true = '#000000'; bgcolor_false = '#F2F2F5'; fontcolor_false = '#000000'; }
|
||||
else { bgcolor_true = '#ABABAB'; fontcolor_true = '#000000'; bgcolor_false = '#F2F2F5'; fontcolor_false = '#000000'; }
|
||||
|
||||
// Checkbox ==> set the colors depending on the checkbox status
|
||||
// Hidden ==> set the colors as for an unchecked checkbox
|
||||
row_id = 'row' + i;
|
||||
checkbox_id = 'list_' + i + '_dirfilename';
|
||||
if (document.getElementById) {
|
||||
if (checkbox_hidden == 'checkbox' && document.getElementById(checkbox_id).checked == true) {
|
||||
document.getElementById(row_id).style.background = bgcolor_true; document.getElementById(row_id).style.color = fontcolor_true;
|
||||
} else {
|
||||
document.getElementById(row_id).style.background = bgcolor_false; document.getElementById(row_id).style.color = fontcolor_false;
|
||||
}
|
||||
}
|
||||
else if (document.all) {
|
||||
if (checkbox_hidden == 'checkbox' && document.all[checkbox_id].checked == true) {
|
||||
document.all[row_id].style.background = bgcolor_true; document.all[row_id].style.color = fontcolor_true;
|
||||
} else {
|
||||
document.all[row_id].style.background = bgcolor_false; document.all[row_id].style.color = fontcolor_false;
|
||||
}
|
||||
}
|
||||
}
|
||||
//--></script>
|
||||
|
||||
<div id="main">
|
||||
<form name="BrowseForm" id="BrowseForm" action="<?php echo $net2ftp_globals["action_url"]; ?>" method="post">
|
||||
<?php printLoginInfo(); ?>
|
||||
<input type="hidden" name="state" value="browse" />
|
||||
<input type="hidden" name="state2" value="main" />
|
||||
<input type="hidden" name="entry" value="" />
|
||||
|
||||
<table align="center" style="width: 100%; margin-top: 5px;" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr valign="bottom">
|
||||
<td rowspan="1" width="40"> </td>
|
||||
<td style="text-align: <?php echo __("left"); ?>;">
|
||||
<input type="text" name="directory" value="<?php echo $directory_html; ?>" style="width: 300px;" title="(accesskey g)" accesskey="g" />
|
||||
<?php printActionIcon("listdirectories", "createDirectoryTreeWindow('$directory_js','BrowseForm.directory');"); ?>
|
||||
<span style="font-size: 100%;"><?php echo __("Directory Tree"); ?>: <?php echo $directory_tree; ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<?php if (isset($warning_directory) == true && $warning_directory != "") { ?>
|
||||
<div class="warning-box"><div class="warning-text">
|
||||
<?php echo $warning_directory; ?>
|
||||
</div></div><br />
|
||||
<?php } ?>
|
||||
|
||||
<?php if (isset($warning_consumption) == true && $warning_consumption != "") { ?>
|
||||
<div class="warning-box"><div class="warning-text">
|
||||
<?php echo $warning_consumption; ?>
|
||||
</div></div><br />
|
||||
<?php } ?>
|
||||
|
||||
<?php if (isset($warning_message) == true && $warning_message != "") { ?>
|
||||
<div class="warning-box"><div class="warning-text">
|
||||
<?php echo $warning_message; ?>
|
||||
</div></div><br />
|
||||
<?php } ?>
|
||||
|
||||
<table align="center" style="width: 100%; margin-top: 5px; border: 1px solid #bbd2e0;" border="0" cellpadding="2" cellspacing="2">
|
||||
<tr class="browse_rows_actions">
|
||||
<td colspan="<?php echo $total_colspan; ?>">
|
||||
<table style="width: 100%;" border="0" cellpadding="2" cellspacing="0"><tr><td valign="top" style="text-align: <?php echo __("left"); ?>;">
|
||||
<?php if ($net2ftp_settings["functionuse_newdir"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("New dir"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'newdir', '');" title="<?php echo __("Make a new subdirectory in directory %1\$s", $net2ftp_globals["directory_html"]); ?> (accesskey w)" accesskey="w" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_newfile"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("New file"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'edit', 'newfile');" title="<?php echo __("Create a new file in directory %1\$s", $net2ftp_globals["directory_html"]); ?> (accesskey y)" accesskey="y" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_easyWebsite"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("HTML templates"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'easyWebsite', '');" title="<?php echo __("Create a website easily using ready-made templates"); ?> (accesskey e)" accesskey="e" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_upload"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Upload"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'upload', '');" title="<?php echo __("Upload new files in directory %1\$s", $net2ftp_globals["directory_html"]); ?> (accesskey u)" accesskey="u" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_jupload"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Java Upload"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'jupload', '');" title="<?php echo __("Upload directories and files using a Java applet"); ?> (accesskey p)" accesskey="j" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_swfupload"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Flash Upload"); ?>" onclick="toggleElement('upload');" title="<?php echo __("Upload files using a Flash applet"); ?> (accesskey a)" accesskey="a" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_install"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Install"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'install', '');" title="<?php echo __("Install software packages (requires PHP on web server)"); ?> (accesskey k)" accesskey="k" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_advanced"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Advanced"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'advanced', 'main');" title="<?php echo __("Go to the advanced functions"); ?> (accesskey n)" accesskey="n" /> <?php } // end if ?>
|
||||
</td><td valign="top" style="text-align: <?php echo __("right"); ?>;">
|
||||
<?php echo __("Transform selected entries: "); ?>
|
||||
<?php if ($net2ftp_settings["functionuse_copy"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Copy"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'copymovedelete', 'copy');" title="<?php echo __("Copy the selected entries"); ?> (accesskey c)" accesskey="c" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_move"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Move"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'copymovedelete', 'move');" title="<?php echo __("Move the selected entries"); ?> (accesskey m)" accesskey="m" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_delete"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Delete"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'copymovedelete', 'delete');" title="<?php echo __("Delete the selected entries"); ?> (accesskey d)" accesskey="d" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_rename"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Rename"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'rename', '');" title="<?php echo __("Rename the selected entries"); ?> (accesskey o)" accesskey="o" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_chmod"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Chmod"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'chmod', '');" title="<?php echo __("Chmod the selected entries (only works on Unix/Linux/BSD servers)"); ?> (accesskey p)" accesskey="p" /> <?php } // end if ?>
|
||||
<div style="margin-top: 3px;">
|
||||
<?php if ($net2ftp_settings["functionuse_downloadzip"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Download"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'downloadzip', '');" title="<?php echo __("Download a zip file containing all selected entries"); ?> (accesskey x)" accesskey="x" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_zip"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Zip"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'zip', 'zip');" title="<?php echo __("Zip the selected entries to save or email them"); ?> (accesskey z)" accesskey="z" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_unzip"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Unzip"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'unzip', '');" title="<?php echo __("Unzip the selected archives on the FTP server"); ?> (accesskey i)" accesskey="i" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_calculatesize"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Size"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'calculatesize', '');" title="<?php echo __("Calculate the size of the selected entries"); ?> (accesskey q)" accesskey="q" /> <?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_findstring"] == "yes") { ?><input type="button" class="smallbutton" value="<?php echo __("Search"); ?>" onclick="submitBrowseForm('<?php echo $directory_js; ?>', '', 'findstring', '');" title="<?php echo __("Find files which contain a particular word"); ?> (accesskey f)" accesskey="f" /> <?php } // end if ?>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="browse_rows_heading">
|
||||
<td style="width: 32px;"><a style="text-decoration: underline; cursor: pointer; cursor: hand;" onclick="CheckAll(document.BrowseForm);" title="Click to check or uncheck all rows (accesskey t)" accesskey="t"><?php echo __("All"); ?></a></td>
|
||||
<td colspan="2"><a style="text-decoration: underline; cursor: pointer; cursor: hand;" onclick="<?php echo $sortArray["dirfilename"]["onclick"]; ?>" title="<?php echo $sortArray["dirfilename"]["title"]; ?>"><?php echo $sortArray["dirfilename"]["text"]; ?></a><?php echo $sortArray["dirfilename"]["icon"]; ?></td>
|
||||
<td colspan="1"><a style="text-decoration: underline; cursor: pointer; cursor: hand;" onclick="<?php echo $sortArray["type"]["onclick"]; ?>" title="<?php echo $sortArray["type"]["title"]; ?>"><?php echo $sortArray["type"]["text"]; ?></a><?php echo $sortArray["type"]["icon"]; ?></td>
|
||||
<td colspan="1"><a style="text-decoration: underline; cursor: pointer; cursor: hand;" onclick="<?php echo $sortArray["size"]["onclick"]; ?>" title="<?php echo $sortArray["size"]["title"]; ?>"><?php echo $sortArray["size"]["text"]; ?></a><?php echo $sortArray["size"]["icon"]; ?></td>
|
||||
<td colspan="1"><a style="text-decoration: underline; cursor: pointer; cursor: hand;" onclick="<?php echo $sortArray["owner"]["onclick"]; ?>" title="<?php echo $sortArray["owner"]["title"]; ?>"><?php echo $sortArray["owner"]["text"]; ?></a><?php echo $sortArray["owner"]["icon"]; ?></td>
|
||||
<td colspan="1"><a style="text-decoration: underline; cursor: pointer; cursor: hand;" onclick="<?php echo $sortArray["group"]["onclick"]; ?>" title="<?php echo $sortArray["group"]["title"]; ?>"><?php echo $sortArray["group"]["text"]; ?></a><?php echo $sortArray["group"]["icon"]; ?></td>
|
||||
<td colspan="1"><a style="text-decoration: underline; cursor: pointer; cursor: hand;" onclick="<?php echo $sortArray["permissions"]["onclick"]; ?>" title="<?php echo $sortArray["permissions"]["title"]; ?>"><?php echo $sortArray["permissions"]["text"]; ?></a><?php echo $sortArray["permissions"]["icon"]; ?></td>
|
||||
<td colspan="1"><a style="text-decoration: underline; cursor: pointer; cursor: hand;" onclick="<?php echo $sortArray["mtime"]["onclick"]; ?>" title="<?php echo $sortArray["mtime"]["title"]; ?>"><?php echo $sortArray["mtime"]["text"]; ?></a><?php echo $sortArray["mtime"]["icon"]; ?></td>
|
||||
<td colspan="3"><?php echo __("Actions"); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php /* ----- Upload (this row is only shown when you click the "Flash Upload" button!) ----- */ ?>
|
||||
<!-- <tr>
|
||||
<td colspan="<?php echo $total_colspan; ?>">
|
||||
<div id="upload_hidden"></div>
|
||||
<div id="upload_shown" style="display: none; margin-top: 20px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; padding: 5px; border: 1px solid #003250; line-height: normal;">
|
||||
<span style="float: right;"><a href="javascript:toggleElement('upload');">Close</a></span>
|
||||
<h2><?php echo __("Upload files"); ?></h2>
|
||||
<div id="SWFUploadTarget">
|
||||
</div>
|
||||
<h4 style="margin: 5px;">Status: <span id="queueinfo">Queue is empty</span></h4>
|
||||
<a class="swfuploadbtn" id="cancelqueuebtn" href="javascript:cancelQueue();">Cancel queue</a>
|
||||
<a class="swfuploadbtn" id="clearqueuebtn" href="javascript:clearQueue();">Clear queue</a>
|
||||
<div id="SWFUploadFileListingFiles"></div>
|
||||
<?php // Add a "clear: both;" to prevent the content which follows from wrapping around the upload boxes
|
||||
// See http://css.maxdesign.com.au/floatutorial/introduction.htm ?>
|
||||
<div style="clear: both;"> </div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
<?php /* ----- Up ----- */ ?>
|
||||
<tr class="browse_rows_even" onmouseover="this.style.color='#000000'; this.style.backgroundColor='#FFCC00';" onmouseout="this.style.color='#000000'; this.style.backgroundColor='#F2F2F5';">
|
||||
<td></td>
|
||||
<td title="<?php echo __("Go to the parent directory"); ?>" style="cursor: pointer; cursor: hand;" onclick="javascript:submitBrowseForm('<?php echo $updirectory_js; ?>', '', 'browse', 'main');">
|
||||
<?php printMime("icon", array("dirorfile" => "d")); ?>
|
||||
</td>
|
||||
<td colspan="10" title="<?php echo __("Go to the parent directory"); ?>" style="cursor: pointer; cursor: hand;" onclick="javascript:submitBrowseForm('<?php echo $updirectory_js; ?>', '', 'browse', 'main');">
|
||||
<a href="javascript:submitBrowseForm('<?php echo $updirectory_url; ?>','','browse','main');"><?php echo __("Up"); ?> ..</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php /* ----- Directories ----- */ ?>
|
||||
<?php if ($list["stats"]["directories"]["total_number"] > 0) { ?>
|
||||
|
||||
<?php for ($i=1; $i<=sizeof($list_directories); $i++) { ?>
|
||||
<?php
|
||||
// ----- Some PHP stuff -----
|
||||
$rowcounter++;
|
||||
if ($rowcounter % 2 == 1) { $odd_even = "odd"; }
|
||||
else { $odd_even = "even"; }
|
||||
if ($list_directories[$i]["selectable"] == "ok") {
|
||||
$onClick = "submitBrowseForm('" . $list_directories[$i]["newdir_js"] . "','','browse','main');";
|
||||
$title = __("Go to the subdirectory %1\$s", $list_directories[$i]["dirfilename_html"]);
|
||||
$style = "cursor: pointer; cursor: hand; width: 32px;";
|
||||
$href = "<a style=\"white-space: nowrap;\" href=\"javascript:" . $onClick . "\">" . $list_directories[$i]["dirfilename_html"] . "</a>\n";
|
||||
}
|
||||
else {
|
||||
$onClick = "";
|
||||
$title = "";
|
||||
$style = "";
|
||||
$href = "<span style=\"white-space: nowrap;\">" . $list_directories[$i]["dirfilename_html"] . "</span>";
|
||||
}
|
||||
// -------------------------- ?>
|
||||
<tr class="browse_rows_<?php echo $odd_even; ?>" id="row<?php echo $rowcounter; ?>" onmouseover="this.style.color='#000000'; this.style.backgroundColor='#FFCC00';" onmouseout="this.style.color='#000000'; setColor_js(<?php echo $rowcounter; ?>, 'checkbox');">
|
||||
<td title="<?php echo __("Select the directory %1\$s", $list_directories[$i]["newdir_html"]); ?>" style="text-align: center; width: 32px;">
|
||||
<?php printDirFileProperties($rowcounter, $list_directories[$i], "checkbox", "onclick=\"setColor_js($rowcounter, 'checkbox');\""); ?>
|
||||
</td>
|
||||
<td onclick="<?php echo $onClick; ?>" title="<?php echo $title; ?>" style="<?php echo $style; ?>">
|
||||
<?php printMime("icon", $list_directories[$i]); ?>
|
||||
</td>
|
||||
<td onclick="<?php echo $onClick; ?>" title="<?php echo $title; ?>" style="<?php echo $style; ?>">
|
||||
<?php echo $href; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php printMime("type", $list_directories[$i]); ?>
|
||||
</td>
|
||||
<td><?php echo $list_directories[$i]["size"]; ?></td>
|
||||
<td><?php echo $list_directories[$i]["owner"]; ?></td>
|
||||
<td><?php echo $list_directories[$i]["group"]; ?></td>
|
||||
<td><?php echo $list_directories[$i]["permissions"]; ?></td>
|
||||
<td><?php echo $list_directories[$i]["mtime"]; ?></td>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
<?php } // end for ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php /* ----- Files ----- */ ?>
|
||||
<?php if ($list["stats"]["files"]["total_number"]> 0) { ?>
|
||||
|
||||
<?php for ($i=1; $i<=sizeof($list_files); $i++) { ?>
|
||||
<?php
|
||||
// ----- Some PHP stuff -----
|
||||
$rowcounter++;
|
||||
if ($rowcounter % 2 == 1) { $odd_even = "odd"; }
|
||||
else { $odd_even = "even"; }
|
||||
if ($list_files[$i]["selectable"] == "ok") {
|
||||
$onClick = "submitBrowseForm('" . $directory_js . "','" . $list_files[$i]["dirfilename_js"] . "','downloadfile','');";
|
||||
$title = __("Download the file %1\$s", $list_files[$i]["dirfilename_html"]);
|
||||
$style = "cursor: pointer; cursor: hand; width: 32px;";
|
||||
$href = "<a style=\"white-space: nowrap;\" href=\"javascript:" . $onClick . "\">" . $list_files[$i]["dirfilename_html"] . "</a>\n";
|
||||
}
|
||||
else {
|
||||
$onClick = "";
|
||||
$title = "";
|
||||
$style = "";
|
||||
$href = "<span style=\"white-space: nowrap;\">" . $list_files[$i]["dirfilename_html"] . "</span>";
|
||||
}
|
||||
// -------------------------- ?>
|
||||
<tr class="browse_rows_<?php echo $odd_even; ?>" id="row<?php echo $rowcounter; ?>" onmouseover="this.style.color='#000000'; this.style.backgroundColor='#FFCC00';" onmouseout="this.style.color='#000000'; setColor_js(<?php echo $rowcounter; ?>, 'checkbox');">
|
||||
<td title="<?php echo __("Select the file %1\$s", $list_files[$i]["dirfilename_html"]); ?>" style="text-align: center; width: 32px;">
|
||||
<?php printDirFileProperties($rowcounter, $list_files[$i], "checkbox", "onclick=\"setColor_js($rowcounter, 'checkbox');\""); ?>
|
||||
</td>
|
||||
<td onclick="<?php echo $onClick; ?>" title="<?php echo $title; ?>" style="<?php echo $style; ?>">
|
||||
<?php printMime("icon", $list_files[$i]); ?>
|
||||
</td>
|
||||
<td onclick="<?php echo $onClick; ?>" title="<?php echo $title; ?>" style="<?php echo $style; ?>">
|
||||
<?php echo $href; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php printMime("type", $list_files[$i]); ?>
|
||||
</td>
|
||||
<td><?php echo $list_files[$i]["size"]; ?></td>
|
||||
<td><?php echo $list_files[$i]["owner"]; ?></td>
|
||||
<td><?php echo $list_files[$i]["group"]; ?></td>
|
||||
<td><?php echo $list_files[$i]["permissions"]; ?></td>
|
||||
<td><?php echo $list_files[$i]["mtime"]; ?></td>
|
||||
<?php if ($list_files[$i]["selectable"] == "ok") { ?>
|
||||
<?php if ($net2ftp_settings["functionuse_view"] == "yes") { ?><td onclick="submitBrowseForm('<?php echo $directory_js; ?>', '<?php echo $list_files[$i]["dirfilename_js"]; ?>', 'view', ''); return false;" title="<?php echo __("View the highlighted source code of file %1\$s", $list_files[$i]["dirfilename_html"]); ?>" style="cursor: pointer; cursor: hand;"> <a href="#"><?php echo __("View"); ?></a></td><?php } ?>
|
||||
<?php if ($net2ftp_settings["functionuse_edit"] == "yes") { ?><td onclick="submitBrowseForm('<?php echo $directory_js; ?>', '<?php echo $list_files[$i]["dirfilename_js"]; ?>', 'edit', ''); return false;" title="<?php echo __("Edit the source code of file %1\$s", $list_files[$i]["dirfilename_html"]); ?>" style="cursor: pointer; cursor: hand;"> <a href="#"><?php echo __("Edit"); ?></a></td><?php } ?>
|
||||
<?php if ($net2ftp_settings["functionuse_update"] == "yes") { ?><td onclick="submitBrowseForm('<?php echo $directory_js; ?>', '<?php echo $list_files[$i]["dirfilename_js"]; ?>', 'updatefile', ''); return false;" title="<?php echo __("Upload a new version of the file %1\$s and merge the changes", $list_files[$i]["dirfilename_html"]); ?>" style="cursor: pointer; cursor: hand;"> <a href="#"><?php echo __("Update"); ?></a></td><?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php if ($net2ftp_settings["functionuse_view"] == "yes") { ?><td></td><?php } ?>
|
||||
<?php if ($net2ftp_settings["functionuse_edit"] == "yes") { ?><td></td><?php } ?>
|
||||
<?php if ($net2ftp_settings["functionuse_update"] == "yes") { ?><td></td><?php } ?>
|
||||
<?php } ?>
|
||||
<?php if ($net2ftp_settings["functionuse_open"] == "yes") { ?><td onclick="window.open('<?php echo $list_links_js[$i]; ?>');" style="cursor: pointer; cursor: hand;" title="<?php echo __("View the file %1\$s from your HTTP web server", $list_files[$i]["dirfilename_html"]); ?> <?php echo __("(Note: This link may not work if you don't have your own domain name.)"); ?>"><a href="<?php echo $list_links_js[$i]; ?>"><?php echo __("Open"); ?></a></td><?php } ?>
|
||||
</tr>
|
||||
<?php } // end for ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php /* ----- Symlinks ----- */ ?>
|
||||
<?php if ($list["stats"]["symlinks"]["total_number"] > 0) { ?>
|
||||
|
||||
<?php for ($i=1; $i<=sizeof($list_symlinks); $i++) { ?>
|
||||
<?php
|
||||
// ----- Some PHP stuff -----
|
||||
$rowcounter++;
|
||||
if ($rowcounter % 2 == 1) { $odd_even = "odd"; }
|
||||
else { $odd_even = "even"; }
|
||||
if ($list_symlinks[$i]["selectable"] == "ok") {
|
||||
$onClick = "submitBrowseForm('" . $directory_js . "','" . $list_symlinks[$i]["dirfilename_js"] . "','followsymlink','main');";
|
||||
$title = __("Follow symlink %1\$s", $list_symlinks[$i]["dirfilename_html"]);
|
||||
$style = "cursor: pointer; cursor: hand; width: 32px;";
|
||||
list($myfilename, $arrow ,$mylink) = explode(" ",$list_symlinks[$i]["dirfilename_html"]);
|
||||
$href = "<a style=\"white-space: nowrap;\" href=\"javascript:" . $onClick . "\">" . $myfilename . "</a>\n";
|
||||
}
|
||||
else {
|
||||
$onClick = "";
|
||||
$title = "";
|
||||
$style = "";
|
||||
$href = "<span style=\"white-space: nowrap;\">" . $list_symlinks[$i]["dirfilename_html"] . "</span>";
|
||||
}
|
||||
// -------------------------- ?>
|
||||
<tr class="browse_rows_<?php echo $odd_even; ?>" id="row<?php echo $rowcounter; ?>" onmouseover="this.style.color='#000000'; this.style.backgroundColor='#FFCC00';" onmouseout="this.style.color='#000000'; setColor_js(<?php echo $rowcounter; ?>, 'hidden');">
|
||||
<td title="<?php echo __("Select the symlink %1\$s", $list_symlinks[$i]["dirfilename_html"]); ?>" style="text-align: center; width: 32px;">
|
||||
<?php printDirFileProperties($rowcounter, $list_symlinks[$i], "checkbox", "onclick=\"setColor_js($rowcounter, 'checkbox');\""); ?>
|
||||
</td>
|
||||
<td onclick="<?php echo $onClick; ?>" title="<?php echo $title; ?>" style="<?php echo $style; ?>">
|
||||
<?php printMime("icon", $list_symlinks[$i]); ?>
|
||||
</td>
|
||||
<td onclick="<?php echo $onClick; ?>" title="<?php echo $title; ?>" style="<?php echo $style; ?>">
|
||||
<?php echo $href; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php printMime("type", $list_symlinks[$i]); ?>
|
||||
</td>
|
||||
<td><?php echo $list_symlinks[$i]["size"]; ?></td>
|
||||
<td><?php echo $list_symlinks[$i]["owner"]; ?></td>
|
||||
<td><?php echo $list_symlinks[$i]["group"]; ?></td>
|
||||
<td><?php echo $list_symlinks[$i]["permissions"]; ?></td>
|
||||
<td><?php echo $list_symlinks[$i]["mtime"]; ?></td>
|
||||
<?php if ($net2ftp_settings["functionuse_view"] == "yes") { ?><td></td><?php } ?>
|
||||
<?php if ($net2ftp_settings["functionuse_edit"] == "yes") { ?><td></td><?php } ?>
|
||||
<?php if ($net2ftp_settings["functionuse_update"] == "yes") { ?><td></td><?php } ?>
|
||||
<?php if ($net2ftp_settings["functionuse_open"] == "yes") { ?><td></td><?php } ?>
|
||||
</tr>
|
||||
<?php } // end for ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php /* ----- Unrecognized ----- */ ?>
|
||||
<?php if ($list["stats"]["unrecognized"]["total_number"] > 0) { ?>
|
||||
|
||||
<?php for ($i=1; $i<=sizeof($list_unrecognized); $i++) { ?>
|
||||
<?php $rowcounter++; ?>
|
||||
<?php if ($rowcounter % 2 == 1) { $odd_even = "odd"; }
|
||||
else { $odd_even = "even"; } ?>
|
||||
<tr class="browse_rows_<?php echo $odd_even; ?>" id="row<?php echo $i; ?>" onmouseover="this.style.color='#000000'; this.style.backgroundColor='#FFCC00';" onmouseout="this.style.color='#000000'; setColor_js(<?php echo $i; ?>);">
|
||||
<td><?php echo $list_unrecognized[$i]["dirfilename_html"]; ?></td>
|
||||
</tr>
|
||||
<?php } // end for ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php /* ----- Empty folder ----- */ ?>
|
||||
<?php if ($rowcounter == 0) { ?>
|
||||
<tr class="browse_rows_odd">
|
||||
<td style="text-align: center;" colspan="12">
|
||||
<br /><?php echo __("This folder is empty"); ?><br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<?php } // end if ?>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div style="margin-top: 10px; text-align: center;">
|
||||
<?php require_once($net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/google_browse.template.php"); ?>
|
||||
</div>
|
||||
|
||||
<?php /* ----- Statistics ----- */ ?>
|
||||
<div style="font-size: 90%; margin-top: 10px; margin-left: 630px;">
|
||||
<?php echo __("Directories"); ?>: <?php echo $list["stats"]["directories"]["total_number"]; ?><br />
|
||||
<?php echo __("Files"); ?>: <?php echo $list["stats"]["files"]["total_number"]; ?> / <?php echo $list["stats"]["files"]["total_size_formated"]; ?><br />
|
||||
<?php echo __("Symlinks"); ?>: <?php echo $list["stats"]["symlinks"]["total_number"]; ?><br />
|
||||
<?php echo __("Unrecognized FTP output"); ?>: <?php echo $list["stats"]["unrecognized"]["total_number"]; ?><br />
|
||||
<?php if ($print_consumption == true) { ?>
|
||||
<?php echo __("Data transferred from this IP address today"); ?>: <?php echo $consumption_ipaddress_datatransfer; ?><br />
|
||||
<?php echo __("Data transferred to this FTP server today"); ?>: <?php echo $consumption_ftpserver_datatransfer; ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php require_once($net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/footer.template.php"); ?>
|
||||
<!-- Template /skins/blue/browse_main_details.template.php end -->
|
||||
|
|
@ -1,274 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/browse_main_icons.template.php begin -->
|
||||
|
||||
<script type="text/javascript"><!--\n";
|
||||
function setColor_js(i, checkbox_hidden) {
|
||||
// i contains the row number
|
||||
// checkbox_hidden determines if the row has a checkbox, or hidden properties
|
||||
|
||||
// Set the colors for the rows
|
||||
if (i%2 == 1) { bgcolor_true = '#ABABAB'; fontcolor_true = '#000000'; bgcolor_false = '#F2F2F5'; fontcolor_false = '#000000'; }
|
||||
else { bgcolor_true = '#ABABAB'; fontcolor_true = '#000000'; bgcolor_false = '#F2F2F5'; fontcolor_false = '#000000'; }
|
||||
|
||||
// Checkbox ==> set the colors depending on the checkbox status
|
||||
// Hidden ==> set the colors as for an unchecked checkbox
|
||||
row_id = 'row' + i;
|
||||
checkbox_id = 'list_' + i + '_dirfilename';
|
||||
if (document.getElementById) {
|
||||
if (checkbox_hidden == 'checkbox' && document.getElementById(checkbox_id).checked == true) {
|
||||
document.getElementById(row_id).style.background = bgcolor_true; document.getElementById(row_id).style.color = fontcolor_true;
|
||||
} else {
|
||||
document.getElementById(row_id).style.background = bgcolor_false; document.getElementById(row_id).style.color = fontcolor_false;
|
||||
}
|
||||
}
|
||||
else if (document.all) {
|
||||
if (checkbox_hidden == 'checkbox' && document.all[checkbox_id].checked == true) {
|
||||
document.all[row_id].style.background = bgcolor_true; document.all[row_id].style.color = fontcolor_true;
|
||||
} else {
|
||||
document.all[row_id].style.background = bgcolor_false; document.all[row_id].style.color = fontcolor_false;
|
||||
}
|
||||
}
|
||||
}
|
||||
//--></script>
|
||||
|
||||
<div id="main">
|
||||
<form name="BrowseForm" id="BrowseForm" action="<?php echo $net2ftp_globals["action_url"]; ?>" method="post">
|
||||
|
||||
<table width="780" style="margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr style="vertical-align: top;">
|
||||
<td style="text-align: left; font-size: 0.8em;">
|
||||
<?php printLoginInfo(); ?>
|
||||
<input type="hidden" name="state" value="browse" />
|
||||
<input type="hidden" name="state2" value="main" />
|
||||
<input type="hidden" name="entry" value="" />
|
||||
|
||||
<?php if (isset($warning_directory) == true && $warning_directory != "") { ?>
|
||||
<div class="warning-box"><div class="warning-text">
|
||||
<?php echo $warning_directory; ?>
|
||||
</div></div><br />
|
||||
<?php } ?>
|
||||
|
||||
<?php if (isset($warning_consumption) == true && $warning_consumption != "") { ?>
|
||||
<div class="warning-box"><div class="warning-text">
|
||||
<?php echo $warning_consumption; ?>
|
||||
</div></div><br />
|
||||
<?php } ?>
|
||||
|
||||
<?php if (isset($warning_message) == true && $warning_message != "") { ?>
|
||||
<div class="warning-box"><div class="warning-text">
|
||||
<?php echo $warning_message; ?>
|
||||
</div></div><br />
|
||||
<?php } ?>
|
||||
|
||||
<input name="directory" type="text" accesskey="g" title="(accesskey g)" value="<?php echo $directory_html; ?>" size="50" /><br />
|
||||
<?php echo __("Directory Tree"); ?>: <?php echo $directory_tree; ?>
|
||||
</td>
|
||||
<td style="text-align: right; padding-right: 20px;">
|
||||
<select class="" name="BrowseSelect" onchange="eval(document.BrowseForm.BrowseSelect.options[document.BrowseForm.BrowseSelect.selectedIndex].value);">
|
||||
<option value="0" selected style="font-weight: bold; text-decoration: underline;"><?php echo __("Actions"); ?>: </option>
|
||||
<?php if ($net2ftp_settings["functionuse_newdir"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'newdir', '');" title="<?php echo __("Make a new subdirectory in directory %1\$s", $net2ftp_globals["directory_html"]); ?>"> <?php echo __("New dir"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_newfile"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'edit', 'newfile');" title="<?php echo __("Create a new file in directory %1\$s", $net2ftp_globals["directory_html"]); ?>"> <?php echo __("New file"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_easyWebsite"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'easyWebsite', '');" title="<?php echo __("Create a website easily using ready-made templates"); ?>"> <?php echo __("HTML templates"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_upload"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'upload', '');" title="<?php echo __("Upload new files in directory %1\$s", $net2ftp_globals["directory_html"]); ?>"> <?php echo __("Upload"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_jupload"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'jupload', '');" title="<?php echo __("Upload directories and files using a Java applet"); ?>"> <?php echo __("Java Upload"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_install"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'install', '');" title="<?php echo __("Install software packages (requires PHP on web server)"); ?>"> <?php echo __("Install"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_advanced"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'advanced', 'main');" title="<?php echo __("Go to the advanced functions"); ?>"> <?php echo __("Advanced"); ?></option><?php } // end if ?>
|
||||
<option value="" style="font-weight: bold; text-decoration: underline;"><?php echo __("Transform selected entries: "); ?></option>
|
||||
<?php if ($net2ftp_settings["functionuse_copy"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'copymovedelete', 'copy');" title="<?php echo __("Copy the selected entries"); ?>"> <?php echo __("Copy"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_move"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'copymovedelete', 'move');" title="<?php echo __("Move the selected entries"); ?>"> <?php echo __("Move"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_delete"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'copymovedelete', 'delete');" title="<?php echo __("Delete the selected entries"); ?>"> <?php echo __("Delete"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_rename"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'rename', '');" title="<?php echo __("Rename the selected entries"); ?>"> <?php echo __("Rename"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_chmod"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'chmod', '');" title="<?php echo __("Chmod the selected entries (only works on Unix/Linux/BSD servers)"); ?>"> <?php echo __("Chmod"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_downloadzip"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'downloadzip', '');" title="<?php echo __("Download a zip file containing all selected entries"); ?>"> <?php echo __("Download"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_zip"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'zip', 'zip');" title="<?php echo __("Zip the selected entries to save or email them"); ?>"> <?php echo __("Zip"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_zip"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'unzip', '');" title="<?php echo __("Unzip the selected archives on the FTP server"); ?>"> <?php echo __("Unzip"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_calculatesize"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'calculatesize', '');" title="<?php echo __("Calculate the size of the selected entries"); ?>"> <?php echo __("Size"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_findstring"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'findstring', '');" title="<?php echo __("Find files which contain a particular word"); ?>"> <?php echo __("Search"); ?></option><?php } // end if ?>
|
||||
<option value="" style="font-weight: bold; text-decoration: underline;"><?php echo __("Transform selected entry: "); ?></option>
|
||||
<?php if ($net2ftp_settings["functionuse_view"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'view', '');" title="<?php echo __("View the highlighted source code of file %1\$s", $list_files[$i]["dirfilename_html"]); ?>"> <?php echo __("View"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_edit"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'edit', '');" title="<?php echo __("Edit the source code of file %1\$s", $list_files[$i]["dirfilename_html"]); ?>"> <?php echo __("Edit"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_update"] == "yes") { ?><option value="submitBrowseForm('<?php echo $directory_js; ?>', '', 'update', '');" title="<?php echo __("Upload a new version of the file %1\$s and merge the changes", $list_files[$i]["dirfilename_html"]); ?>"> <?php echo __("Update"); ?></option><?php } // end if ?>
|
||||
<?php if ($net2ftp_settings["functionuse_open"] == "yes") { ?><option value="window.open('<?php echo $list_links_js[$i]; ?>');" title="<?php echo __("View the file %1\$s from your HTTP web server", $list_files[$i]["dirfilename_html"]); ?> <?php echo __("(Note: This link may not work if you don't have your own domain name.)"); ?>"> <?php echo __("Open"); ?></option><?php } // end if ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr title="<?php echo __("Go to the parent directory"); ?>" style="cursor: pointer; cursor: hand; border: 0px; text-align: center;">
|
||||
<td colspan="2" align="center" onclick="javascript:submitBrowseForm('<?php echo $updirectory_js; ?>', '', 'browse', 'main');">
|
||||
<?php printActionIcon("up", "", ""); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="780" style="margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="0">
|
||||
<?php $rowcounter = 0; ?>
|
||||
<?php /* ----- Directories ----- */ ?>
|
||||
<?php if ($list["stats"]["directories"]["total_number"] > 0) { ?>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<b><?php echo __("Directories"); ?></b> (<?php echo $list["stats"]["directories"]["total_number"]; ?>)
|
||||
</td>
|
||||
</tr>
|
||||
<?php for ($i=1; $i<=sizeof($list_directories);) { ?>
|
||||
<tr>
|
||||
<?php for ($column_counter=1; $column_counter<=6; $column_counter++) { ?>
|
||||
<?php if ($i<=sizeof($list_directories)) {
|
||||
// ----- Some PHP stuff -----
|
||||
if ($list_directories[$i]["selectable"] == "ok") {
|
||||
$onClick = "submitBrowseForm('" . $list_directories[$i]["newdir_js"] . "','','browse','main');";
|
||||
$title = __("Go to the subdirectory %1\$s", $list_directories[$i]["dirfilename_html"]);
|
||||
$style = "cursor: pointer; cursor: hand; width: 32px;";
|
||||
$href = "<a style=\"white-space: nowrap;\" href=\"javascript:" . $onClick . "\">" . $list_directories[$i]["dirfilename_html"] . "</a>\n";
|
||||
}
|
||||
else {
|
||||
$onClick = "";
|
||||
$title = "";
|
||||
$style = "";
|
||||
$href = "<span style=\"white-space: nowrap;\">" . $list_directories[$i]["dirfilename_html"] . "</span>";
|
||||
}
|
||||
$rowcounter++;
|
||||
// -------------------------- ?>
|
||||
<td id="row<?php echo $rowcounter; ?>" title="<?php echo $title; ?> | <?php echo __("Size"); ?>: <?php echo $list_directories[$i]["size"]; ?> | <?php echo __("Owner"); ?>: <?php echo $list_directories[$i]["owner"]; ?> | <?php echo __("Group"); ?>: <?php echo $list_directories[$i]["group"]; ?> | <?php echo __("Perms"); ?>: <?php echo $list_directories[$i]["permissions"]; ?> | <?php echo __("Mod Time"); ?>: <?php echo $list_directories[$i]["mtime"]; ?>" onmouseover="this.style.color='#000000'; this.style.backgroundColor='#ffcc00';" onmouseout="this.style.color='#000000'; setColor_js(<?php echo $rowcounter; ?>, 'checkbox');">
|
||||
<div class="browse_cell">
|
||||
<?php printDirFileProperties($rowcounter, $list_directories[$i], "checkbox", "onclick=\"setColor_js($rowcounter, 'checkbox');\""); ?>
|
||||
<?php printMime("icon", $list_directories[$i]); ?><br />
|
||||
<?php echo $href; ?>
|
||||
</div>
|
||||
</td>
|
||||
<?php $i++; ?>
|
||||
<?php } else { ?>
|
||||
<td><div class="browse_cell"> </div></td>
|
||||
<?php } ?>
|
||||
<?php } // end for column_counter ?>
|
||||
</tr>
|
||||
<?php } // end for i ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php /* ----- Files ----- */ ?>
|
||||
<?php if ($list["stats"]["files"]["total_number"] > 0) { ?>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<b><?php echo __("Files"); ?></b> (<?php echo $list["stats"]["files"]["total_number"]; ?> / <?php echo $list["stats"]["files"]["total_size_formated"]; ?>)
|
||||
</td>
|
||||
</tr>
|
||||
<?php for ($i=1; $i<=sizeof($list_files);) { ?>
|
||||
<tr>
|
||||
<?php for ($column_counter=1; $column_counter<=6; $column_counter++) { ?>
|
||||
<?php if ($i<=sizeof($list_files)) {
|
||||
// ----- Some PHP stuff -----
|
||||
if ($list_files[$i]["selectable"] == "ok") {
|
||||
$onClick = "submitBrowseForm('" . $directory_js . "','" . $list_files[$i]["dirfilename_js"] . "','downloadfile','');";
|
||||
$title = __("Download the file %1\$s", $list_files[$i]["dirfilename_html"]);
|
||||
$style = "cursor: pointer; cursor: hand; width: 32px;";
|
||||
$href = "<a style=\"white-space: nowrap;\" href=\"javascript:" . $onClick . "\">" . $list_files[$i]["dirfilename_html"] . "</a>\n";
|
||||
}
|
||||
else {
|
||||
$onClick = "";
|
||||
$title = "";
|
||||
$style = "";
|
||||
$href = "<span style=\"white-space: nowrap;\">" . $list_files[$i]["dirfilename_html"] . "</span>";
|
||||
}
|
||||
$rowcounter++;
|
||||
// -------------------------- ?>
|
||||
<td id="row<?php echo $rowcounter; ?>" title="<?php echo $title; ?> | <?php echo __("Size"); ?>: <?php echo $list_files[$i]["size"]; ?> | <?php echo __("Owner"); ?>: <?php echo $list_files[$i]["owner"]; ?> | <?php echo __("Group"); ?>: <?php echo $list_files[$i]["group"]; ?> | <?php echo __("Perms"); ?>: <?php echo $list_files[$i]["permissions"]; ?> | <?php echo __("Mod Time"); ?>: <?php echo $list_files[$i]["mtime"]; ?>" onmouseover="this.style.color='#000000'; this.style.backgroundColor='#ffcc00';" onmouseout="this.style.color='#000000'; setColor_js(<?php echo $rowcounter; ?>, 'checkbox');">
|
||||
<div class="browse_cell">
|
||||
<?php printDirFileProperties($rowcounter, $list_files[$i], "checkbox", "onclick=\"setColor_js($rowcounter, 'checkbox');\""); ?>
|
||||
<?php printMime("icon", $list_files[$i]); ?><br />
|
||||
<?php echo $href; ?>
|
||||
</div>
|
||||
</td>
|
||||
<?php $i++; ?>
|
||||
<?php } else { ?>
|
||||
<td><div class="browse_cell"> </div></td>
|
||||
<?php } ?>
|
||||
<?php } // end for column_counter ?>
|
||||
</tr>
|
||||
<?php } // end for i ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php /* ----- Symlinks ----- */ ?>
|
||||
<?php if ($list["stats"]["symlinks"]["total_number"] > 0) { ?>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<b><?php echo __("Symlinks"); ?></b> (<?php echo $list["stats"]["symlinks"]["total_number"]; ?>)
|
||||
</td>
|
||||
</tr>
|
||||
<?php for ($i=1; $i<=sizeof($list_symlinks);) { ?>
|
||||
<tr>
|
||||
<?php for ($column_counter=1; $column_counter<=6; $column_counter++) { ?>
|
||||
<?php if ($i<=sizeof($list_symlinks)) {
|
||||
// ----- Some PHP stuff -----
|
||||
if ($list_symlinks[$i]["selectable"] == "ok") {
|
||||
$onClick = "submitBrowseForm('" . $directory_js . "','" . $list_symlinks[$i]["dirfilename_js"] . "','followsymlink','');";
|
||||
$title = __("Follow symlink %1\$s", $list_symlinks[$i]["dirfilename_html"]);
|
||||
$style = "cursor: pointer; cursor: hand; width: 32px;";
|
||||
$href = "<a style=\"white-space: nowrap;\" href=\"javascript:" . $onClick . "\">" . $list_symlinks[$i]["dirfilename_html"] . "</a>\n";
|
||||
}
|
||||
else {
|
||||
$onClick = "";
|
||||
$title = "";
|
||||
$style = "";
|
||||
$href = "<span style=\"white-space: nowrap;\">" . $list_symlinks[$i]["dirfilename_html"] . "</span>";
|
||||
}
|
||||
$rowcounter++;
|
||||
// -------------------------- ?>
|
||||
<td id="row<?php echo $rowcounter; ?>" title="<?php echo __("Follow symlink %1\$s", $list_symlinks[$i]["dirfilename_html"]); ?> | <?php echo __("Size"); ?>: <?php echo $list_symlinks[$i]["size"]; ?> | <?php echo __("Owner"); ?>: <?php echo $list_symlinks[$i]["owner"]; ?> | <?php echo __("Group"); ?>: <?php echo $list_symlinks[$i]["group"]; ?> | <?php echo __("Perms"); ?>: <?php echo $list_symlinks[$i]["permissions"]; ?> | <?php echo __("Mod Time"); ?>: <?php echo $list_symlinks[$i]["mtime"]; ?>" onmouseover="this.style.color='#000000'; this.style.backgroundColor='#ffcc00';" onmouseout="this.style.color='#000000'; setColor_js(<?php echo $rowcounter; ?>, 'checkbox');">
|
||||
<div class="browse_cell">
|
||||
<?php printDirFileProperties($rowcounter, $list_files[$i], "checkbox", "onclick=\"setColor_js($rowcounter, 'checkbox');\""); ?>
|
||||
<?php printMime("icon", $list_files[$i]); ?><br />
|
||||
<?php echo $href; ?>
|
||||
</div>
|
||||
</td>
|
||||
<?php $i++; ?>
|
||||
<?php } else { ?>
|
||||
<td><div class="browse_cell"> </div></td>
|
||||
<?php } ?>
|
||||
<?php } // end for column_counter ?>
|
||||
</tr>
|
||||
<?php } // end for i ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php /* ----- Unrecognized ----- */ ?>
|
||||
<?php if ($list["stats"]["unrecognized"]["total_number"] > 0) { ?>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<b><?php echo __("Unrecognized FTP output"); ?></b> (<?php echo $list["stats"]["unrecognized"]["total_number"]; ?>)
|
||||
</td>
|
||||
</tr>
|
||||
<?php for ($i=1; $i<=sizeof($list_unrecognized);) { ?>
|
||||
<tr>
|
||||
<?php for ($column_counter=1; $column_counter<=6; $column_counter++) { ?>
|
||||
<?php if ($i<=sizeof($list_unrecognized)) { ?>
|
||||
<?php $rowcounter++; ?>
|
||||
<td onmouseover="this.style.color='#000000'; this.style.backgroundColor='#ffcc00';" onmouseout="this.style.color='#000000'; setColor_js(<?php echo $rowcounter; ?>, 'checkbox');">
|
||||
<div class="browse_cell">
|
||||
<?php printMime("icon", $list_unrecognized[$i]); ?><br />
|
||||
<?php echo $list_unrecognized[$i]["dirfilename_html"]; ?>
|
||||
</div>
|
||||
</td>
|
||||
<?php $i++; ?>
|
||||
<?php } else { ?>
|
||||
<td><div class="browse_cell"> </div></td>
|
||||
<?php } ?>
|
||||
<?php } // end for column_counter ?>
|
||||
</tr>
|
||||
<?php } // end for i ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php /* ----- Empty folder ----- */ ?>
|
||||
<?php if ($rowcounter == 0) { ?>
|
||||
<tr>
|
||||
<td colspan="6" style="text-align: center;">
|
||||
<br /><?php echo __("This folder is empty"); ?><br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<?php } // end if ?>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<?php require_once($net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/google_browse.template.php"); ?>
|
||||
|
||||
</div>
|
||||
<?php require_once($net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/footer.template.php"); ?>
|
||||
<!-- Template /skins/blue/browse_main_icons.template.php end -->
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/browse_popup.template.php begin -->
|
||||
<form id="DirectoryTreeForm" action="<?php echo $net2ftp_globals["action_url"]; ?>" method="post">
|
||||
<?php printLoginInfo(); ?>
|
||||
<input type="hidden" name="state" value="browse" />
|
||||
<input type="hidden" name="state2" value="popup" />
|
||||
<input type="hidden" name="entry" value="" />
|
||||
<input type="hidden" name="updirectory" value="<?php echo $updirectory_html; ?>" />
|
||||
<input type="hidden" name="FormAndFieldName" value="<?php echo $FormAndFieldName; ?>" />
|
||||
<input type="text" name="directory" value="<?php echo $directory_html; ?>" style="width: 65%;" />
|
||||
<input type="button" class="smallbutton" value="<?php echo __("Choose"); ?>" onclick="opener.document.<?php echo $FormAndFieldName; ?>.value=document.forms['DirectoryTreeForm'].directory.value; self.close();" /><br /><br />
|
||||
<div style="font-size: 90%;"><?php echo __("Double-click to go to a subdirectory:"); ?></div><br />
|
||||
<select name="DirectoryTreeSelect" id="DirectoryTreeSelect" size="15" style="width: 100%;" onDblClick="submitDirectoryTreeForm(<?php echo sizeof($list["directories"]); ?>);">
|
||||
<option value="up" selected><?php echo __("Up"); ?></option>
|
||||
<?php /* ----- Directories ----- */ ?>
|
||||
<?php for ($i=1; $i<=sizeof($list["directories"]); $i++) {
|
||||
if ($list_directories[$i]["selectable"] == "ok") { ?>
|
||||
<option value="<?php echo $list_directories[$i]["dirfilename_html"]; ?>"><?php echo $list_directories[$i]["dirfilename_html"]; ?></option>
|
||||
<?php } // end if
|
||||
} // end for ?>
|
||||
<?php /* ----- Symlinks ----- */ ?>
|
||||
<?php for ($i=1; $i<=sizeof($list["symlinks"]); $i++) {
|
||||
if ($list_symlinks[$i]["selectable"] == "ok") { ?>
|
||||
<option value="<?php echo $list_symlinks[$i]["dirfilename_html"]; ?>"><?php echo $list_symlinks[$i]["dirfilename_html"]; ?></option>
|
||||
<?php } // end if
|
||||
} // end for ?>
|
||||
</select>
|
||||
</form>
|
||||
<br />
|
||||
<!-- Template /skins/blue/browse_popup.template.php end -->
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/calculatesize1.template.php begin -->
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["calculatesize"]); $i++) { ?>
|
||||
<?php echo $net2ftp_output["calculatesize"][$i]; ?><br />
|
||||
<?php } // end for ?>
|
||||
<!-- Template /skins/blue/calculatesize1.template.php end -->
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/chmod1.template.php begin -->
|
||||
<table style="border-color: #000000; border-style: solid; border-width: 1px; padding: 5px;">
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="2" cellpadding="2" style="margin-<?php echo __("left"); ?>: 5px;">
|
||||
<tr>
|
||||
<td rowspan="4" style="vertical-align: top;"><input type="button" class="extralongbutton" value="Set all permissions" onclick="CopyCheckboxToAll(document.forms['ChmodForm'], 'header[owner_read]', 'owner_read'); CopyCheckboxToAll(document.forms['ChmodForm'], 'header[owner_write]', 'owner_write'); CopyCheckboxToAll(document.forms['ChmodForm'], 'header[owner_execute]', 'owner_execute'); CopyCheckboxToAll(document.forms['ChmodForm'], 'header[group_read]', 'group_read'); CopyCheckboxToAll(document.forms['ChmodForm'], 'header[group_write]', 'group_write'); CopyCheckboxToAll(document.forms['ChmodForm'], 'header[group_execute]', 'group_execute'); CopyCheckboxToAll(document.forms['ChmodForm'], 'header[other_read]', 'other_read'); CopyCheckboxToAll(document.forms['ChmodForm'], 'header[other_write]', 'other_write'); CopyCheckboxToAll(document.forms['ChmodForm'], 'header[other_execute]', 'other_execute'); update_input(); " /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Owner:</td>
|
||||
<td><input type="checkbox" name="header[owner_read]" value="4">Read</td>
|
||||
<td><input type="checkbox" name="header[owner_write]" value="2">Write</td>
|
||||
<td><input type="checkbox" name="header[owner_execute]" value="1">Execute</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Group:</td>
|
||||
<td><input type="checkbox" name="header[group_read]" value="4">Read</td>
|
||||
<td><input type="checkbox" name="header[group_write]" value="2">Write</td>
|
||||
<td><input type="checkbox" name="header[group_execute]" value="1">Execute</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Everyone:</td>
|
||||
<td><input type="checkbox" name="header[other_read]" value="4">Read</td>
|
||||
<td><input type="checkbox" name="header[other_write]" value="2">Write</td>
|
||||
<td><input type="checkbox" name="header[other_execute]" value="1">Execute</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="font-size: 90%">To set all permissions to the same values, enter those permissions above and click on the button "Set all permissions"</div>
|
||||
</td></tr>
|
||||
</table><br />
|
||||
|
||||
<?php for ($i=1; $i<=sizeof($list["all"]); $i++) { ?>
|
||||
<?php printDirFileProperties($i, $list["all"][$i], "hidden", ""); ?>
|
||||
<?php echo $list["all"][$i]["message"]; ?> <br />
|
||||
|
||||
<table border="0" cellspacing="2" cellpadding="2" style="margin-<?php echo __("left"); ?>: 20px;">
|
||||
<tr>
|
||||
<td>Owner:</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][owner_read]" value="4" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["owner_read"]; ?> />Read</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][owner_write]" value="2" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["owner_write"]; ?> />Write</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][owner_execute]" value="1" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["owner_execute"]; ?> />Execute</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Group:</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][group_read]" value="4" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["group_read"]; ?> />Read</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][group_write]" value="2" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["group_write"]; ?> />Write</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][group_execute]" value="1" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["group_execute"]; ?> />Execute</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Everyone:</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][other_read]" value="4" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["other_read"]; ?> />Read</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][other_write]" value="2" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["other_write"]; ?> />Write</td>
|
||||
<td><input type="checkbox" name="list[<?php echo $i; ?>][other_execute]" value="1" onclick="update_input(<?php echo $i; ?>);" <?php echo $list["all"][$i]["other_execute"]; ?> />Execute</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=4>Chmod value: <input class="smallinput" value="<?php echo $list["all"][$i]["chmodvalue"]; ?>" name="chmod<?php echo $i; ?>" id="chmod<?php echo $i; ?>" onchange="update_checkbox(<?php echo $i; ?>);" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php if ($list["all"][$i]["dirorfile"] == "d") { ?>
|
||||
<input type="checkbox" name="list[<?php echo $i; ?>][chmod_subdirectories]" value="yes" /> <?php echo __("Chmod also the subdirectories within this directory"); ?><br />
|
||||
<input type="checkbox" name="list[<?php echo $i; ?>][chmod_subfiles]" value="yes" /> <?php echo __("Chmod also the files within this directory"); ?><br />
|
||||
<?php } ?>
|
||||
<br /><br />
|
||||
|
||||
<?php } // end for ?>
|
||||
|
||||
<!-- Template /skins/blue/chmod1.template.php end -->
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/chmod2.template.php begin -->
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["ftp_chmod2"]); $i++) {
|
||||
if ($net2ftp_output["ftp_chmod2"][$i] == "<ul>" || $net2ftp_output["ftp_chmod2"][$i] == "</ul>") { echo $net2ftp_output["ftp_chmod2"][$i] . "\n"; }
|
||||
else { echo "<li>" . $net2ftp_output["ftp_chmod2"][$i] . "</li>\n"; }
|
||||
} // end for ?>
|
||||
<!-- Template /skins/blue/chmod2.template.php end -->
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/copymovedelete1.template.php begin -->
|
||||
|
||||
<?php /* ----- Copy or Move: print header table ----- */ ?>
|
||||
<?php if ($net2ftp_globals["state2"] == "copy" || $net2ftp_globals["state2"] == "move") { ?>
|
||||
<table style="border-color: #000000; border-style: solid; border-width: 1px; padding: 10px;">
|
||||
<tr><td>
|
||||
<input type="button" class="extralongbutton" value="<?php echo __("Set all targetdirectories"); ?>" onclick="CopyValueToAll(document.forms['CopyMoveDeleteForm'], document.forms['CopyMoveDeleteForm'].headerDirectory, 'targetdirectory');" />
|
||||
<input type="text" style="width: 300px;" name="headerDirectory" value="<?php echo $net2ftp_globals["directory_html"]; ?>" />
|
||||
<?php printActionIcon("listdirectories", "createDirectoryTreeWindow('" . $net2ftp_globals["directory_js"] . "','CopyMoveDeleteForm.headerDirectory');"); ?>
|
||||
<div style="font-size: 65%"><?php echo __("To set a common target directory, enter that target directory in the textbox above and click on the button \"Set all targetdirectories\"."); ?></div>
|
||||
<div style="font-size: 65%"><?php echo __("Note: the target directory must already exist before anything can be copied into it."); ?></div>
|
||||
</td></tr>
|
||||
</table>
|
||||
<br />
|
||||
<table style="border-color: #000000; border-style: solid; border-width: 1px; padding: 10px; margin-<?php echo __("right"); ?>: 100px; margin-bottom: 30px;">
|
||||
<tr>
|
||||
<td style="vertical-align: top; width: 40%;"><?php echo __("Different target FTP server:"); ?></td>
|
||||
<td>
|
||||
<input type="text" class="input" name="ftpserver2" value="" /> port
|
||||
<input type="text" class="input" size="3" maxlength="5" name="ftpserverport2" value="21" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Username"); ?>:</td>
|
||||
<td><input type="text" class="input" name="username2" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __("Password"); ?>:</td>
|
||||
<td><input type="password" class="input" name="password2" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div style="font-size: 65%;">
|
||||
<?php echo __("Leave empty if you want to copy the files to the same FTP server."); ?><br />
|
||||
<?php echo __("If you want to copy the files to another FTP server, enter your login data."); ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } // end if
|
||||
/* ----- Delete: print warning message ----- */
|
||||
elseif ($net2ftp_globals["state2"] == "delete") { ?>
|
||||
<?php echo __("Are you sure you want to delete these directories and files?"); ?><br />
|
||||
<?php echo __("All the subdirectories and files of the selected directories will also be deleted!"); ?><br /><br />
|
||||
<?php } // end elseif ?>
|
||||
|
||||
<?php /* ----- List of selected entries ----- */ ?>
|
||||
<?php for ($i=1; $i<=sizeof($list["all"]); $i++) { ?>
|
||||
<?php printDirFileProperties($i, $list["all"][$i], "hidden", ""); ?>
|
||||
<input type="hidden" name="list[<?php echo $i; ?>][sourcedirectory]" value="<?php echo $net2ftp_globals["directory_html"]; ?>" />
|
||||
<?php if ($net2ftp_globals["state2"] == "copy") {
|
||||
if ($list["all"][$i]["dirorfile"] == "d") { echo __("Copy directory <b>%1\$s</b> to:", $list["all"][$i]["dirfilename"]); }
|
||||
elseif ($list["all"][$i]["dirorfile"] == "-") { echo __("Copy file <b>%1\$s</b> to:", $list["all"][$i]["dirfilename"]); }
|
||||
elseif ($list["all"][$i]["dirorfile"] == "l") { echo __("Copy symlink <b>%1\$s</b> to:", $list["all"][$i]["dirfilename"]); }
|
||||
}
|
||||
elseif ($net2ftp_globals["state2"] == "move") {
|
||||
if ($list["all"][$i]["dirorfile"] == "d") { echo __("Move directory <b>%1\$s</b> to:", $list["all"][$i]["dirfilename"]); }
|
||||
elseif ($list["all"][$i]["dirorfile"] == "-") { echo __("Move file <b>%1\$s</b> to:", $list["all"][$i]["dirfilename"]); }
|
||||
elseif ($list["all"][$i]["dirorfile"] == "l") { echo __("Move symlink <b>%1\$s</b> to:", $list["all"][$i]["dirfilename"]); }
|
||||
}
|
||||
elseif ($net2ftp_globals["state2"] == "delete") {
|
||||
if ($list["all"][$i]["dirorfile"] == "d") { echo __("Directory <b>%1\$s</b>", $list["all"][$i]["dirfilename"]); }
|
||||
elseif ($list["all"][$i]["dirorfile"] == "-") { echo __("File <b>%1\$s</b>", $list["all"][$i]["dirfilename"]); }
|
||||
elseif ($list["all"][$i]["dirorfile"] == "l") { echo __("Symlink <b>%1\$s</b>", $list["all"][$i]["dirfilename"]); }
|
||||
}
|
||||
?>
|
||||
<br />
|
||||
<?php /* ----- Copy or move: ask for options ----- */ ?>
|
||||
<?php if ($net2ftp_globals["state2"] == "copy" || $net2ftp_globals["state2"] == "move") { ?>
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php echo __("Target directory:"); ?></td>
|
||||
<td>
|
||||
<input type="text" style="width: 300px;" name="list[<?php echo $i; ?>][targetdirectory]" value="<?php echo $net2ftp_globals["directory_html"]; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>
|
||||
<?php echo __("Target name:"); ?> </td><td><input type="text" class="input" name="list[<?php echo $i; ?>][newname]" value="<?php echo $list["all"][$i]["dirfilename_html"]; ?>" />
|
||||
</td></tr>
|
||||
</table><br />
|
||||
<?php } // end if ?>
|
||||
<?php } // end for ?>
|
||||
|
||||
<!-- Template /skins/blue/copymovedelete1.template.php end -->
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/copymovedelete2.template.php begin -->
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["ftp_copymovedelete"]); $i++) {
|
||||
if ($net2ftp_output["ftp_copymovedelete"][$i] == "<ul>" || $net2ftp_output["ftp_copymovedelete"][$i] == "</ul>") { echo $net2ftp_output["ftp_copymovedelete"][$i] . "\n"; }
|
||||
else { echo "<li>" . $net2ftp_output["ftp_copymovedelete"][$i] . "</li>\n"; }
|
||||
} // end for ?>
|
||||
<!-- Template /skins/blue/copymovedelete2.template.php end -->
|
||||
|
||||
|
|
@ -1,358 +0,0 @@
|
|||
<?php
|
||||
header("Content-type: text/css");
|
||||
if (isset($_GET["ltr"]) == true && $_GET["ltr"] != "rtl") { $left = "left"; $right = "right"; }
|
||||
else { $left = "right"; $right = "left"; }
|
||||
if (isset($_GET["image_url"]) == true) { $image_url = preg_replace("/[\\*\\?\\<\\>\\|]/", "", $_GET["image_url"]); }
|
||||
else { $image_url = ""; }
|
||||
?>
|
||||
|
||||
/* CSS document colors
|
||||
#003250
|
||||
#5893ac
|
||||
#bbd2e0
|
||||
#F2F2F5
|
||||
#A7A7A7
|
||||
#787878
|
||||
*/
|
||||
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #ffffff;
|
||||
font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin-<?php echo $left; ?>: auto;
|
||||
margin-<?php echo $right; ?>: auto;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 20px;
|
||||
width: 980px;
|
||||
font-size: 1.2em;
|
||||
text-align: <?php echo $left; ?>;
|
||||
}
|
||||
|
||||
#head {
|
||||
padding-top: 20px;
|
||||
padding-<?php echo $left; ?>: 20px;
|
||||
padding-<?php echo $right; ?>: 20px;
|
||||
padding-bottom: 20px;
|
||||
height: 62px;
|
||||
background: url(<?php echo $image_url; ?>/img/bg_head.jpg) no-repeat;
|
||||
}
|
||||
|
||||
#headleft {
|
||||
float:<?php echo $left; ?>;
|
||||
}
|
||||
|
||||
#headright {
|
||||
float:<?php echo $right; ?>;
|
||||
width:470px;
|
||||
}
|
||||
|
||||
#head<?php echo $right; ?> h2 {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
#main {
|
||||
background: #F2F2F5;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#menu {
|
||||
width: 200px;
|
||||
float: <?php echo $left; ?>;
|
||||
}
|
||||
|
||||
.menuhead {
|
||||
background: url(<?php echo $image_url; ?>/img/bg_tabletop.png);
|
||||
height: 18px;
|
||||
width: 200px;
|
||||
color: #FFF;
|
||||
padding-top: 2px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.menucontent {
|
||||
background: #bbd2e0;
|
||||
color: #003250;
|
||||
width: 193px;
|
||||
padding-<?php echo $left; ?>: 5px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: solid 1px #003250;
|
||||
border-<?php echo $left; ?>: solid 1px #003250;
|
||||
border-<?php echo $right; ?>: solid 1px #003250;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-<?php echo $left; ?>: 10px;
|
||||
width: 750px;
|
||||
float: <?php echo $right; ?>;
|
||||
}
|
||||
|
||||
#mainleft {
|
||||
float:<?php echo $left; ?>;
|
||||
width: 465px;
|
||||
}
|
||||
|
||||
#mainright {
|
||||
float: <?php echo $right; ?>;
|
||||
width: 485px;
|
||||
margin-<?php echo $left; ?>: 10px;
|
||||
}
|
||||
|
||||
#tabelfeaturestop {
|
||||
padding-<?php echo $left; ?>: 10px; background-color: #003250; height: 21px; color:#FFF; padding-top:5px;
|
||||
}
|
||||
|
||||
#tablefeature {
|
||||
background: #bbd2e0;
|
||||
border-<?php echo $left; ?>: #003250 1px solid;
|
||||
border-<?php echo $right; ?>: #003250 1px solid;
|
||||
border-bottom: #003250 1px solid;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#tablefeature span {
|
||||
background-image: url(<?php echo $image_url; ?>/img/arrow.gif);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0.5em;
|
||||
padding-<?php echo $left; ?>: 20px;
|
||||
font-weight: bold;
|
||||
color: #003250;
|
||||
}
|
||||
|
||||
#tablefeature p {
|
||||
padding-<?php echo $left; ?>:20px;
|
||||
padding-top: 2px;
|
||||
padding-bottom:2px;
|
||||
}
|
||||
|
||||
#foot {
|
||||
height: 24px;
|
||||
background: url(<?php echo $image_url; ?>/img/bg_foot.jpg) no-repeat;
|
||||
text-align: center;
|
||||
padding-top: 13px;
|
||||
color: #fff;
|
||||
|
||||
}
|
||||
|
||||
#poweredby {
|
||||
padding-top: 10px;
|
||||
text-align: center;
|
||||
font-size: 0.75em;
|
||||
}
|
||||
|
||||
a, a:link {
|
||||
text-decoration: underline;
|
||||
color: #003250;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: none;
|
||||
color: #5893ac;
|
||||
}
|
||||
|
||||
#foot a, #foot a:link {
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#foot a:hover {
|
||||
text-decoration: none;
|
||||
color: #5893ac;
|
||||
}
|
||||
|
||||
/* Tags */
|
||||
h1, h2, h3 {
|
||||
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.2em;
|
||||
color: #003250;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
color: #003250;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
.underline {
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
.button {
|
||||
color: #003250;
|
||||
background: #fff;
|
||||
border: solid 1px #003250;
|
||||
width: 50px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.smallbutton {
|
||||
color: #003250;
|
||||
background: #fff;
|
||||
border: solid 1px #003250;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
br {
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-<?php echo $left; ?>: 15px;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
.navlist {
|
||||
margin-<?php echo $left; ?>: 0;
|
||||
padding-<?php echo $left; ?>: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.navlist li {
|
||||
padding-<?php echo $left; ?>: 20px;
|
||||
background-image: url(<?php echo $image_url; ?>/img/arrow.gif);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0.5em;
|
||||
}
|
||||
|
||||
.navlist li a, .navlist li a:link {
|
||||
text-decoration: none;
|
||||
color: #003250;
|
||||
}
|
||||
|
||||
.navlist li a:hover {
|
||||
text-decoration: none;
|
||||
color: #5893ac;
|
||||
}
|
||||
|
||||
/* Form */
|
||||
|
||||
select, input {
|
||||
padding: 2px;
|
||||
margin-top: 1px;
|
||||
margin-<?php echo $right; ?>: 0;
|
||||
margin-bottom: 1px;
|
||||
margin-<?php echo $left; ?>: 0;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
textarea {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.warning-box {
|
||||
background-color: #FFDD00;
|
||||
color: #000000;
|
||||
border: 2px;
|
||||
border-style: solid;
|
||||
border-color: #FFCC33;
|
||||
margin-<?php echo $left; ?>: 0px;
|
||||
margin-<?php echo $right; ?>: 10px;
|
||||
}
|
||||
|
||||
.warning-text {
|
||||
padding-bottom : 5px;
|
||||
padding-top : 5px;
|
||||
padding-<?php echo $left; ?> : 10px;
|
||||
padding-<?php echo $right; ?> : 10px;
|
||||
}
|
||||
|
||||
.browse_cell {
|
||||
width: 120px;
|
||||
height: 60px;
|
||||
font-size: 0.8em;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.browse_rows_actions {
|
||||
background-color: #bbd2e0;
|
||||
color: #000000;
|
||||
font-size: 80%;
|
||||
font-weight: normal;
|
||||
text-align: <?php echo $left; ?>;
|
||||
}
|
||||
|
||||
.browse_rows_heading {
|
||||
background-color: #bbd2e0;
|
||||
color: #000000;
|
||||
font-size: 110%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.browse_rows_odd, .browse_rows_even {
|
||||
color: #000000;
|
||||
font-size: 80%;
|
||||
font-weight: normal;
|
||||
text-align: <?php echo $left; ?>;
|
||||
}
|
||||
|
||||
.browse_rows_separator {
|
||||
border: 2px;
|
||||
color: #000000;
|
||||
font-size: 100%;
|
||||
text-align: <?php echo $left; ?>;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Process bar
|
||||
From the PHP Pear package HTML_Progress
|
||||
http://pear.laurent-laville.org/HTML_Progress/examples/horizontal/string.php
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
.p_ba7428 .progressBar, .p_ba7428 .progressBarBorder {
|
||||
width: 172px;
|
||||
height: 24px;
|
||||
position: relative;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.p_ba7428 .progressBarBorder {
|
||||
border-width: 0;
|
||||
border-style: solid;
|
||||
border-color: #003250;
|
||||
}
|
||||
|
||||
.p_ba7428 .installationProgress {
|
||||
width: 350px;
|
||||
text-align: left;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.p_ba7428 .cellI, .p_ba7428 .cellA {
|
||||
width: 15px;
|
||||
height: 20px;
|
||||
font-family: Courier, Verdana;
|
||||
font-size: 0.8em;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.p_ba7428 .cellI {
|
||||
background-color: #003250;
|
||||
}
|
||||
|
||||
.p_ba7428 .cellA {
|
||||
background-color: #003250;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/edit.template.php begin -->
|
||||
<form id="<?php echo $formname; ?>" action="<?php echo $net2ftp_globals["action_url"]; ?>" method="post">
|
||||
<?php printLoginInfo(); ?>
|
||||
<input type="hidden" name="state" value="edit" />
|
||||
<input type="hidden" name="state2" value="" />
|
||||
<input type="hidden" name="directory" value="<?php echo $net2ftp_globals["directory_html"]; ?>" />
|
||||
<input type="hidden" name="screen" value="2" />
|
||||
<input type="hidden" name="textareaType" value="<?php echo $textareaType; ?>" />
|
||||
<table style="padding: 2px; width: 100%; height: 100%; border: 0px;">
|
||||
<tr>
|
||||
<td style="vertical-align: top; text-align: <?php echo __("left"); ?>; width: 25%;">
|
||||
<?php if ($net2ftp_globals["skin"] != "openlaszlo") { ?>
|
||||
<?php printActionIcon("back", "document.forms['" . $formname . "'].state.value='browse';document.forms['" . $formname . "'].state2.value='main';document.forms['" . $formname . "'].submit();", ""); ?>
|
||||
<?php } ?>
|
||||
<?php printActionIcon("save", "document.forms['" . $formname . "'].screen.value=3;" . $codepress_onclick . "document.forms['" . $formname . "'].submit();", ""); ?>
|
||||
<?php printTextareaSelect($codepress_onclick . $onchange); ?>
|
||||
</td>
|
||||
<td style="vertical-align: top; text-align: <?php echo __("left"); ?>; width: 50%;">
|
||||
<?php if ($net2ftp_globals["state2"] == "") { ?>
|
||||
<input type="hidden" name="entry" value="<?php echo $net2ftp_globals["entry_html"]; ?>" />
|
||||
<?php echo __("File: "); ?><?php echo $dirfilename; ?><br />
|
||||
<?php if ($textareaType == "fckeditor" || $textareaType == "tinymce") { ?>
|
||||
<span style="font-size: 90%;"><a href="javascript:toggleTextarea('header');">Toggle header</a> <a href="javascript:toggleTextarea('body');">Toggle body</a> <a href="javascript:toggleTextarea('footer');">Toggle footer</a></span>
|
||||
<?php }
|
||||
}
|
||||
elseif ($net2ftp_globals["state2"] == "newfile") { ?>
|
||||
<?php echo __("New file name: "); ?><input class="input" type="text" name="entry" /><br />
|
||||
<?php } ?>
|
||||
<?php if (($net2ftp_globals["language"] == "ja" || $net2ftp_globals["language"] == "tc" || $net2ftp_messages["iso-8859-1"] == "UTF-8") && function_exists("mb_detect_encoding") == true) { echo __("Character encoding: "); } ?>
|
||||
<?php printEncodingSelect($text_encoding_selected); ?>
|
||||
<?php printLineBreakSelect($line_break_selected); ?>
|
||||
</td>
|
||||
<td style="vertical-align: top; text-align: <?php echo __("left"); ?>; width: 25%;">
|
||||
<span style="font-size: 90%;"><?php echo $savestatus; ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" style="vertical-align: top; text-align: <?php echo __("left"); ?>;">
|
||||
<div style="margin-<?php echo __("left"); ?>: 0px; text-align: <?php echo __("left"); ?>;">
|
||||
<?php /* ----- Plain textarea ----- */ ?>
|
||||
<?php if ($textareaType == "" || $textareaType == "plain") { ?>
|
||||
<?php // Do not use style="white-space: nowrap;" because then IE strips the carriage-return + linefeeds (tested on IE version 6.0) ?>
|
||||
<textarea name="text" class="edit" rows="33" style="width: 99%;" wrap="off" onkeydown="TabText()"><?php echo $text; ?></textarea>
|
||||
<?php }
|
||||
/* ----- FCKEditor ----- */
|
||||
elseif ($textareaType == "fckeditor") { ?>
|
||||
<div id="header_hidden"></div>
|
||||
<div id="header_shown" style="display: none;"><textarea name="text_splitted[top]" style="width: 100%; height: 200px;"><?php echo $text_splitted["top"]; ?></textarea></div>
|
||||
|
||||
<div id="body_hidden"></div>
|
||||
<div id="body_shown" style="display: block;">
|
||||
<?php $oFCKeditor = new FCKeditor("text_splitted[middle]") ;
|
||||
$oFCKeditor->BasePath = $fckeditor_basepath;
|
||||
$oFCKeditor->Value = $text_splitted["middle"];
|
||||
$oFCKeditor->Width = "100%" ;
|
||||
$oFCKeditor->Height = "450px";
|
||||
$oFCKeditor->Config['AutoDetectLanguage'] = false;
|
||||
$oFCKeditor->Config['DefaultLanguage'] = $fckeditor_language;
|
||||
$oFCKeditor->ToolbarSet = "Default";
|
||||
$oFCKeditor->Create() ; ?>
|
||||
</div>
|
||||
|
||||
<div id="footer_hidden"></div>
|
||||
<div id="footer_shown" style="display: none;"><textarea name="text_splitted[bottom]" style="width: 100%; height: 200px;"><?php echo $text_splitted["bottom"]; ?></textarea></div>
|
||||
<?php }
|
||||
/* ----- TinyMCE ----- */
|
||||
elseif ($textareaType == "tinymce") { ?>
|
||||
<div id="header_hidden"></div>
|
||||
<div id="header_shown" style="display: none;"><textarea name="text_splitted[top]" style="width: 100%; height: 200px;"><?php echo $text_splitted["top"]; ?></textarea></div>
|
||||
|
||||
<div id="body_hidden"></div>
|
||||
<div id="body_shown" style="display: block;"><textarea name="text_splitted[middle]" style="width: 100%; height: 450px;"><?php echo $text_splitted["middle"]; ?></textarea></div>
|
||||
|
||||
<div id="footer_hidden"></div>
|
||||
<div id="footer_shown" style="display: none;"><textarea name="text_splitted[bottom]" style="width: 100%; height: 200px;"><?php echo $text_splitted["bottom"]; ?></textarea></div>
|
||||
<?php }
|
||||
/* ----- CodePress ----- */
|
||||
elseif ($textareaType == "codepress") { ?>
|
||||
<textarea id="text" name="text" class="codepress <?php echo $codepress_programming_language; ?> linenumbers-on" style="width:100%; height:450px;" wrap="off"><?php echo $text; ?></textarea>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<!-- Template /skins/blue/edit.template.php end -->
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/error.template.php begin -->
|
||||
<script type="text/javascript" src="<?php echo $net2ftp_globals["application_rootdir_url"]; ?>/modules/edit/edit.js"></script>
|
||||
<div style='width:450px;'>
|
||||
<h1><?php echo __("An error has occured"); ?></h1>
|
||||
<p><?php echo $net2ftp_result["errormessage"]; ?><br /><br />
|
||||
<a href="javascript:top.history.back();"><?php echo __("Go back"); ?></a>
|
||||
</div>
|
||||
<?php require_once($net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/footer.template.php"); ?>
|
||||
<!-- Template /skins/blue/error.template.php end -->
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xml:lang="<?php echo __("en"); ?>" dir="<?php echo __("ltr"); ?>">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=<?php echo __("iso-8859-1"); ?>" />
|
||||
<meta name="keywords" content="net2ftp, web, ftp, based, web-based, xftp, client, PHP, SSL, password, server, free, gnu, gpl, gnu/gpl, net, net to ftp, netftp, connect, user, gui, interface, web2ftp, edit, editor, online, code, php, upload, download, copy, move, delete, zip, tar, unzip, untar, recursive, rename, chmod, syntax, highlighting, host, hosting, ISP, webserver, plan, bandwidth" />
|
||||
<meta name="description" content="net2ftp is a web based FTP client. It is mainly aimed at managing websites using a browser. Edit code, upload/download files, copy/move/delete directories recursively, rename files and directories -- without installing any software." />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<title>net2ftp - a web based FTP client</title>
|
||||
<?php echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"". $net2ftp_globals["application_rootdir_url"] . "/skins/" . $net2ftp_globals["skin"] . "/css/main.css.php?ltr=" . __("ltr") . "&image_url=" . urlEncode2($net2ftp_globals["image_url"]) . "\" />\n"; ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="p_ba7428_progress" class="p_ba7428" style="margin-left:auto; margin-right:auto; width:500px; padding-bottom:5px;">
|
||||
</div>
|
||||
<div id="head">
|
||||
<div id="headleft">
|
||||
<a href="http://www.net2ftp.com" target="_blank"><img src="skins/blue/images/img/logo.png" alt="net2ftp" style="width: 193px; height: 59px; border: 0;" /></a>
|
||||
</div>
|
||||
<div style="float: right; text-align: right;">
|
||||
</div>
|
||||
</div>
|
||||
<div id="main">
|
||||
<?php
|
||||
if ($net2ftp_result["success"] == false) {
|
||||
require_once($net2ftp_globals["application_rootdir"] . "/skins/" . $net2ftp_globals["skin"] . "/error.template.php");
|
||||
}
|
||||
?>
|
||||
<?php require_once($net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/footer.template.php"); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/findstring1.template.php begin -->
|
||||
<?php /* ----- List of selected entries ----- */ ?>
|
||||
<?php for ($i=1; $i<=sizeof($list["all"]); $i++) { ?>
|
||||
<?php printDirFileProperties($i, $list["all"][$i], "hidden", ""); ?>
|
||||
<?php } // end for ?>
|
||||
<table border="0" cellspacing="2" cellpadding="2">
|
||||
<tr>
|
||||
<td style="vertical-align: top;"><?php echo __("Search for a word or phrase"); ?></td>
|
||||
<td style="vertical-align: top;">
|
||||
<input type="text" class="input" name="searchoptions[string]" value="" /><br />
|
||||
<input type="checkbox" name="searchoptions[case_sensitive]" value="yes" /> <?php echo __("Case sensitive search"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><?php echo __("Restrict the search to:"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <?php echo __("files with a filename like"); ?></td>
|
||||
<td><input type="text" class="input" name="searchoptions[filename]" value="*.*" /> (wildcard character is *) </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <?php echo __("files with a size"); ?></td>
|
||||
<td><?php echo __("from"); ?> <input type="text" class="input" name="searchoptions[size_from]" value="0" maxlength="7" /> <?php echo __("to"); ?> <input type="text" class="input" name="searchoptions[size_to]" value="500000" maxlength="7" /> Bytes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <?php echo __("files which were last modified"); ?></td>
|
||||
<td><?php echo __("from"); ?> <input type="text" class="input" name="searchoptions[modified_from]" id="modified_from" value="<?php echo $modified_from; ?>" /><input type="button" id="from_trigger" class="microbutton" value="..."> <?php echo __("to"); ?> <input type="text" class="input" name="searchoptions[modified_to]" id="modified_to" value="<?php echo $modified_to; ?>" /><input type="button" id="to_trigger" class="microbutton" value="..."> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
Calendar.setup({
|
||||
inputField : "modified_from", // id of the input field
|
||||
ifFormat : "%Y-%m-%d", // format of the input field
|
||||
showsTime : false, // will display a time selector
|
||||
button : "from_trigger", // trigger for the calendar (button ID)
|
||||
singleClick : true, // double-click mode
|
||||
step : 1 // show all years in drop-down boxes (instead of every other year as default)
|
||||
});
|
||||
Calendar.setup({
|
||||
inputField : "modified_to", // id of the input field
|
||||
ifFormat : "%Y-%m-%d", // format of the input field
|
||||
showsTime : false, // will display a time selector
|
||||
button : "to_trigger", // trigger for the calendar (button ID)
|
||||
singleClick : true, // double-click mode
|
||||
step : 1 // show all years in drop-down boxes (instead of every other year as default)
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Template /skins/blue/findstring1.template.php end -->
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/findstring2.template.php begin -->
|
||||
|
||||
<input type="hidden" name="entry" value="">
|
||||
|
||||
<?php /* ----- No results are found ----- */ ?>
|
||||
<?php if (count($result) == 0) { ?>
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["findstring"]); $i++) { ?>
|
||||
<?php echo $net2ftp_output["findstring"][$i]; ?><br />
|
||||
<?php } // end for
|
||||
} // end if
|
||||
|
||||
/* ----- There are results ----- */
|
||||
else { ?>
|
||||
<?php for ($i=0; $i<sizeof($net2ftp_output["findstring"]); $i++) { ?>
|
||||
<?php echo $net2ftp_output["findstring"][$i]; ?><br />
|
||||
<?php } // end for ?>
|
||||
<br />
|
||||
<table cellpadding="2" style="border: 2px solid #CCCCFF;">
|
||||
<tr class="browse_rows_heading">
|
||||
<td><?php echo __("Directory"); ?></td>
|
||||
<td><?php echo __("File"); ?></td>
|
||||
<td><?php echo __("Line"); ?></td>
|
||||
<td colspan="2"><?php echo __("Action"); ?></td>
|
||||
</tr>
|
||||
<?php for ($i=0; $i<sizeof($result); $i++) { ?>
|
||||
<?php if ($i % 2 == 1) { $odd_even = "odd"; }
|
||||
else { $odd_even = "even"; } ?>
|
||||
<tr class="browse_rows_<?php echo $odd_even; ?>">
|
||||
<td><?php echo $result[$i]["directory"]; ?></td>
|
||||
<td><?php echo $result[$i]["dirfilename"]; ?></td>
|
||||
<td><?php echo $result[$i]["line"]; ?></td>
|
||||
<td onclick="submitFindstringForm('<?php echo $result[$i]["directory_js"]; ?>', '<?php echo $result[$i]["dirfilename_js"]; ?>', 'view', '', 1);" title="<?php echo __("View the highlighted source code of file %1\$s", $result[$i]["dirfilename_html"]); ?>" style="cursor: pointer; cursor: hand;"><?php echo __("View"); ?></td>
|
||||
<td onclick="submitFindstringForm('<?php echo $result[$i]["directory_js"]; ?>', '<?php echo $result[$i]["dirfilename_js"]; ?>', 'edit', '', 1);" title="<?php echo __("Edit the source code of file %1\$s", $result[$i]["dirfilename_html"]); ?>" style="cursor: pointer; cursor: hand;"><?php echo __("Edit"); ?></td>
|
||||
</tr>
|
||||
<?php } // end for ?>
|
||||
</table>
|
||||
<?php } // end else ?>
|
||||
<!-- Template /skins/blue/findstring2.template.php end -->
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/footer.php begin -->
|
||||
<!-- Template /skins/blue/footer.php end -->
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/footer_versioncheck.template.php begin -->
|
||||
<table border="0" cellspacing="0" cellpadding="0" style="margin-left: auto; margin-right: auto; margin-top: 20px;">
|
||||
<tr>
|
||||
<td style="text-align: center;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- net2ftp version <?php echo $net2ftp_settings["application_version"]; ?> -->
|
||||
<!-- Template /skins/blue/footer_versioncheck.template.php end -->
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/google_ad.template.php begin -->
|
||||
<?php if ($net2ftp_settings["show_google_ads"] == "yes") { ?>
|
||||
<div style="text-align: center;">
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-8420366685399799";
|
||||
google_ad_width = 728;
|
||||
google_ad_height = 90;
|
||||
google_ad_format = "728x90_as";
|
||||
google_ad_channel ="";
|
||||
google_color_border = "ECE9D9";
|
||||
google_color_bg = "FFFFFF";
|
||||
google_color_link = "0000FF";
|
||||
google_color_url = "008000";
|
||||
google_color_text = "000000";
|
||||
//--></script>
|
||||
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
|
||||
</div>
|
||||
<?php } // end if ?>
|
||||
<!-- Template /skins/blue/google_ad.template.php end -->
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/india/google_browse.template.php begin -->
|
||||
<?php if ($net2ftp_settings["show_google_ads"] == "yes") { ?>
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-8420366685399799";
|
||||
google_ad_width = 728;
|
||||
google_ad_height = 90;
|
||||
google_ad_format = "728x90_as";
|
||||
google_ad_type = "text_image";
|
||||
google_ad_channel ="5242216978";
|
||||
google_color_border = "E5E5E5";
|
||||
google_color_bg = "FFFFFF";
|
||||
google_color_link = "0000FF";
|
||||
google_color_text = "000000";
|
||||
google_color_url = "008000";
|
||||
//--></script>
|
||||
<script type="text/javascript"
|
||||
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||
</script>
|
||||
<?php } // end if ?>
|
||||
<!-- Template /skins/india/google_browse.template.php end -->
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/india/google_login_adsense.template.php begin -->
|
||||
<?php if ($net2ftp_settings["show_google_ads"] == "yes") {
|
||||
if ($net2ftp_globals["language"] == "de") { $google_cpa_choice = "CAAQ-arsiwIaCHOQv-ERh6OOKNOV5HQ"; }
|
||||
elseif ($net2ftp_globals["language"] == "fr") { $google_cpa_choice = "CAAQkePuiwIaCO3UAjw69sk6KNGZ5HQ"; }
|
||||
elseif ($net2ftp_globals["language"] == "it") { $google_cpa_choice = "CAAQ7bnviwIaCPOW4PxY3WhwKKua5HQ"; }
|
||||
elseif ($net2ftp_globals["language"] == "ja") { $google_cpa_choice = "CAAQnfbyiwIaCNKfaUtvR77WKI3vpY4B"; }
|
||||
elseif ($net2ftp_globals["language"] == "nl") { $google_cpa_choice = "CAAQ6fWwkwIaCMOg2EQx53OaKLGd5HQ"; }
|
||||
elseif ($net2ftp_globals["language"] == "pt") { $google_cpa_choice = "CAAQsf6ZjAIaCHn6Z3b50_O2KK3_5HQ"; }
|
||||
elseif ($net2ftp_globals["language"] == "se") { $google_cpa_choice = "CAAQqd6ujAIaCJMeCxvcJoYFKKH2sI4B"; }
|
||||
elseif ($net2ftp_globals["language"] == "tc") { $google_cpa_choice = "CAAQnYWvjAIaCL6aFHRetkuqKPm0i4gB"; }
|
||||
elseif ($net2ftp_globals["language"] == "zh") { $google_cpa_choice = "CAAQueuujAIaCHec1tjtOZDMKNX3sI4B"; }
|
||||
else { $google_cpa_choice = "CAAQ7c2WhAIaCETpCEPuYoTVKPmNxXQ"; }
|
||||
?>
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-8420366685399799";
|
||||
google_ad_width = 110;
|
||||
google_ad_height = 32;
|
||||
google_ad_format = "110x32_as_rimg";
|
||||
google_cpa_choice = "<?php echo $google_cpa_choice; ?>";
|
||||
google_ad_channel = "4022212193";
|
||||
//--></script>
|
||||
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||
</script>
|
||||
<?php } // end if ?>
|
||||
<!-- Template /skins/india/google_login_adsense.template.php end -->
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/india/google_login.template.php begin -->
|
||||
<?php if ($net2ftp_settings["show_google_ads"] == "yes") { ?>
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-8420366685399799";
|
||||
google_ad_width = 120;
|
||||
google_ad_height = 240;
|
||||
google_ad_format = "120x240_as";
|
||||
google_ad_type = "text_image";
|
||||
google_ad_channel ="9294235009";
|
||||
google_color_border = "E5E5E5";
|
||||
google_color_bg = "FFFFFF";
|
||||
google_color_link = "0000FF";
|
||||
google_color_text = "000000";
|
||||
google_color_url = "008000";
|
||||
//--></script>
|
||||
<script type="text/javascript"
|
||||
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||
</script>
|
||||
<?php } // end if ?>
|
||||
<!-- Template /skins/india/google_login.template.php end -->
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/india/google_login.template.php begin -->
|
||||
<?php if ($net2ftp_settings["show_google_ads"] == "yes") { ?>
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-8420366685399799";
|
||||
google_ad_width = 120;
|
||||
google_ad_height = 240;
|
||||
google_ad_format = "120x240_as_rimg";
|
||||
google_cpa_choice = "CAAQ6euXhAIaCCVoLCVNhFbqKPG193M";
|
||||
google_ad_channel = "4022212193";
|
||||
//--></script>
|
||||
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||
</script>
|
||||
<?php } // end if ?>
|
||||
<!-- Template /skins/india/google_login.template.php end -->
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/india/google_logout.template.php begin -->
|
||||
<?php if ($net2ftp_settings["show_google_ads"] == "yes") { ?>
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-8420366685399799";
|
||||
google_ad_width = 728;
|
||||
google_ad_height = 90;
|
||||
google_ad_format = "728x90_as";
|
||||
google_ad_type = "text_image";
|
||||
google_ad_channel ="7866670543";
|
||||
google_color_border = "E5E5E5";
|
||||
google_color_bg = "FFFFFF";
|
||||
google_color_link = "0000FF";
|
||||
google_color_text = "000000";
|
||||
google_color_url = "008000";
|
||||
//--></script>
|
||||
<script type="text/javascript"
|
||||
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||
</script>
|
||||
<?php } // end if ?>
|
||||
<!-- Template /skins/india/google_logout.template.php end -->
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/google_ad.template.php begin -->
|
||||
<?php if ($net2ftp_settings["show_google_ads"] == "yes") { ?>
|
||||
<script type="text/javascript"><!--
|
||||
google_ad_client = "pub-8420366685399799";
|
||||
google_ad_width = 468;
|
||||
google_ad_height = 60;
|
||||
google_ad_format = "468x60_as_rimg";
|
||||
google_cpa_choice = "CAAQkJOlgwIaCApbJOofoGPvKIjLynM";
|
||||
google_ad_channel = "2844204813";
|
||||
//--></script>
|
||||
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||||
</script>
|
||||
<?php } // end if ?>
|
||||
<!-- Template /skins/blue/google_ad.template.php end -->
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/shinra/header.template.php begin -->
|
||||
|
||||
<!-- WRAPPER -->
|
||||
<div id="wrapper">
|
||||
|
||||
<!-- HEADER -->
|
||||
<div id="header">
|
||||
|
||||
|
||||
</div>
|
||||
<!-- ENDS HEADER -->
|
||||
|
||||
<!-- MAIN -->
|
||||
<div id="main" style="display: table; margin-left: auto; margin-right: auto;">
|
||||
|
||||
<!-- content -->
|
||||
<div id="content">
|
||||
|
||||
<!-- title -->
|
||||
<div id="page-title">
|
||||
<span class="title"><?php echo $net2ftp_globals["ftpserver"]; ?></span>
|
||||
<div style="text-align: right; margin-top: 10px;">
|
||||
<form id="StatusbarForm" method="post" action="<?php echo $net2ftp_globals["action_url"]; ?>">
|
||||
<?php printLoginInfo(); ?>
|
||||
<input type="hidden" name="state" value="browse" />
|
||||
<input type="hidden" name="state2" value="main" />
|
||||
<input type="hidden" name="directory" value="<?php echo $net2ftp_globals["directory_html"]; ?>" />
|
||||
<input type="hidden" name="url_withpw" value="<?php echo printPHP_SELF("bookmark_withpw"); ?>" />
|
||||
<input type="hidden" name="url_withoutpw" value="<?php echo printPHP_SELF("bookmark_withoutpw"); ?>" />
|
||||
<input type="hidden" name="text" value="net2ftp <?php echo $net2ftp_globals["ftpserver"]; ?>" />
|
||||
<?php if ($net2ftp_globals["state"] != "bookmark") { printActionIcon("bookmark", "document.forms['StatusbarForm'].state.value='bookmark';document.forms['StatusbarForm'].submit();"); } ?>
|
||||
<?php if (getBrowser("agent") != "Chrome") { printActionIcon("refresh", "window.location.reload();"); } ?>
|
||||
<?php printActionIcon("help", "void(window.open('" . $net2ftp_globals["application_rootdir_url"] . "/modules/help/help-user.html','Help','location,menubar,resizable,scrollbars,status,toolbar'));"); ?>
|
||||
<?php printActionIcon("logout", "document.forms['StatusbarForm'].state.value='logout';document.forms['StatusbarForm'].submit();"); ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ENDS title -->
|
||||
|
||||
<!-- Template /skins/shinra/header.template.php end -->
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?php defined("NET2FTP") or die("Direct access to this location is not allowed."); ?>
|
||||
<!-- Template /skins/blue/header_login.template.php begin -->
|
||||
<div id="container">
|
||||
<div id="head">
|
||||
<div id="headleft">
|
||||
</div>
|
||||
<div id="headright">
|
||||
</div>
|
||||
</div>
|
||||
<!-- Template /skins/blue/header_login.template.php end -->
|
||||
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 43 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 51 B |
|
Before Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 43 B |
|
Before Width: | Height: | Size: 2 KiB |
|
|
@ -1,13 +0,0 @@
|
|||
|
||||
The images within this directory are released under the LGPL license.
|
||||
They come from 2 different iconsets, originally developed for KDE.
|
||||
|
||||
For more information, refer to the links below.
|
||||
|
||||
Noia for KDE 1.00:
|
||||
http://www.kde-look.org/content/show.php?content=3883
|
||||
http://www.carlitus.net/
|
||||
|
||||
Nuvola 1.0:
|
||||
http://www.kde-look.org/content/show.php?content=5358
|
||||
http://www.icon-king.com/
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 979 B |
|
Before Width: | Height: | Size: 781 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 808 B |
|
Before Width: | Height: | Size: 948 B |
|
Before Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 558 B |
|
Before Width: | Height: | Size: 479 B |
|
Before Width: | Height: | Size: 892 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 458 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 647 B |
|
Before Width: | Height: | Size: 931 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 979 B |
|
Before Width: | Height: | Size: 43 B |
|
Before Width: | Height: | Size: 970 B |
|
Before Width: | Height: | Size: 1 KiB |