Changeset 378 for trunk/admin/admin.php
- Timestamp:
- Oct 3, 2022, 5:35:26 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r377 r378 206 206 $_SESSION['ed_user']=$row['ed_user']; 207 207 $multicomune=$row['multicomune']; 208 } 208 } 209 if(!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 } 209 231 //fine 210 232 if (isset($param['tema'])) $_SESSION['tema']=$param['tema'];
Note:
See TracChangeset
for help on using the changeset viewer.