Sospetto che si tratti del config.php, qualcosa che abbia a che fare con la root path non sono sicuro....
CONFIG.PHP
[code:1:c41ab3e127]
<?PHP
/ ****************************************
**********************************
* config.php (Text)
* -------------------
* $Id: config.php,v 1.13 2002/09/28 16:25:35 d-campbell Exp $
* For support go to - http://php.pogoworld.co.uk
* Copyright (C) Duncan Campbell 2002.
*
****************************************
*********************************/
/ ****************************************
**********************************
* *
* This program 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. *
* *
****************************************
*********************************/
function display_error($error_text)
{
print '<B>Flipper Poll - Error:</B><P>'.$error_text.'</P>';
exit;
}
if (!isset ($poll_id))
{
display_error('Please set the poll id. Refer to readme for more information');
}
if (!isset ($root_path))
{
$root_path = 'poll.php';
}
$fp = @fopen('data/data_' . $poll_id . '.csv','r'); // Open file containing options, question, etc.
if (!$fp)
{
display_error('Unable to open file: data_'.$poll_id.'.csv');
exit;
}
$vote_options = fgetcsv ($fp, 1000, ','); // Put csv file into an array
fclose ($fp);
$fp2 = @fopen('data/vote_' . $poll_id . '.csv','r');
if (!$fp2)
{
display_error('Unable to open file: vote_'.$poll_id.'.csv');
exit;
}
$vote_data = fgetcsv ($fp2, 1000, ',');
fclose ($fp2);
[code:1:c41ab3e127]:--------------------------------------------------------------------------------<?PHP
/ ****************************************
**********************************
* poll.php (Text)
* -------------------
* $Id: poll.php,v 1.16 2002/09/28 16:25:35 d-campbell Exp $
* For support go to - http://php.pogoworld.co.uk
* Copyright (C) Duncan Campbell 2002.
*
****************************************
*********************************/
/ ****************************************
**********************************
* *
* This program 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. *
* *
****************************************
*********************************/
include_once($root_path . 'config.php');
if (isset ($HTTP_GET_VARS['id']))
{
$poll_id = $HTTP_GET_VARS['id'];
}
if (!isset ($poll_id))
{
display_error('Poll Error! Please set the poll id. Refer to readme.txt for more information');
}
// Start Output
?>
<SCRIPT language = "JavaScript">
<!--
function OptionChecked()
{
var i;
for (i = 0; i < document.frmPoll.radPoll.length; i++)
if (document.frmPoll.radPoll[i].checked&# 41; return true;
alert("Per votare devi selezionare una delle risposte!");
return false;
}
[code:1:c41ab3e127]
code:--------------------------------------------------------------------------------<?PHP
/ ****************************************
**********************************
* vote.php (Text)
* -------------------
* $Id: vote.php,v 1.12 2002/09/28 16:25:35 d-campbell Exp $
* For support go to - http://php.pogoworld.co.uk
* Copyright (C) Duncan Campbell 2002.
*
****************************************
*********************************/
/ ****************************************
**********************************
* *
* This program 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. *
* *
****************************************
*********************************/
//
// Poll File Processor
//
$option = $HTTP_POST_VARS['radPoll']; // Contains vote number
$poll_id = $HTTP_POST_VARS['id']; // Poll id, used for cookie and file write.
eheh :)
Chiedo qui perchè su html.it ho lasciato una ventina di up e nessuno si è degnato di darmi una risposta....
Dove può essere il problema? Cosa mi consigli di fare?
In qualche post ho letto che è il config della root path che non va, ma io che caspita posso fare??
Trovato!!!! ed è anche per questo che prima non me la trovava, guarda:
[code:1:9210613228]
header("Location: http://paynegame.altervista.org/voto.htm" . $HTTP_SERVER_VARS['HTTP_REFERER']);
[/code:1:9210613228]
al posto di qeusta, metti:
[code:1:9210613228]
header("Location: http://paynegame.altervista.org/voto.htm" );
[/code:1:9210613228]
heheheh, lo dicevo io che c'era qualcosa che non andava in quel link!!!!