Fix: register_globals=off
This commit is contained in:
parent
7af4580b90
commit
b28a2436c6
@ -71,13 +71,15 @@ if ($action=='delete')
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
$socid=$_GET["socid"];
|
||||||
|
|
||||||
if ($socid > 0)
|
if ($socid > 0)
|
||||||
{
|
{
|
||||||
$societe = new Societe($db);
|
$societe = new Societe($db);
|
||||||
if ($societe->fetch($socid))
|
if ($societe->fetch($socid))
|
||||||
{
|
{
|
||||||
|
|
||||||
$head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$_GET["socid"];
|
$head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id;
|
||||||
$head[0][1] = "Fiche société";
|
$head[0][1] = "Fiche société";
|
||||||
$h = 1;
|
$h = 1;
|
||||||
|
|
||||||
@ -94,7 +96,6 @@ if ($socid > 0)
|
|||||||
$head[$h][1] = 'Prospect';
|
$head[$h][1] = 'Prospect';
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($societe->fournisseur)
|
if ($societe->fournisseur)
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id;
|
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id;
|
||||||
@ -116,37 +117,39 @@ if ($socid > 0)
|
|||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id;
|
$head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id;
|
||||||
$head[$h][1] = 'Documents';
|
$head[$h][1] = 'Documents';
|
||||||
$a = $h;
|
$hselected = $h;
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id;
|
$head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id;
|
||||||
$head[$h][1] = 'Notifications';
|
$head[$h][1] = 'Notifications';
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $a);
|
dolibarr_fiche_head($head, $hselected, $societe->nom);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
print_titre("Documents associés à l'entreprise : $societe->nom");
|
print_titre("Documents associés");
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (defined('MAIN_UPLOAD_DOC') && MAIN_UPLOAD_DOC == 1)
|
if (defined('MAIN_UPLOAD_DOC') && MAIN_UPLOAD_DOC == 1)
|
||||||
{
|
{
|
||||||
echo '<FORM NAME="userfile" ACTION="docsoc.php?socid='.$socid.'" ENCTYPE="multipart/form-data" METHOD="POST">';
|
echo '<form name="userfile" action="docsoc.php?socid='.$socid.'" enctype="multipart/form-data" METHOD="POST">';
|
||||||
print '<input type="hidden" name="max_file_size" value="2000000">';
|
print '<input type="hidden" name="max_file_size" value="2000000">';
|
||||||
print '<input type="file" name="userfile" size="40" maxlength="80">';
|
print '<input type="file" name="userfile" size="40" maxlength="80">';
|
||||||
print '<BR>';
|
print '<br>';
|
||||||
print '<input type="submit" value="Upload File!" name="sendit">';
|
print '<input type="submit" value="'.$langs->trans("Upload").'" name="sendit">';
|
||||||
print '<input type="submit" value="Cancel" name="cancelit"><BR>';
|
print '<input type="submit" value="'.$langs->trans("Cancel").'" name="cancelit"><br>';
|
||||||
print '</FORM>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "La gestion des fichiers associés est désactivée sur ce serveur";
|
print "La gestion des fichiers associés est désactivée sur ce serveur";
|
||||||
}
|
}
|
||||||
print '</div>';
|
print '<br></div>';
|
||||||
|
|
||||||
print $mesg;
|
print $mesg;
|
||||||
|
|
||||||
@ -185,13 +188,14 @@ if ($socid > 0)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $db->error() . "<br>" . $sql;
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "Erreur";
|
dolibarr_print_error();
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user