Changeset 378


Ignore:
Timestamp:
Oct 3, 2022, 5:35:26 PM (19 months ago)
Author:
roby
Message:

ADMIN

  • aggiunta funzione sperimentale e parziale per l'aggiornamento automatico all'ultima rev
Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r377 r378  
    206206        $_SESSION['ed_user']=$row['ed_user'];
    207207        $multicomune=$row['multicomune'];
    208 }
     208}
     209if(!isset($_SESSION['aggiornamento']) and isset($_SESSION['aid']) and ChiSei(0)==256)
     210{
     211        $sql="SELECT COLUMN_NAME
     212        FROM INFORMATION_SCHEMA.COLUMNS
     213        WHERE TABLE_SCHEMA = '$dbname'
     214        AND TABLE_NAME = '".$prefix."_config'
     215        AND COLUMN_NAME = 'aggiornamento'";
     216        $sth = $dbi->prepare($sql);
     217        $sth->execute();
     218        if($sth->rowCount())
     219        {
     220                $sth = $dbi->prepare("select aggiornamento from ".$prefix."_config");
     221                $sth->execute();
     222                list($agg)=$sth->fetch(PDO::FETCH_NUM);
     223                $_SESSION['aggiornamento']=$agg;
     224                if($agg) include('aggiornamento.php');
     225        }else{
     226                $sql="ALTER TABLE `soraldo_config` ADD `aggiornamento` ENUM('0','1','2') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '2' AFTER `ed_user`;";
     227                $sth = $dbi->prepare($sql);
     228                $sth->execute();
     229        }
     230}
    209231//fine
    210232        if (isset($param['tema'])) $_SESSION['tema']=$param['tema'];
  • trunk/admin/versione.php

    r377 r378  
    11<?php
    22
    3 $versione = "3.0 rev 377";
     3$versione = "3.0 rev 378";
    44$version_number = $versione;
    5 $datarel = "28 settembre 2022";
     5$datarel = "03 ottobre 2022";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
  • trunk/client/versione.php

    r377 r378  
    11<?php
    22
    3 $versione = "3.0 rev 377";
     3$versione = "3.0 rev 378";
    44$version_number = $versione;
    5 $datarel = "28 settembre 2022";
     5$datarel = "03 ottobre 2022";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
Note: See TracChangeset for help on using the changeset viewer.