Last change
on this file since 177 was 23, checked in by roby, 15 years ago |
Gestione charset con query mysql e sostituzione funzioni ereg
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | /************************************************************************/
|
---|
4 | /* Eleonline - Raccolta e diffusione dei dati elettorali */
|
---|
5 | /* by Roberto Gigli & Luciano Apolito */
|
---|
6 | /* http://www.eleonline.it */
|
---|
7 | /* info@eleonline.it luciano@aniene.net rgigli@libero.it */
|
---|
8 | /************************************************************************/
|
---|
9 | include("config.php");
|
---|
10 | $dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error());
|
---|
11 | mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error());
|
---|
12 | mysql_query("SET NAMES 'utf8'", $dbi);
|
---|
13 | //---10/05/2009 gestione consultazione predefinita
|
---|
14 | //if (!isset($_SESSION['id_comune'])){
|
---|
15 | $res_config = mysql_query("select * from ".$prefix."_config ",$dbi);
|
---|
16 | list ($sitename,$siteurl,$site_logo,$slogan,$startdate,$adminmail,$tema,$foot,$language,$blocco,$testata,$logo,$fileout,$copyright,$versione,$patch,$id_comune) = mysql_fetch_row($res_config);
|
---|
17 | $siteistat=$id_comune;
|
---|
18 | //}
|
---|
19 | Header("Location: admin.php?id_comune=$siteistat");
|
---|
20 | die();
|
---|
21 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.