Fix W3C on FTP setup page
This commit is contained in:
parent
b15535c1f1
commit
7b3793c775
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2004-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -37,7 +37,12 @@ $lastftpentry=0;
|
|||||||
$action = GETPOST('action','alpha');
|
$action = GETPOST('action','alpha');
|
||||||
$entry = GETPOST('numero_entry','alpha');
|
$entry = GETPOST('numero_entry','alpha');
|
||||||
|
|
||||||
// Positionne la variable pour le nombre de rss externes
|
|
||||||
|
/*
|
||||||
|
* Action
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Get value for $lastftpentry
|
||||||
$sql ="select MAX(name) as name from ".MAIN_DB_PREFIX."const";
|
$sql ="select MAX(name) as name from ".MAIN_DB_PREFIX."const";
|
||||||
$sql.=" WHERE name like 'FTP_SERVER_%'";
|
$sql.=" WHERE name like 'FTP_SERVER_%'";
|
||||||
$result=$db->query($sql);
|
$result=$db->query($sql);
|
||||||
@ -210,8 +215,6 @@ else
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">'."\n";
|
|
||||||
|
|
||||||
$sql ="select name, value, note from ".MAIN_DB_PREFIX."const";
|
$sql ="select name, value, note from ".MAIN_DB_PREFIX."const";
|
||||||
$sql.=" WHERE name like 'FTP_SERVER_%'";
|
$sql.=" WHERE name like 'FTP_SERVER_%'";
|
||||||
$sql.=" ORDER BY name";
|
$sql.=" ORDER BY name";
|
||||||
@ -235,9 +238,13 @@ else
|
|||||||
|
|
||||||
print "<form name=\"externalrssconfig\" action=\"".$_SERVER["PHP_SELF"]."\" method=\"post\">";
|
print "<form name=\"externalrssconfig\" action=\"".$_SERVER["PHP_SELF"]."\" method=\"post\">";
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<input type="hidden" name="numero_entry" value="'.$idrss.'">';
|
||||||
|
|
||||||
print "<tr class=\"liste_titre\">";
|
print '<table class="noborder" width="100%">'."\n";
|
||||||
print "<td colspan=\"2\">".$langs->trans("FTP")." ".($idrss)."</td>";
|
|
||||||
|
print '<tr class="liste_titre">';
|
||||||
|
print '<td class="fieldtitle">'.$langs->trans("FTP")." ".($idrss)."</td>";
|
||||||
|
print '<td></td>';
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
@ -281,11 +288,13 @@ else
|
|||||||
print "<input type=\"submit\" class=\"button\" name=\"modify\" value=\"".$langs->trans("Modify")."\">";
|
print "<input type=\"submit\" class=\"button\" name=\"modify\" value=\"".$langs->trans("Modify")."\">";
|
||||||
print " ";
|
print " ";
|
||||||
print "<input type=\"submit\" class=\"button\" name=\"delete\" value=\"".$langs->trans("Delete")."\">";
|
print "<input type=\"submit\" class=\"button\" name=\"delete\" value=\"".$langs->trans("Delete")."\">";
|
||||||
print "<input type=\"hidden\" name=\"numero_entry\" value=\"".$idrss."\">";
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
|
print '</table>';
|
||||||
|
|
||||||
print "</form>";
|
print "</form>";
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@ -294,9 +303,6 @@ else
|
|||||||
{
|
{
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2008-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2008-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2008-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2008-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -20,7 +20,6 @@
|
|||||||
* \file htdocs/ftp/index.php
|
* \file htdocs/ftp/index.php
|
||||||
* \ingroup ftp
|
* \ingroup ftp
|
||||||
* \brief Main page for FTP section area
|
* \brief Main page for FTP section area
|
||||||
* \author Laurent Destailleur
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require('../main.inc.php');
|
require('../main.inc.php');
|
||||||
@ -418,7 +417,6 @@ else
|
|||||||
if ($action == 'delete_section')
|
if ($action == 'delete_section')
|
||||||
{
|
{
|
||||||
print $form->formconfirm($_SERVER["PHP_SELF"].'?numero_ftp='.$numero_ftp.'§ion='.urlencode($_REQUEST["section"]).'&file='.urlencode($_GET["file"]), $langs->trans('DeleteSection'), $langs->trans('ConfirmDeleteSection',$ecmdir->label), 'confirm_deletesection','','',1);
|
print $form->formconfirm($_SERVER["PHP_SELF"].'?numero_ftp='.$numero_ftp.'§ion='.urlencode($_REQUEST["section"]).'&file='.urlencode($_GET["file"]), $langs->trans('DeleteSection'), $langs->trans('ConfirmDeleteSection',$ecmdir->label), 'confirm_deletesection','','',1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print $langs->trans("Server").': <b>'.$ftp_server.'</b><br>';
|
print $langs->trans("Server").': <b>'.$ftp_server.'</b><br>';
|
||||||
@ -646,8 +644,21 @@ else
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$s_ftp_server='FTP_SERVER_1';
|
$foundsetup=false;
|
||||||
if (empty($s_ftp_server))
|
$MAXFTP=20;
|
||||||
|
$i=1;
|
||||||
|
while ($i <= $MAXFTP)
|
||||||
|
{
|
||||||
|
$paramkey='FTP_NAME_'.$i;
|
||||||
|
//print $paramkey;
|
||||||
|
if (! empty($conf->global->$paramkey))
|
||||||
|
{
|
||||||
|
$foundsetup=true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
if (! $foundsetup)
|
||||||
{
|
{
|
||||||
print $langs->trans("SetupOfFTPClientModuleNotComplete");
|
print $langs->trans("SetupOfFTPClientModuleNotComplete");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user