Ajoute l'aide de configuration dans la page FTP + variable pour définir le host à utiliser dans son client ftp

This commit is contained in:
Alan Garcia 2013-02-26 15:05:10 +00:00
parent ed5886cb1e
commit 90057f5f0b
2 changed files with 17 additions and 0 deletions

View File

@ -93,6 +93,20 @@ while (list($key,$val)=each($r))
<p><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></p> <p><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></p>
</form> </form>
<br/>
<hr/>
<h3><?php __("FTP configuration informations");?></h3>
<?php __("Here are some configuration informations you'll need to configure your FTP application.");?>
<ul>
<li><?php echo '<b>'._("Server:").'</b> '.$ftp->srv_name; ?></li>
<li><?php echo '<b>'._("FTP mode for data transfert:").'</b> '._("passive");?></li>
<li><?php echo '<b>'._("User/password:").'</b> '._("the one you specified when you created the account. You can edit them in the panel.");?></li>
<ul>
<br/>
<?php <?php
$mem->show_help("ftp_list"); $mem->show_help("ftp_list");
?> ?>

View File

@ -29,11 +29,14 @@
class m_ftp { class m_ftp {
var $srv_name;
/* ----------------------------------------------------------------- */ /* ----------------------------------------------------------------- */
/** /**
* Constructeur * Constructeur
*/ */
function m_ftp() { function m_ftp() {
global $L_FQDN;
$this->srv_name = variable_get('ftp_human_name', $L_FQDN,'Human name for FTP server');
} }