Ich komme einfach nicht mehr weiter.........

Hier werden Probleme rund um das Zahlen Captcha behandelt

Moderator: frameguard

Ich komme einfach nicht mehr weiter.........

Beitragvon chipmaster » 12.03.2008, 22:02

Hallo an alle,
ich hoffe, das mir irgendjemand weiterhelfen kann. Ich habe das Captcha von http://www.stoppt-den-spam.info/webmast ... cript.html eingesetzt und entsprechend auf die Seite plaziert. Das große Problem ist aber, dass ich nicht mehr weiterweiß wo ich das in meine Gästebuch Datei einfüge. Ich probiere schon seit Stunden, bekomme aber immer wieder nur eine weiße Seite.

Für Hilfe wäre ich sehr dankbar, da ich fast am verzweifeln bin.

Meine Datei sieht so aus:

<?
$top = "30";
$left = "10";
if(!isset($div_width)) $div_width = $width - $left*2;
if(!isset($div_height)) $div_height = $height - $top*2;
if ($form == "yes") {
$spalteb = $div_width - 270 - 200;
$spalteh = $div_height - 330;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="styles/kontakt.css">
<script src="javascript/gaeste.js" type="text/javascript"></script>
<style type="text/css">
<!--
.breite {width:200}
-->
</style>
</head>
<body background="slices/gaestebuch.gif">
<div style="overflow:hidden; position: absolute; top: <?php echo $top ?>px; left: <?php echo $left ?>px; width: <?php echo $div_width ?>px; height:<?php echo $div_height ?>; visibility: visible; display: block">
<form name="gaeste" action="gaeste.php" method="get">
<table height="<?php echo $div_height ?>" width="<?php echo $div_width ?>" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" rowspan="4" height="185" width="270"><textarea style="height:153; width:350; color:#000066;" OnFocus="CountMax('anliegen',300);" OnClick="CountMax('anliegen',300);" onChance="CountMax('anliegen',300);" onKeydown="CountMax('anliegen',300);" onKeyup="CountMax('anliegen',300);" onKeypress="CountMax('anliegen',300);" name="anliegen" ></textarea><br><b>G&auml;stebuch-Eintrag *</b></td>
<td valign="top" rowspan="4" width="<?php echo $spalteb ?>">&nbsp;</td></tr>
<tr>
<td width="200" valign="top"><input class="breite" type="Text" name="name"><br><b>Name *</b></td></tr>
<tr>
<td valign="top"><input class="breite" type="Text" name="eemail"><br><b>E-Mail Adresse </b></td></tr>
<tr>
<td valign="top"><input class="breite" type="Text" name="datum" value="<? echo date("d.m.Y") ?>" readonly><br><b>Datum</b></td></tr>
<tr>
<td height="15" colspan="2" valign="top">* Diese Felder bitte ausf&uuml;llen.</td>
<td align="right"><img src="captcha/captcha.php" alt="captcha" title="sicherheitscode" onclick="javascript:this.src='captcha/captcha.php?'+Math.random();"></td></tr>
<tr>
<td height="15" colspan="2"></td>
<td valign="top"><input class="breite type="text" name="sicherheitscode" size="5"><br><b>Sicherheitscode* &nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Zum erneuern auf das Bild klicken!</b></td></tr>
<tr>
<td height="15" colspan="3"></td></tr>
<tr>
<td height="<?php echo $spalteh ?>" colspan="3"></td></tr>
<tr>
<td valign="bottom" align="left" width="" height="20" colspan="2" ><input style="cursor:hand; font-size:11; width:70" type="reset" value="l&ouml;schen"></td>
<td valign="bottom" align="right" width="" height="20" colspan="2" ><input style="cursor:hand; font-size:11; width:70" type="Submit" value="absenden"></td></tr>
</table>
<div style="position:absolute; left:0; top:0; display:none">
<input type="text" name="div_width" value="<? echo $div_width ?>"></input>
<input type="text" name="div_height" value="<? echo $div_height ?>"></input></div>
</form>
</div>
</body>
</html>

<?
} else {
$button_top = $div_height - 20;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="styles/styles.css">
</head>
<body background="slices/gaestebuch.gif">
<div style="position: absolute; top: <?php echo $top ?>px; left: <?php echo $left ?>px; width: <?php echo $div_width ?>px; height:<?php echo $div_height ?>; visibility: visible; display: block">
<a href="gaeste.php?form=yes&div_width=<?php echo $div_width ?>&div_height=<?php echo $div_height ?>"><b style="font-size:11">>> neuer Eintrag ins G&auml;stebuch <<</b></a><br><br>
<hr noshade style="width:<?php echo $div_width ?>; color:#000066">
<?
$code = implode("",(@file("descriptions/more/txtcodes.php")));
eval ($code);
$page_src = "gaeste/gaeste.txt";
$fp = fopen($page_src,"r");
$index = 0;
$events = array();
$events[0] = array();
$events[1] = array();
$events[2] = array();
$events[3] = array();
while ($line = fgets($fp,1000)) {
if ($index == 4) $index=0;
array_push($events[$index],substr($line,0,strlen($line)-1));
$index ++;
}
fclose($fp);
if (isset($anliegen) && $name!="") {
array_unshift($events[0], strtr($datum,$txtcodes));
array_unshift($events[1], strtr($name,$txtcodes));
array_unshift($events[2], strtr($eemail,$txtcodes));
array_unshift($events[3], strtr($anliegen,$txtcodes));
$fp = fopen($page_src,"w");
for($i=0; $i<count($events[0]); $i++) {
fputs ($fp,$events[0][$i]."\n");
fputs ($fp,$events[1][$i]."\n");
fputs ($fp,$events[2][$i]."\n");
fputs ($fp,$events[3][$i]."\n");
}
fclose($fp);
}
$n = count($events[0]);
if (!isset($start)) $start = 0;
$end = $start + 2;
if ($end > $n) $end = $n;
for ($i=$start; $i<$end; $i++) {
echo "<table cellspacing='0' cellpadding='0'><tr><td width='$width'><b>";
echo $events[0][$i]."&nbsp;&nbsp;&nbsp;".$events[1][$i]."&nbsp;&nbsp;&nbsp;<a href='kontakt.php?bmail=".$events[2][$i]."&zu=zu'>".$events[2][$i]."</b><br><br></td></tr>";
echo "<tr><td width='$width'>";
echo stripslashes($events[3][$i])."</td></tr>";
echo "<tr><td width='$width'><hr noshade style='width:".$div_width."; color:#000066'></td></tr></table>";
}
if ($start > 0) {
$start = $start - 2;
if ($start < 0) $start = 0;
if ($end < $n) {
echo "<div style='padding:2; position:absolute; top:".$button_top."; left:0;'>";
echo "<a href='gaeste.php?div_height=$div_height&div_width=$div_width&start=$start'><b><< zur&uuml;ck</b></a></div>";
} else {
echo "<div style='padding:2; position:absolute; top:".$button_top."; left:0;'>";
echo "<a href='gaeste.php?div_height=$div_height&div_width=$div_width&start=$start'><b><< zur&uuml;ck</b></a></div>";
}
}
if ($end < $n) {
echo "<div style='padding:2; position:absolute; top:".$button_top."; right:0;'>";
echo "<a href='gaeste.php?div_height=$div_height&div_width=$div_width&start=$end'><b>weiter >></b></a></div>";
}
}
?>
</body>
</html>
chipmaster
 
Beiträge: 1
Registriert: 12.03.2008, 21:54

Zurück zu Zahlen Captcha

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste

cron