mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Removed a deprecated page
This commit is contained in:
parent
4a017ebc46
commit
ca57bac266
|
|
@ -35,12 +35,12 @@ $langs->loadLangs(array('admin', 'users', 'other'));
|
|||
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
|
||||
$entity = $conf->entity;
|
||||
|
||||
if (!$user->admin) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
$entity = $conf->entity;
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
|
|
@ -65,6 +65,8 @@ if ($action == 'remove') {
|
|||
* View
|
||||
*/
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
$wikihelp = 'EN:Setup_Security|FR:Paramétrage_Sécurité|ES:Configuración_Seguridad';
|
||||
|
||||
llxHeader('', $langs->trans("DefaultRights"), $wikihelp);
|
||||
|
|
|
|||
|
|
@ -289,31 +289,31 @@ if (getDolGlobalString('USER_PASSWORD_GENERATED') == "Perso") {
|
|||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("MinLength")."</td>";
|
||||
print '<td><input type="number" value="'.$tabConf[0].'" id="minlenght" min="1"></td>';
|
||||
print '<td><input type="number" class="width50 right" value="'.$tabConf[0].'" id="minlength" min="1"></td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("NbMajMin")."</td>";
|
||||
print '<td><input type="number" value="'.$tabConf[1].'" id="NbMajMin" min="0"></td>';
|
||||
print '<td><input type="number" class="width50 right" value="'.$tabConf[1].'" id="NbMajMin" min="0"></td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("NbNumMin")."</td>";
|
||||
print '<td><input type="number" value="'.$tabConf[2].'" id="NbNumMin" min="0"></td>';
|
||||
print '<td><input type="number" class="width50 right" value="'.$tabConf[2].'" id="NbNumMin" min="0"></td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("NbSpeMin")."</td>";
|
||||
print '<td><input type="number" value="'.$tabConf[3].'" id="NbSpeMin" min="0"></td>';
|
||||
print '<td><input type="number" class="width50 right" value="'.$tabConf[3].'" id="NbSpeMin" min="0"></td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("NbIteConsecutive")."</td>";
|
||||
print '<td><input type="number" value="'.$tabConf[4].'" id="NbIteConsecutive" min="0"></td>';
|
||||
print '<td><input type="number" class="width50 right" value="'.$tabConf[4].'" id="NbIteConsecutive" min="0"></td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -873,13 +873,15 @@ function security_prepare_head()
|
|||
dol_print_error($db);
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/admin/perms.php";
|
||||
$head[$h][1] = $langs->trans("DefaultRights");
|
||||
if ($nbPerms > 0) {
|
||||
$head[$h][1] .= (!getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER') ? '<span class="badge marginleftonlyshort">'.$nbPerms.'</span>' : '');
|
||||
if (getDolGlobalString('MAIN_SECURITY_USE_DEFAULT_PERMISSIONS')) {
|
||||
$head[$h][0] = DOL_URL_ROOT."/admin/perms.php";
|
||||
$head[$h][1] = $langs->trans("DefaultRights");
|
||||
if ($nbPerms > 0) {
|
||||
$head[$h][1] .= (!getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER') ? '<span class="badge marginleftonlyshort">'.$nbPerms.'</span>' : '');
|
||||
}
|
||||
$head[$h][2] = 'default';
|
||||
$h++;
|
||||
}
|
||||
$head[$h][2] = 'default';
|
||||
$h++;
|
||||
|
||||
return $head;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5999,8 +5999,6 @@ function print_fiche_titre($title, $mesg = '', $picto = 'generic', $pictoisfullp
|
|||
*/
|
||||
function load_fiche_titre($titre, $morehtmlright = '', $picto = 'generic', $pictoisfullpath = 0, $id = '', $morecssontable = '', $morehtmlcenter = '')
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$return = '';
|
||||
|
||||
if ($picto == 'setup') {
|
||||
|
|
|
|||
|
|
@ -181,18 +181,6 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||
*/
|
||||
public $module_parts = array();
|
||||
|
||||
/**
|
||||
* @var string Module documents ?
|
||||
* @deprecated Seems unused anywhere
|
||||
*/
|
||||
public $docs;
|
||||
|
||||
/**
|
||||
* @var string ?
|
||||
* @deprecated Seems unused anywhere
|
||||
*/
|
||||
public $dbversion = "-";
|
||||
|
||||
/**
|
||||
* @var string Error message
|
||||
*/
|
||||
|
|
@ -1958,7 +1946,6 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||
$objcount = $this->db->fetch_object($resqlselect);
|
||||
if ($objcount && $objcount->nb == 0) {
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."rights_def (";
|
||||
|
||||
$sql .= "id";
|
||||
$sql .= ", entity";
|
||||
$sql .= ", libelle";
|
||||
|
|
@ -1969,9 +1956,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||
$sql .= ", perms";
|
||||
$sql .= ", subperms";
|
||||
$sql .= ", enabled";
|
||||
|
||||
$sql .= ") VALUES (";
|
||||
|
||||
$sql .= ((int) $r_id);
|
||||
$sql .= ", ".((int) $entity);
|
||||
$sql .= ", '".$this->db->escape($r_label)."'";
|
||||
|
|
@ -1982,7 +1967,6 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||
$sql .= ", '".$this->db->escape($r_perms)."'";
|
||||
$sql .= ", '".$this->db->escape($r_subperms)."'";
|
||||
$sql .= ", '".$this->db->escape($r_enabled)."'";
|
||||
|
||||
$sql.= ")";
|
||||
|
||||
$resqlinsert = $this->db->query($sql, 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user