Ignore:
Timestamp:
May 21, 2024, 10:18:28 PM (5 weeks ago)
Author:
roby
Message:
  • ADMIN

-- Inserita la variabile in config.php per il numero di liste per pagina visualizzate
-- Modificato l'aggiornamento del db per accettare nome personalizzato del superuser

  • CLIENT

-- Inserita la variabile in config.php per il numero di liste per pagina visualizzate
-- Aggiornata una query per la compatibilità con l'impostazione di mysql sql_mode=only_full_group_by

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/aggiornadb.php

    r411 r416  
    116116        $sql="UPDATE `".$prefix."_authors` SET `adminop` = '1', `adminsuper` = '0',`admincomune` = '0' WHERE `".$prefix."_authors`.`aid` != 'admin' AND `".$prefix."_authors`.`adminsuper` != '1'";
    117117        $ret=aggiorna($sql,$dbi,'',$num);
    118         $sql="UPDATE `".$prefix."_authors` SET `adminop` = '0', `adminsuper` = '0',`admincomune` = '1' WHERE `".$prefix."_authors`.`aid` = 'admin'";
     118        $sql="UPDATE `".$prefix."_authors` SET `adminop` = '0', `adminsuper` = '0',`admincomune` = '1' WHERE `".$prefix."_authors`.`aid` = 'admin' and `".$prefix."_authors`.`adminsuper` != '1'";
    119119        $ret=aggiorna($sql,$dbi,'',$num);
    120120        $sql="UPDATE `".$prefix."_authors` SET `adminop` = '0', `adminsuper` = '1',`admincomune` = '0' WHERE `".$prefix."_authors`.`aid` = 'suser' or `".$prefix."_authors`.`adminsuper` = '1'";
Note: See TracChangeset for help on using the changeset viewer.