Changeset 360 for trunk/client


Ignore:
Timestamp:
Mar 14, 2022, 5:13:56 PM (3 years ago)
Author:
roby
Message:

ATTENZIONE: con questa rev viene cambiato il charset che da ora viene impostato su utf8. Fate tutte le vostre verifiche prima di installarla.
Seconda fase di rivisitazione e completamento delle funzioni necessarie per l'accesso al servizio tramite cellulare.
Effettuate alcune sistemazioni per gli avvisi di incongruenza.

Location:
trunk/client
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/file.php

    r265 r360  
    33include("config.php");
    44        try{
    5         $dbi = new PDO("mysql:host=$dbhost;charset=latin1", $dbuname, $dbpass, array(PDO::ATTR_EMULATE_PREPARES => false, PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION));
     5        $dbi = new PDO("mysql:host=$dbhost;charset=utf8", $dbuname, $dbpass, array(PDO::ATTR_EMULATE_PREPARES => false, PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION));
    66        $sql = "use $dbname";
    77        $dbi->exec($sql);
     
    1111            echo $sql . "<br>" . $e->getMessage();
    1212        }             
     13        $sth = $dbi->prepare("SET NAMES 'utf8'");
     14        $sth->execute();
     15
     16
    1317$fase=intval($_GET['fase']);
    1418
     
    1923        $res->execute();
    2024
    21 Header("content-type: application/x-javascript");
     25Header("content-type: application/x-javascript; charset=utf-8");
    2226echo "document.write(\"<b><select name=\'id_cons_gen2\'>";
    2327
    2428while(list($id_cons_gen2,$descr) = $res->fetch(PDO::FETCH_NUM)) {
    25                         echo "<option value=\'$id_cons_gen2\'>$descr";
     29                        echo "<option value=\'$id_cons_gen2\'>$descr</option>";
    2630                }
    2731                echo "</select>";
     
    4448        $res->execute();
    4549
    46 Header("content-type: application/x-javascript");
     50Header("content-type: application/x-javascript; charset=utf-8");
    4751echo "document.write(\"<b><input type=\'hidden\' name=\'id_cons_gen2\' value=\'$id_cons_gen2\'><select name=\'id_comune2\'>";
    4852
    4953while(list($id_comune2,$descr) = $res->fetch(PDO::FETCH_NUM)) {
    50                         echo "<option value=\'$id_comune2\'>$descr";
     54                        echo "<option value=\'$id_comune2\'>$descr</option>";
    5155                }
    5256                echo "</select>";
  • trunk/client/modules/Elezioni/backup.php

    r322 r360  
    1212list($nomeFile) = $result->fetch(PDO::FETCH_NUM);
    1313#$nomeFile="backup";
    14 header( 'Content-Type: application/octet-stream' );
     14header( 'Content-Type: application/octet-stream; charset=utf-8' );
    1515header( 'Content-Disposition: attachment; filename="'.$nomeFile.'"' );
    1616#header( 'Content-Length:'.strlen( $content ) );
  • trunk/client/versione.php

    r359 r360  
    11<?php
    22
    3 $versione = "3.0 rev 359";
     3$versione = "3.0 rev 360";
    44$version_number = $versione;
    5 $datarel = "24 febbraio 2022";
     5$datarel = "14 marzo 2022";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
Note: See TracChangeset for help on using the changeset viewer.