Io ti ringrazio per la disponibilità ma ci rinuncio perchè ancora non funziona ora ti mostro l'ultimo file che regola il captcha dopo di che non c'è più nulla che non hai visto, sono tre i file del captcha:

l'ultimo è questo dal nome imagebuilder.php e credo che non centri niente con quello che voglio fare io.

Codice PHP:
<?php
include "settings_capcguebok.php";

// Keep #'s reasonable.
$min_thickness max(1,$min_thickness);
$max_thickness min(20,$max_thickness);
// Make radii into height/width
$min_radius *= 2;
$max_radius *= 2;
// Renormalize contrast
$contrast 255 * ($contrast 100.0);
$o_contrast 1.3 $contrast;

$width 15 imagefontwidth (5);
$height 2.5 imagefontheight (5);
$image imagecreatetruecolor ($width$height);
imagealphablending($imagetrue);
$black imagecolorallocatealpha($image,0,0,0,0);

// Build the  validation string
$max strlen($acceptedChars)-1;
$password NULL;
for(
$i=0$i $stringlength$i++) {
    
$cnum[$i] = $acceptedChars{mt_rand(0$max)};
    
$password .= $cnum[$i];
}

// Add string to image
$rotated imagecreatetruecolor (7070);
$x 0;
for (
$i 0$i $stringlength$i++) {
    
$buffer imagecreatetruecolor (2020);
    
$buffer2 imagecreatetruecolor (4040);
    
    
// Get a random color
    
$red mt_rand(0,255);
    
$green mt_rand(0,255);
    
$blue 255 sqrt($red $red $green $green);
    
$color imagecolorallocate ($buffer$red$green$blue);

    
// Create character
    
imagestring($buffer500$cnum[$i], $color);

    
// Resize character
    
imagecopyresized ($buffer2$buffer000025 mt_rand(0,12), 25 mt_rand(0,12), 2020);

    
// Rotate characters a little
    
$rotated imagerotate($buffer2mt_rand(-2525),imagecolorallocatealpha($buffer2,0,0,0,0)); 
    
imagecolortransparent ($rotatedimagecolorallocatealpha($rotated,0,0,0,0));

    
// Move characters around a little
    
$y mt_rand(13);
    
$x += mt_rand(26); 
    
imagecopymerge ($image$rotated$x$y004040100);
    
$x += 22;

    
imagedestroy ($buffer); 
    
imagedestroy ($buffer2); 
}

// Draw polygons
if ($num_polygons 0) for ($i 0$i $num_polygons$i++) {
    
$vertices = array (
        
mt_rand(-0.25*$width,$width*1.25),mt_rand(-0.25*$width,$width*1.25),
        
mt_rand(-0.25*$width,$width*1.25),mt_rand(-0.25*$width,$width*1.25),
        
mt_rand(-0.25*$width,$width*1.25),mt_rand(-0.25*$width,$width*1.25)
    );
    
$color imagecolorallocatealpha ($imagemt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), $object_alpha);
    
imagefilledpolygon($image$vertices3$color);  
}

// Draw random circles
if ($num_ellipses 0) for ($i 0$i $num_ellipses$i++) {
    
$x1 mt_rand(0,$width);
    
$y1 mt_rand(0,$height);
    
$color imagecolorallocatealpha ($imagemt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), $object_alpha);
//    $color = imagecolorallocate($image, mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast));
    
imagefilledellipse($image$x1$y1mt_rand($min_radius,$max_radius), mt_rand($min_radius,$max_radius), $color);  
}

// Draw random lines
if ($num_lines 0) for ($i 0$i $num_lines$i++) {
    
$x1 mt_rand(-$width*0.25,$width*1.25);
    
$y1 mt_rand(-$height*0.25,$height*1.25);
    
$x2 mt_rand(-$width*0.25,$width*1.25);
    
$y2 mt_rand(-$height*0.25,$height*1.25);
    
$color imagecolorallocatealpha ($imagemt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast), $object_alpha);
    
imagesetthickness ($imagemt_rand($min_thickness,$max_thickness));
    
imageline($image$x1$y1$x2$y2 $color);  
}

// Draw random dots
if ($num_dots 0) for ($i 0$i $num_dots$i++) {
    
$x1 mt_rand(0,$width);
    
$y1 mt_rand(0,$height);
    
$color imagecolorallocatealpha ($imagemt_rand(0,$o_contrast), mt_rand(0,$o_contrast), mt_rand(0,$o_contrast),$object_alpha);
    
imagesetpixel($image$x1$y1$color);
}

session_start();
$_SESSION['string'] = $password;

header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>
il problema è che quando clicco su invia codice la pagina non rimane sulla lingua che si è scelto dalla home page, nonostante io abbia tradotto anche il file failure.php e succes.php. Ora credo che il problema risieda, o da queste due variabili del file di configurazione qui sotto:


Codice PHP:
<?php

$stringlength 
5;

// Where to go when the correct / incorrect code is entered.
$success "success.php";
$failure "failure.php";

// A value between 0 and 100 describing how much color overlap
// there is between text and other objects.  Lower is more
// secure against bots, but also harder to read.
$contrast 60;

// Various obfuscation techniques.
$num_polygons 3// Number of triangles to draw.  0 = none
$num_ellipses 6;  // Number of ellipses to draw.  0 = none
$num_lines 3;  // Number of lines to draw.  0 = none
$num_dots 3;  // Number of dots to draw.  0 = none

