<?php
/*
This file is part of PHPOLL.
PHPOLL is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
PHPOLL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with PHPOLL; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
include "config_db.php";
$password_crypt = "try to unlock this"; // PASSWORD PER ALGORITMO DI CRYPTING * CRYPTING ALGORHYTHM PASSWORD
// (SE MODIFICATA, LE MAIL INVIATE PRECEDENTEMENTE NON SARANNO
// RICONOSCIUTE)
// assegno le variabili di connessione
$phpoll_db = mysql_connect ($phpoll_host, $phpoll_user, $phpoll_password)
or die ("Errore nella connessione a MySQL");
// selezione del database
mysql_select_db($phpoll_database, $phpoll_db)
or die ("Errore nella connessione al database ".$phpoll_database);
// QUERY per MySQL
$query_config = "SELECT * FROM phpoll_".$prepoll."_configurazione;";
$estrai_config = mysql_query($query_config, $phpoll_db)
or die ("Errore nella connessione per estrazione configurazione dal database ".$phpoll_database);
while ($dati_config=mysql_fetch_assoc ($estrai_config)) {
$massimo_numero_checkbox = $dati_config['max_voti'];
$titolo_posizione = $dati_config['titolo_posizione'];
$titolo_tipologia = $dati_config['titolo_tipologia'];
$titolo_punteggio = $dati_config['titolo_punteggio'];
$risultati_pixel = $dati_config['risultati_pixel'];
$domini_esclusi = explode(',', $dati_config['domini']); // array
$messaggio_domini = $dati_config['messaggio_domini'];
$messaggio_giavotato = $dati_config['messaggio_giavotato'];
$messaggio_sgamo = $dati_config['messaggio_sgamo'];
$messaggio_ip = $dati_config['messaggio_ip'];
$percorso_link = $dati_config['percorso_link'];
$oggetto_email = $dati_config['oggetto_email'];
$testo_email = $dati_config['testo_email'];
$messaggio_conferma_mail = $dati_config['messaggio_conferma_mail'];
$valid_email = $dati_config['valid_email'];
$testo_submit = $dati_config['testo_submit'];
$intervallo_tempo = $dati_config['intervallo_tempo'];
}
$esc_chars = array ("'", "/", "\"");
$sos_chars = array ("'", "/", """);
// ** Nome della tabella VOTI **
$tab_voti = "phpoll_".$prepoll."_voti";
// ******************************
// ** Nome della tabella BAND **
$tab_band = "phpoll_".$prepoll."_band";
// ******************************
mysql_close ($phpoll_db);
/*
$host = "sql.blurayforum.it";
$user = "blurayfo60003";
$password = "blur06977";
$database = "blurayfo60003";
*/
?>