Changeset 381 for trunk/admin/admin.php


Ignore:
Timestamp:
Oct 28, 2022, 7:14:26 PM (19 months ago)
Author:
roby
Message:

INSTALL
adeguamento php5
ADMIN
continua elaborazione funzione di aggiornamento

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r380 r381  
    277277if(!isset($_SESSION['localrev']) and isset($_SESSION['aid']) and ChiSei(0)==256)
    278278{
    279 /*      $sql="SELECT COLUMN_NAME
     279        $sql="SELECT COLUMN_NAME
    280280        FROM INFORMATION_SCHEMA.COLUMNS
    281281        WHERE TABLE_SCHEMA = '$dbname'
     
    284284        $sth = $dbi->prepare($sql);
    285285        $sth->execute();
    286         if(!$sth->rowCount())
     286        if($sth->rowCount())
    287287        {               
    288                 $sql="ALTER TABLE `soraldo_config` ADD `aggiornamento` ENUM('0','1','2') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1' AFTER `ed_user`;";
     288                $sql="ALTER TABLE `soraldo_config` DROP `aggiornamento`;";
    289289                $sth = $dbi->prepare($sql);
    290290                $sth->execute();
    291291        }
    292         $sth = $dbi->prepare("select aggiornamento from ".$prefix."_config");
     292/*      $sth = $dbi->prepare("select aggiornamento from ".$prefix."_config");
    293293        $sth->execute();
    294294        list($agg)=$sth->fetch(PDO::FETCH_NUM);
Note: See TracChangeset for help on using the changeset viewer.