Qual: Removed useless code for old modules. There is hook now to do same
job.
This commit is contained in:
parent
e0bbb78f56
commit
145573ea79
@ -196,11 +196,6 @@ if ($action == 'add' && $canadduser)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME external module
|
|
||||||
$object->webcal_login = $_POST["webcal_login"];
|
|
||||||
$object->phenix_login = $_POST["phenix_login"];
|
|
||||||
$object->phenix_pass = $_POST["phenix_pass"];
|
|
||||||
|
|
||||||
// If multicompany is off, admin users must all be on entity 0.
|
// If multicompany is off, admin users must all be on entity 0.
|
||||||
if (! empty($conf->multicompany->enabled))
|
if (! empty($conf->multicompany->enabled))
|
||||||
{
|
{
|
||||||
@ -342,11 +337,6 @@ if ($action == 'update' && ! $_POST["cancel"])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME external module
|
|
||||||
$object->webcal_login = $_POST["webcal_login"];
|
|
||||||
$object->phenix_login = $_POST["phenix_login"];
|
|
||||||
$object->phenix_pass = $_POST["phenix_pass"];
|
|
||||||
|
|
||||||
if (! empty($conf->multicompany->enabled))
|
if (! empty($conf->multicompany->enabled))
|
||||||
{
|
{
|
||||||
if (! empty($_POST["superadmin"]))
|
if (! empty($_POST["superadmin"]))
|
||||||
@ -936,23 +926,6 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Module Webcalendar
|
|
||||||
// TODO external module
|
|
||||||
if (! empty($conf->webcalendar->enabled))
|
|
||||||
{
|
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("LoginWebcal").'</td>';
|
|
||||||
print '<td><input size="30" type="text" name="webcal_login" value="'.$_POST["webcal_login"].'"></td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Module Phenix
|
|
||||||
// TODO external module
|
|
||||||
if (! empty($conf->phenix->enabled))
|
|
||||||
{
|
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("LoginPenix").'</td>';
|
|
||||||
print '<td><input size="30" type="text" name="phenix_login" value="'.$_POST["phenix_login"].'"></td></tr>';
|
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("PassPenix").'</td>';
|
|
||||||
print '<td><input size="30" type="text" name="phenix_pass" value="'.$_POST["phenix_pass"].'"></td></tr>';
|
|
||||||
}
|
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
||||||
print '<center><br><input class="button" value="'.$langs->trans("CreateUser").'" name="create" type="submit"></center>';
|
print '<center><br><input class="button" value="'.$langs->trans("CreateUser").'" name="create" type="submit"></center>';
|
||||||
@ -1089,9 +1062,6 @@ else
|
|||||||
if (isset($conf->authmode) && preg_match('/myopenid/',$conf->authmode)) $rowspan++;
|
if (isset($conf->authmode) && preg_match('/myopenid/',$conf->authmode)) $rowspan++;
|
||||||
if (! empty($conf->societe->enabled)) $rowspan++;
|
if (! empty($conf->societe->enabled)) $rowspan++;
|
||||||
if (! empty($conf->adherent->enabled)) $rowspan++;
|
if (! empty($conf->adherent->enabled)) $rowspan++;
|
||||||
if (! empty($conf->webcalendar->enabled)) $rowspan++; // TODO external module
|
|
||||||
if (! empty($conf->phenix->enabled)) $rowspan+=2; // TODO external module
|
|
||||||
|
|
||||||
|
|
||||||
// Lastname
|
// Lastname
|
||||||
print '<tr><td valign="top">'.$langs->trans("Lastname").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("Lastname").'</td>';
|
||||||
@ -1256,29 +1226,6 @@ else
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Module Webcalendar
|
|
||||||
// TODO external module
|
|
||||||
if (! empty($conf->webcalendar->enabled))
|
|
||||||
{
|
|
||||||
$langs->load("other");
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("LoginWebcal").'</td>';
|
|
||||||
print '<td>'.$object->webcal_login.' </td>';
|
|
||||||
print '</tr>'."\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Module Phenix
|
|
||||||
// TODO external module
|
|
||||||
if (! empty($conf->phenix->enabled))
|
|
||||||
{
|
|
||||||
$langs->load("other");
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("LoginPhenix").'</td>';
|
|
||||||
print '<td>'.$object->phenix_login.' </td>';
|
|
||||||
print "</tr>\n";
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("PassPhenix").'</td>';
|
|
||||||
print '<td>'.preg_replace('/./i','*',$object->phenix_pass_crypted).' </td>';
|
|
||||||
print '</tr>'."\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Company / Contact
|
// Company / Contact
|
||||||
if (! empty($conf->societe->enabled))
|
if (! empty($conf->societe->enabled))
|
||||||
{
|
{
|
||||||
@ -1575,8 +1522,6 @@ else
|
|||||||
|
|
||||||
if (! empty($conf->societe->enabled)) $rowspan++;
|
if (! empty($conf->societe->enabled)) $rowspan++;
|
||||||
if (! empty($conf->adherent->enabled)) $rowspan++;
|
if (! empty($conf->adherent->enabled)) $rowspan++;
|
||||||
if (! empty($conf->webcalendar->enabled)) $rowspan++; // TODO external module
|
|
||||||
if (! empty($conf->phenix->enabled)) $rowspan+=2; // TODO external module
|
|
||||||
|
|
||||||
print '<tr><td width="25%" valign="top">'.$langs->trans("Ref").'</td>';
|
print '<tr><td width="25%" valign="top">'.$langs->trans("Ref").'</td>';
|
||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
@ -1867,35 +1812,6 @@ else
|
|||||||
print $object->getLibStatut(4);
|
print $object->getLibStatut(4);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Module Webcalendar
|
|
||||||
// TODO external module
|
|
||||||
if (! empty($conf->webcalendar->enabled))
|
|
||||||
{
|
|
||||||
$langs->load("other");
|
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("LoginWebcal").'</td>';
|
|
||||||
print '<td>';
|
|
||||||
if ($caneditfield) print '<input size="30" type="text" class="flat" name="webcal_login" value="'.$object->webcal_login.'">';
|
|
||||||
else print $object->webcal_login;
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Module Phenix
|
|
||||||
// TODO external module
|
|
||||||
if (! empty($conf->phenix->enabled))
|
|
||||||
{
|
|
||||||
$langs->load("other");
|
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("LoginPhenix").'</td>';
|
|
||||||
print '<td>';
|
|
||||||
if ($caneditfield) print '<input size="30" type="text" class="flat" name="phenix_login" value="'.$object->phenix_login.'">';
|
|
||||||
else print $object->phenix_login;
|
|
||||||
print '</td></tr>';
|
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("PassPhenix").'</td>';
|
|
||||||
print '<td>';
|
|
||||||
if ($caneditfield) print '<input size="30" type="password" class="flat" name="phenix_pass" value="'.$object->phenix_pass_crypted.'">';
|
|
||||||
else print preg_replace('/./i','*',$object->phenix_pass_crypted);
|
|
||||||
print '</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Company / Contact
|
// Company / Contact
|
||||||
if (! empty($conf->societe->enabled))
|
if (! empty($conf->societe->enabled))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user