Changeset 392 for trunk/admin/modules/Elezioni/aggiornamento.php
- Timestamp:
- Feb 27, 2023, 3:21:16 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/aggiornamento.php
r386 r392 56 56 Header("Location: admin.php?op=aggiorna&id_cons_gen=$id_cons_gen&errmex=$errmex"); exit; 57 57 } 58 echo "<style> 59 body 60 { 61 width:100%; 62 margin:0 auto; 63 padding:0px; 64 font-family:helvetica; 65 background-color:#A9D0F5; 66 } 67 #wrapper 68 { 69 text-align:left; 70 margin-left:20px; 71 padding:0px; 72 width:995px; 73 } 74 #wrapperleft 75 { 76 text-align:center; 77 margin:0 auto; 78 padding:0px; 79 width:995px; 80 } 81 #wrapper h1 82 { 83 margin-top:100px; 84 font-size:40px; 85 } 86 #wrapper h1 p 87 { 88 font-size:17px; 89 } 90 #wrapper #feed_div 91 { 92 background-color:white; 93 width:550px; 94 height:320px; 95 overflow-y:scroll; 96 margin-left:20px; 97 margin-top:20px; 98 text-align:left; 99 border:1px solid silver; 100 padding:10px; 101 } 102 #wrapper #feed_div h2 103 { 104 font-size:17px; 105 } 106 #wrapper #feed_div .title a 107 { 108 text-decoration:none; 109 color:#0080FF; 110 } 111 </style>"; 58 112 if(!$procedi){ 59 113 ele(); 60 114 echo "<hr><br><h2 style=\"text-align:center;\">Revisione installata: $myrev<br>Revisione disponibile: $newrev</h2><br><hr>"; 61 115 ##### 62 echo "<style> 63 body 64 { 65 width:100%; 66 margin:0 auto; 67 padding:0px; 68 font-family:helvetica; 69 background-color:#A9D0F5; 70 } 71 #wrapper 72 { 73 text-align:center; 74 margin:0 auto; 75 padding:0px; 76 width:995px; 77 } 78 #wrapper h1 79 { 80 margin-top:100px; 81 font-size:40px; 82 } 83 #wrapper h1 p 84 { 85 font-size:17px; 86 } 87 #wrapper #feed_div 88 { 89 background-color:white; 90 width:550px; 91 height:320px; 92 overflow-y:scroll; 93 margin-left:220px; 94 margin-top:20px; 95 text-align:left; 96 border:1px solid silver; 97 padding:10px; 98 } 99 #wrapper #feed_div h2 100 { 101 font-size:17px; 102 } 103 #wrapper #feed_div .title a 104 { 105 text-decoration:none; 106 color:#0080FF; 107 } 108 </style>"; 116 109 117 echo "<div id=\"wrapper\">"; 110 118 echo "<br><br><p>Log delle modifiche (massimo 100 righe)</p>"; 111 119 echo "<div id=\"feed_div\">"; 120 $myrev++; 112 121 $rss = simplexml_load_file("$host/ele3/log?format=rss&mode=stop_on_copy&rev=$newrev&stop_rev=$myrev&format=rss&max=100&verbose=on#"); 113 122 #$rss = simplexml_load_file("$host/ele3/log?action=follow_copy&mode=stop_on_copy&rev=$newrev&stop_rev=$myrev&limit=100&verbose=on#"); … … 168 177 $client = '../client'; 169 178 # $path = "/tmp/files"; 170 $backup = " ./backup".$myrev;179 $backup = "backup".$myrev; 171 180 $path = "./files/"; 172 181 $righe=''; … … 283 292 } 284 293 $righedb=''; 285 if(file_exists( "modules/Elezioni/aggiornadb.php")) {286 $ righe.= "<br><br><b>Aggiornamento del database</b>";294 if(file_exists($trunkadm."/modules/Elezioni/aggiornadb.php")) { 295 $ctrlerr=0; 287 296 ob_start(); 288 297 include ('modules/Elezioni/aggiornadb.php'); … … 290 299 ob_end_clean(); 291 300 } 292 $righe.=$righedb;293 $righe.= "<br><br><b>Operazioni di aggiornamento concluse.</b>";294 301 #$dir = "./files/"; 295 302 if(file_exists($path)){ … … 303 310 $_SESSION['localrev']=$newrev; 304 311 ele(); 305 echo "<hr><br><h2 style=\"text-align:center;\">Aggiornamento completato</h2><br><hr>"; 306 echo "<br><br><h3>Log delle operazioni</h3>"; 312 if($ctrlerr) 313 echo "<hr><br><h2 style=\"text-align:center;color:red;\">Aggiornamento completato con errori<br>Controllare i log di aggiornamento del database</h2><hr>"; 314 else 315 echo "<hr><br><h2 style=\"text-align:center;\">Aggiornamento completato</h2><br><hr>"; 316 echo "<br><h3>Log delle operazioni</h3>"; 317 307 318 echo $righe; 319 echo "<div id=\"wrapper\">"; 320 echo "<br><p>Operazioni effettuate sul db: </p>"; 321 echo "<div id=\"feed_div\">"; 322 echo $righedb; 323 echo "</div>"; 324 echo "</div>"; 325 echo "<br><b>Operazioni di aggiornamento concluse.</b><br>"; 308 326 include("footer.php"); 309 327 die();
Note:
See TracChangeset
for help on using the changeset viewer.