$min_thickness 2;  // Minimum thickness in pixels of lines
$max_thickness 8;  // Maximum thickness in pixles of lines
$min_radius 5;  // Minimum radius in pixels of ellipses
$max_radius 15;  // Maximum radius in pixels of ellipses

// How opaque should the obscuring objects be. 0 is opaque, 127
// is transparent.
$object_alpha 75;
?>
oppure dipende dal file result.php qui sotto,

Codice PHP:
<?php
include "settings_capcguebok.php";

session_start();
$string strtoupper($_SESSION['string']);
$userstring strtoupper($_POST['userstring']); 
session_destroy();   

if ((
$string == $userstring) && (strlen($string) > 4)) {
    
header("Location: $success");
    exit();
} else {
    
header("Location: $failure");
    exit();
}
?>
?>
in entrambe i modi in cui mi hai fatto vedere tu non funziona quindi non so proprio più che fare.

Per finire ti mostro anche il file guestbook.php che è identico a failure.php e succes.php per farti rendere conto.

Codice PHP:
<?php require "header.php"
      include(
"lang.php");
    foreach (
$_GET as $k=>$v) if ($k != 'lingua'$gets[] = $k.'='.$v;
    
//$urlsenzalingua = $_SERVER['SERVER_NAME'];
?>
<div id="wrapper">


<center>[b]<font face="Comic Sans MS" size="4" color="#FF0000"><?= $site_name ?><?php echo $guestbk_page;?>
</font>[/b]</center>

<hr />

<div  style="width:760px;">
<? require "find_ip.php"?>
<?php 
// Inizio codice testo random quote 
$quotes[] = "<font color=\"#006699\">- $quo_1 $quo_a</font> <font color=\"red\">$quo_1_a</font><font color=\"#006699\"> -</font>";
$quotes[] = "<font color=\"#006699\">- $quo_2 $quo_b</font> -<font color=\"red\"> $quo_2_b</font><font color=\"#006699\"> -</font>";
$quotes[] = "<font color=\"#006699\">- $quo_3 $quo_c</font> <font color=\"red\">$quo_3_c</font><font color=\"#006699\"> -</font>";
$quotes[] = "<font color=\"#006699\">- $quo_4 $quo_d</font> -<font color=\"red\"> $quo_4_d</font><font color=\"#006699\"> -</font>";
$quotes[] = "<font color=\"#006699\">- $quo_5 $quo_e</font> <font color=\"red\">$quo_5_e</font><font color=\"#006699\"> -</font>";
$quotes[] = "<font color=\"#006699\">- $quo_6 $quo_f</font> -<font color=\"red\"> $quo_6_f</font><font color=\"#006699\"> -</font>";
srand ((double) microtime() * 1000000);
$randomquote rand(0,count($quotes)-1);
echo 
"

$quotes[$randomquote] . "</p>
"
;
// Fine codice testo random quote ?> 

<style type="text/css">
<!--
.style1 {
    color: #bb0000;
    font-weight: bold;
}
-->
</style>

<hr />


¤<?php echo $prove;?> - <span class="style1"><?php echo $cptcha;?></span> - <?php echo $isaway;?> ¤</p>
<hr />
<form action="result.php" method="post">
    
<div style="border:1px solid #666666; margin: 0px; padding: 10px; width:735px;">
      

[img]imagebuilder.php[/img]</p>[url="guestbook.php?lingua=<?php echo $lingua;?>"]"><?php echo $getcde;?>[/url]

      

<span class="style1"><?php echo $before;?> <font color="#006699">- <?php echo $ptcode;?> -</font></span>


        <input maxlength=9 size=9 name="userstring" type="text" onFocus="this.value=''" value="<?php echo $codher;?>">
        
        <input type="submit" value=" <?php echo $ptcode;?> ">
      </p>
    </form>
  </div>
</form>


<hr />
<?php echo $arvery;?><?= $site_name ?><?php echo $answer;?>[url="poll.php?lingua=<?php echo $lingua;?> "]" class="cent"><?php echo $polls;?>[/url]

<hr />


<?php // Cambiare queste impostazioni inserendo le coordinate del vostro database
$host "";          //database host
$user "";   //database user
$pass "";   //database password
$db "my_thedreamersforum";  //database name
mysql_connect($host$user$pass) OR die ("Impossibile connettersi al server.");
mysql_select_db($db) OR die("Impossibile connettersi al database.");
$name stripslashes($_POST['txtName']);
$message stripslashes($_POST['txtMessage']);
if (!isset(
$_POST['txtName'])) {
    
$query "SELECT id, name, message, DATE_FORMAT(date, '%D %M, %Y @ %H:%i') as newdate FROM guests ORDER BY id DESC";
    
$result mysql_query($query);
    while (
$row mysql_fetch_object($result)) { ?>



[b]<?php echo $row->message?>[/b]

<?php echo $postby;?><?php echo $row->name?><?php echo $the;?><?php echo $row->newdate?></p>

<hr />

<?php ?>

<?php
}
else {
    
// Aggiunge la nuova voce nel database
    
$query "INSERT INTO guests SET message='$message', name='$name', date=NOW()";
    
$result mysql_query($query);

    
// Ci riporta alle voci del guestbook
    
$ref $_SERVER['HTTP_REFERER'];
    
header ("Location: $ref");
}
?> 




<?if (($ads == "1" && !$auth_id) || ($ads == "2") ) { ?> <center> <?=$config[footer]?> </center> 

 <?}?>
</div></div>
<br style="clear:both;" />
<? require "footer.php"?>
forse hai ragione, mi era difficile anche a me spiegare il problema quindi.