source: trunk/admin/index.php@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

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/************************************************************************/
9include("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//---10/05/2009 gestione consultazione predefinita
13//if (!isset($_SESSION['id_comune'])){
14 $res_config = mysql_query("select * from ".$prefix."_config ",$dbi);
15 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);
16 $siteistat=$id_comune;
17//}
18 Header("Location: admin.php?id_comune=$siteistat");
19die();
20?>
Note: See TracBrowser for help on using the repository browser.